CI crash after trying apt.dockerproject.org repo

Hello there!

There is a problem with yum.dockerproject.org and apt.dockerproject.org. They went offline (according to the mobyproject team aka the new dockerproject team)
https://forums.mobyproject.org/t/yum-centos-repo-is-broken-https-yum-dockerproject-org-repo-main-centos-7/543/2

Do you need to update these repos in your CI Runner or do I have to update them on my server?

CI img:
image

Hi,

can you provide more context where these commands are run? E.g. share the .gitlab-ci,yml configuration and which system (shell executor, Docker container image, etc.) you are using. Last but not least, please also share the version from /help.

Cheers,
Michael

Sure! Thx for helping!
This is happening some lines after Running with gitlab-runner 12.7.0-rc1

Maybe i only have to clean cache runners ?

Here is the gitlab.ci.yml:

cache:
      key: "$CI_BUILD_REF_NAME node:12.10.0-alpine"
      paths:
      - node_modules/
    stages:
      - staging
      - prod
staging:
  stage: staging
  before_script: 
    - "apt-get update -y && apt-get install sshpass"
  image: "gitlab/dind:latest"
  only: 
    - develop
  script:
    *here goes some scripts*
prod:
  stage: prod
  before_script: 
    - "apt-get update -y && apt-get install sshpass"
  image: "gitlab/dind:latest"
  only: 
    - master
  script:
    *here goes some scripts*

I can’t exec /help because this happend inside de gitlab ci runner.

Hi,

I meant https://gitlab.domain/help - this is a standard detail to be added when you ask a question. It allows others to see whether you are on an old version, or might have hit a bug. Please include the versions involved next time.

Gotcha, I was looking for the image where this is executed in.

When you navigate onto Dockerhub, it says that the image is deprecated and you should use the official one.

-  image: "gitlab/dind:latest"
+  image: docker:19.03.1

Keep in mind though that apt won’t work with it since it uses Alpine as base image.

Still, you can test this locally on your desktop or notebook with Docker installed first.

My Fedora:

michi@imagine ~ $ sudo docker run -ti docker:latest sh

/ # apk update && apk add sshpass
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
v3.11.2-78-g48c2d33662 [http://dl-cdn.alpinelinux.org/alpine/v3.11/main]
v3.11.2-75-g5f284a899b [http://dl-cdn.alpinelinux.org/alpine/v3.11/community]
OK: 11263 distinct packages available
(1/1) Installing sshpass (1.06-r0)
Executing busybox-1.31.1-r8.trigger
OK: 18 MiB in 22 packages

So you’ll also modify it like this:

-  before_script: 
-    - "apt-get update -y && apt-get install sshpass"
+  before_script: 
+    - "apk update && apk add sshpass"

Cheers,
Michael

This seems to work! But some scripts start failing after your change.

Is there any equivalent for SCP and SSH command in docker:19.03.1 ?
EDIT: Done! Only need to add apk add openssh!
THX
Really thx in advance!

1 Like