Skip to content

Commit

Permalink
Make it easy to install git on an Action Runner Image
Browse files Browse the repository at this point in the history
(We don't actually install `git`.  We simply get the prerequisites out of the way.)
  • Loading branch information
jww3 committed May 3, 2024
1 parent f2c05de commit ad9017a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ ENV RUNNER_MANUALLY_TRAP_SIG=1
ENV ACTIONS_RUNNER_PRINT_LOG_TO_STDOUT=1
ENV ImageOS=ubuntu22

RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
sudo \
lsb-release \
RUN apt update -y \
&& apt install -y --no-install-recommends sudo lsb-release software-properties-common \
&& rm -rf /var/lib/apt/lists/*

# Configure git-core/ppa based on guidance here: https://git-scm.com/download/linux
RUN add-apt-repository ppa:git-core/ppa \
&& apt update -y

RUN adduser --disabled-password --gecos "" --uid 1001 runner \
&& groupadd docker --gid 123 \
&& usermod -aG sudo runner \
Expand Down

0 comments on commit ad9017a

Please sign in to comment.