Skip to content

Commit

Permalink
fix - adjust docker permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
chaddyc committed Jan 1, 2025
1 parent 07fc143 commit 6af0f71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ RUN ./bin/installdependencies.sh
# usermod -aG sudo runner && \
# usermod -aG docker runner

COPY --chmod=700 build/ /tmp/build/
RUN /tmp/build/base-install.sh
# COPY --chmod=700 build/ /tmp/build/
# RUN /tmp/build/base-install.sh

# Ensure the runner user owns the runner directory
RUN chown -R runner:runner /runner
Expand Down
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ fi

# alias docker="sudo docker"

groupadd -g "$(group_id)" runner
useradd -mr -d /home/runner -u "$(user_id)" -g "$(group_id)" runner
usermod -aG sudo runner
usermod -aG docker runner

# Configure the GitHub Actions runner
if [ ! -f .runner ]; then
./config.sh --url "${GITHUB_URL}" --token "${RUNNER_TOKEN}" --name "${RUNNER_NAME}" --unattended --replace
Expand Down

0 comments on commit 6af0f71

Please sign in to comment.