Skip to content

Commit aa850cf

Browse files
committed
refs platform/#2421: add gitlab-runner CLI to register runners and update base images
1 parent ebcd75c commit aa850cf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# You can find the list of the available tags here:
22
# https://console.cloud.google.com/gcr/images/google.com:cloudsdktool/GLOBAL/google-cloud-cli
33

4-
ARG CLOUD_SDK_VERSION=438.0.0-alpine
5-
ARG AWS_CLI_VERSION=2.12.0
4+
ARG CLOUD_SDK_VERSION=446.0.1-alpine
5+
ARG AWS_CLI_VERSION=2.13.18
66
ARG ALPINE_VERSION=3.18
77
# To fetch the right alpine version use:
88
# docker run --rm --entrypoint ash eu.gcr.io/google.com/cloudsdktool/google-cloud-cli:${CLOUD_SDK_VERSION} -c 'cat /etc/issue'
@@ -241,6 +241,13 @@ RUN kubectl krew install resource-capacity && \
241241
# Install community-images using krew https://github.com/kubernetes-sigs/community-images#kubectl-community-images
242242
kubectl krew install community-images
243243

244+
# Install gitlab-runner CLI
245+
# Install documentation: https://docs.gitlab.com/runner/install/linux-manually.html
246+
# Gitlab runner CLI verions list: https://gitlab.com/gitlab-org/gitlab-runner/-/tags
247+
ENV GITLAB_RUNNER_CLI_VERSION 16.3.1
248+
RUN curl -sfL --output "/usr/local/bin/gitlab-runner" "https://gitlab-runner-downloads.s3.amazonaws.com/v${GITLAB_RUNNER_CLI_VERSION}/binaries/gitlab-runner-linux-${TARGETARCH}" && \
249+
chmod +x /usr/local/bin/gitlab-runner
250+
244251
# Copy alias functions
245252
COPY bash_functions.sh /etc/profile.d/bash_functions.sh
246253
RUN chmod +x /etc/profile.d/bash_functions.sh

0 commit comments

Comments
 (0)