Increase in Build Time with GitLab Runner on ARM64 Server
Summary
I was building my Flask project using Docker with GitLab Runner. The build and deploy steps used to take a total of 5 minutes. However, I switched to a new server with an ARM64 architecture and moved the GitLab Runner to this server. Now the build time takes more than 15 minutes. What could be the reason for this?
Steps to reproduce
- Use GitLab Runner with Docker executor on an ARM64 server.
- Run the build job for a Flask project.
.gitlab-ci.yml
image:
name: docker:20.10-dind
entrypoint: [""]
services:
- name: docker:20.10-dind
alias: docker
stages:
- build
- deploy
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
before_script:
- export IMAGE=$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
- export WEB_IMAGE=$IMAGE:web
- apk add --no-cache openssh-client bash
- chmod +x ./setup_env.sh
- bash ./setup_env.sh
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
build:
stage: build
script:
- docker pull $IMAGE:web || true
- docker-compose -f docker-compose.ci.yaml build
- docker push $IMAGE:web
only:
- main
Actual behavior
- Build time now exceeds 15 minutes on the ARM64 server.
Expected behavior
- Build time should remain close to 5 minutes (original performance).
Relevant logs and/or screenshots
job log
Add the job log
Environment description
config.toml contents
Add your configuration here
Used GitLab Runner version
Version: 16.11.1
Git revision: 535ced5f
Git branch: 16-11-stable
GO version: go1.21.9
Built: 2024-05-03T15:52:38+0000
OS/Arch: linux/arm64