Skip to content

Fixing issues with Docker and CI/CD pipeline

Daniel Wysocki requested to merge daniel.wysocki/rift:docker_login_fix into master

This replaces the deprecated $CI_BUILD_TOKEN with $CI_JOB_TOKEN in .gitlab-ci.yml (see here).

This fixes the error currently causing CI/CD pipelines to fail (example)

$ docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password

However it seems that the Docker image in Dockerfile no longer exists (it was probably deleted without us noticing after the pipeline started failing because of this GitLab deprecation)

Dockerfile:1
--------------------
   1 | >>> FROM nvidia/cuda:11.7.0-runtime-rockylinux8
   2 |     
   3 |     LABEL name="RIFT (CentOs) - benchmarking utility" \
--------------------
ERROR: failed to solve: nvidia/cuda:11.7.0-runtime-rockylinux8: docker.io/nvidia/cuda:11.7.0-runtime-rockylinux8: not found

I bumped the version number of nvidia/cuda from 11.7.0 to 11.7.1 which fixed this.

Still, the pipeline is failing afterwards, saying it can't build gwsurrogate (see here), but I think that's a problem for another MR.

Edited by Daniel Wysocki

Merge request reports