Skip to content

Commit

Permalink
Make sure docker socket has the correct permissings
Browse files Browse the repository at this point in the history
  • Loading branch information
mathew-fleisch committed May 17, 2021
1 parent de5d0e6 commit 26cf5ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM ubuntu:20.04
LABEL maintainer="Mathew Fleisch <mathew.fleisch@gmail.com>"
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

ENV KUBECONFIG_CONTENTS ""
ENV GIT_PAT ""
Expand Down Expand Up @@ -67,7 +66,7 @@ RUN . ${ASDF_DATA_DIR}/asdf.sh \
# Source asdf and execute entrypoint
COPY --chown=github:github entrypoint.sh ./entrypoint.sh
RUN sudo chmod u+x ./entrypoint.sh
CMD /bin/sh -c ". ${ASDF_DATA_DIR}/asdf.sh && /home/github/entrypoint.sh"
CMD /bin/sh -c ". ${ASDF_DATA_DIR}/asdf.sh && sudo chmod 666 /var/run/docker.sock && /home/github/entrypoint.sh"



2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ docker run -it --rm \
-e GIT_PAT="$GIT_TOKEN" \
-e GIT_OWNER="mathew-fleisch" \
-e GIT_REPO="github-actions-runner" \
-e LABELS="gha-runner" \
--name "gha-runner" \
mathewfleisch/github-actions-runner:v0.1.0

Expand All @@ -31,6 +32,7 @@ docker run -it --rm \
-e GIT_PAT="$GIT_TOKEN" \
-e GIT_OWNER="mathew-fleisch" \
-e GIT_REPO="github-actions-runner" \
-e LABELS="gha-runner" \
--name "gha-runner" \
mathewfleisch/github-actions-runner:v0.1.0

Expand Down

0 comments on commit 26cf5ab

Please sign in to comment.