Can not install gitlab-runner on amazonlinux2 from yum
Thank you for the great product.
Summary
I get an error when I install gitlab-runner from yum repository.
No package gitlab-runner available.
I'm referring to this document.
This was possible a few months ago.
What is wrong?
Tried
I tried running next script from these environments. (I write as dockerfile to easy reproduce)
- AWS EC2
- Docker on WSL2 (under proxy)
- Docker on WSL2 (under non proxy)
FROM amazonlinux
RUN curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
RUN yum install gitlab-runner -y
I got this log at all environments.
[+] Building 39.5s (7/7) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 199B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/amazonlinux:latest 9.5s
=> [auth] library/amazonlinux:pull token for registry-1.docker.io 0.0s
=> [1/3] FROM docker.io/library/amazonlinux@sha256:b33b787cdb0e82495d2dc115745f68c7cd8d2585d9d83812fdc183ad39d1b753 5.3s
=> => resolve docker.io/library/amazonlinux@sha256:b33b787cdb0e82495d2dc115745f68c7cd8d2585d9d83812fdc183ad39d1b753 0.0s
=> => sha256:b33b787cdb0e82495d2dc115745f68c7cd8d2585d9d83812fdc183ad39d1b753 547B / 547B 0.0s
=> => sha256:6fa3c5cd2dc7efbe15a2f1d888e8791819023b0d21ae4de3f8014b6b7cf2be10 529B / 529B 0.0s
=> => sha256:2aa63ff55c40363d84978d0bd4f41d56d7d4bf4b33a7ea1f30d94b6a0dce6323 1.48kB / 1.48kB 0.0s
=> => sha256:20e1cc2336fb3a7a833ea690a50980a547ab8eaf90797eccd05c4dffe60d7f2a 62.21MB / 62.21MB 2.2s
=> => extracting sha256:20e1cc2336fb3a7a833ea690a50980a547ab8eaf90797eccd05c4dffe60d7f2a 2.9s
=> [2/3] RUN curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash 22.8s
=> ERROR [3/3] RUN yum install gitlab-runner -y 1.9s
------
> [3/3] RUN yum install gitlab-runner -y:
#7 0.590 Loaded plugins: ovl, priorities
#7 1.595 No package gitlab-runner available.
#7 1.810 Error: Nothing to do
------
executor failed running [/bin/sh -c yum install gitlab-runner -y]: exit code: 1