Skip to content

Upgrade alpine version to 3.13.6

Georgi N. Georgiev requested to merge alpine-3-13 into main

What does this MR do?

Upgrades the alpine images base image version to 3.13.6. First step from https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27913#note_671182129

Why was this MR needed?

To be kept up to date with alpine versions and to allow to upgrade to 3.14 later

What's the best way to test this MR?

Build the runner and helper images yourself or use mine, they are already pushed:

DOCKER_REGISTRY=gngeorgiev GOOS=linux go build -o ./dockerfiles/runner-helper/binaries/gitlab-runner-helper && docker build -t $DOCKER_REGISTRY/helper-image:latest -f dockerfiles/runner-helper/Dockerfile.alpine --build-arg BASE_IMAGE=alpine:3.13.6 dockerfiles/runner-helper && docker push $DOCKER_REGISTRY/helper-image:latest
DOCKER_REGISTRY=gngeorgiev GOOS=linux go build -o ./dockerfiles/runner/alpine/gitlab-runner-linux-amd64 && docker build -t $DOCKER_REGISTRY/runner-image:latest -f dockerfiles/runner/alpine/Dockerfile --build-arg DOCKER_MACHINE_VERSION="0.16.2" --build-arg DUMB_INIT_VERSION="1.2.2" --build-arg GIT_LFS_VERSION="2.11.0" dockerfiles/runner/alpine && docker push $DOCKER_REGISTRY/runner-image:latest

The easiest way is to deploy an instance of the Runner with helm chart:

Go to helm chart's repo:

custom-img-val.yml

image: "gngeorgiev/runner-image:latest"
runner:
  tags: helm
  config: |
    [[runners]]
      [runners.kubernetes]
        helper_image = "gngeorgiev/helper-image:latest"
helm install -f values.yaml -f custom-img-val.yml --set gitlabUrl=https://gitlab.com,runnerRegistrationToken=<token> runner

Now run a job and verify that it passes while helper and runner images use the new alpine version.

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27913

Edited by Georgi N. Georgiev

Merge request reports