Skip to content

Commit

Permalink
feat: remove docker from runner image
Browse files Browse the repository at this point in the history
  • Loading branch information
micdes-pagopa committed Dec 14, 2022
1 parent ff23973 commit 33ed3ce
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,13 @@ RUN apt-get update && apt-get -y install helm

RUN curl -O https://downloads.mongodb.com/compass/mongodb-mongosh_1.6.1_amd64.deb
RUN apt-get install -y ./mongodb-mongosh_1.6.1_amd64.deb

# install Docker from https://docs.docker.com/engine/install/ubuntu/

RUN mkdir -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
RUN rm ./mongodb-mongosh_1.6.1_amd64.deb

RUN useradd github && \
mkdir -p /home/github && \
chown -R github:github /home/github && \
chown -R github:github /actions-runner

RUN usermod -aG docker github

WORKDIR /home/github

COPY entrypoint.sh ./entrypoint.sh
Expand Down

0 comments on commit 33ed3ce

Please sign in to comment.