Skip to content

Commit

Permalink
feat: add docker to runner image
Browse files Browse the repository at this point in the history
  • Loading branch information
micdes-pagopa committed Dec 13, 2022
1 parent a34dd55 commit ff23973
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
aws_region: ${{ secrets.AWS_REGION }}
iam_role_arn: ${{ secrets.ECS_IAM_ROLE_ARN }}
ecs_cluster_name: ${{ secrets.ECS_CLUSTER_NAME }}
ecs_task_definition_arn: ${{ secrets.TASK_DEFINITION_ARN }}
ecs_task_definition: ${{ secrets.ECS_TASK_DEFINITION }}
ecs_container_name: github-runner
ecs_task_subnet_id: ${{ secrets.SUBNET_ID }}
ecs_task_sec_group: ${{ secrets.SEC_GROUP_ID }}
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,21 @@ 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 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 ff23973

Please sign in to comment.