This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BDRK-3516: Add GitHub Runners custom Docker image (#48)
* BDRK-3516: Add GitHub Runners custom Docker image * Test Docker build job * Update other tools in managed-images * Remove custom branch
- Loading branch information
1 parent
e39c4f2
commit 114f813
Showing
10 changed files
with
81 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM summerwind/actions-runner-dind:v2.286.0-ubuntu-20.04 | ||
|
||
USER root | ||
|
||
ENV SKOPEO_VERSION 100:1.3.0-1 | ||
ENV YQ_VERSION v4.16.2 | ||
|
||
RUN mkdir -p /tmp/aws \ | ||
&& cd /tmp/aws \ | ||
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ | ||
&& unzip awscliv2.zip \ | ||
&& ./aws/install \ | ||
&& rm -rf /tmp/aws | ||
|
||
RUN . /etc/os-release \ | ||
&& echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" \ | ||
| tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list \ | ||
&& curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key \ | ||
| apt-key add - \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install skopeo=${SKOPEO_VERSION} \ | ||
&& wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 \ | ||
&& chmod +x /usr/local/bin/yq \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
USER runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Custom Docker image for GitHub Actions Runner Docker-In-Docker (dind) | ||
|
||
This Docker image based off the the [actions-runner-dind image](https://github.com/actions-runner-controller/actions-runner-controller/blob/master/runner/Dockerfile.dindrunner) with `skopeo`, `yq` and `awscli` installed. | ||
|
||
It is built and published to [`quay.io/basisai/actions-runner-dind`](https://quay.io/repository/basisai/actions-runner-dind). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM summerwind/actions-runner:v2.286.0-ubuntu-20.04 | ||
|
||
USER root | ||
|
||
ENV SKOPEO_VERSION 100:1.3.0-1 | ||
ENV YQ_VERSION v4.16.2 | ||
|
||
RUN mkdir -p /tmp/aws \ | ||
&& cd /tmp/aws \ | ||
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ | ||
&& unzip awscliv2.zip \ | ||
&& ./aws/install \ | ||
&& rm -rf /tmp/aws | ||
|
||
RUN . /etc/os-release \ | ||
&& echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" \ | ||
| tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list \ | ||
&& curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key \ | ||
| apt-key add - \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install skopeo=${SKOPEO_VERSION} \ | ||
&& wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 \ | ||
&& chmod +x /usr/local/bin/yq \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
USER runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Custom Docker image for GitHub Actions Runner | ||
|
||
This Docker image based off the the [actions-runner image](https://github.com/actions-runner-controller/actions-runner-controller/blob/master/runner/Dockerfile) with `skopeo`, `yq` and `awscli` installed. | ||
|
||
It is built and published to [`quay.io/basisai/actions-runner`](https://quay.io/repository/basisai/actions-runner). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM fluent/fluentd-kubernetes-daemonset:v1.13.3-debian-cloudwatch-amd64-1.2 | ||
FROM fluent/fluentd-kubernetes-daemonset:v1.14.3-debian-cloudwatch-amd64-1.0 | ||
|
||
RUN gem install fluent-plugin-s3 -v 1.6.0 --no-document | ||
RUN gem install fluent-plugin-s3 -v 1.6.1 --no-document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM quay.io/fluentd_elasticsearch/fluentd:v3.2.0 | ||
FROM quay.io/fluentd_elasticsearch/fluentd:v3.3.0 | ||
|
||
RUN fluent-gem install digest-crc --version 0.5.1 --no-document \ | ||
RUN fluent-gem install digest-crc --version 0.6.4 --no-document \ | ||
&& fluent-gem install fluent-plugin-gcs --version 0.4.1 --no-document \ | ||
&& fluent-gem install fluent-plugin-s3 --version 1.6.0 --no-document | ||
&& fluent-gem install fluent-plugin-s3 --version 1.6.1 --no-document |