Skip to content

Jenkinsfile: add Rocky Linux and AlmaLinux [carry 323]#326

Merged
thaJeztah merged 2 commits intodocker:masterfrom
thaJeztah:carry_rocky
Sep 15, 2023
Merged

Jenkinsfile: add Rocky Linux and AlmaLinux [carry 323]#326
thaJeztah merged 2 commits intodocker:masterfrom
thaJeztah:carry_rocky

Conversation

@thaJeztah
Copy link
Member

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@thaJeztah
Copy link
Member Author

thaJeztah commented Sep 15, 2023

Something's failing, @AkihiroSuda

Rocky:

DOCKER_BUILDKIT=1 docker build --pull --build-arg GOLANG_IMAGE=golang:1.21.1 --build-arg BUILD_IMAGE=docker.io/library/rockylinux:8 --build-arg BASE=rocky --build-arg CREATE_ARCHIVE=1 --build-arg UID=1000 --build-arg GID=1000 --file=dockerfiles/rpm.dockerfile --progress=auto --target=packages --output=. .
#0 building with "default" instance using docker driver

#1 [internal] load build definition from rpm.dockerfile
#1 transferring dockerfile: 5.36kB done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 transferring context: 145B done
#2 DONE 0.0s

#3 [auth] docker/dockerfile:pull token for registry-1.docker.io
#3 DONE 0.0s

#4 resolve image config for docker.io/docker/dockerfile:1
#4 DONE 0.3s

#5 docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021
#5 CACHED

#6 [auth] library/golang:pull token for registry-1.docker.io
#6 DONE 0.0s

#7 [auth] library/rocky-base:pull token for registry-1.docker.io
#7 DONE 0.0s

#8 [internal] load metadata for docker.io/library/rocky-base:latest
#8 ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

#9 [internal] load metadata for docker.io/library/golang:1.21.1
#9 CANCELED
------
 > [internal] load metadata for docker.io/library/rocky-base:latest:
------
rpm.dockerfile:60
--------------------
  58 |     RUN echo "%_topdir    /root/rpmbuild" > /root/.rpmmacros
  59 |     
  60 | >>> FROM ${BASE}-base AS distro-image
  61 |     
  62 |     FROM distro-image AS build-env
--------------------
ERROR: failed to solve: rocky-base: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

And alma:

+ DOCKER_BUILDKIT=1 docker build --pull --build-arg GOLANG_IMAGE=golang:1.21.1 --build-arg BUILD_IMAGE=docker.io/library/almalinux:8 --build-arg BASE=almalinux --build-arg CREATE_ARCHIVE=1 --build-arg UID=1000 --build-arg GID=1000 --file=dockerfiles/rpm.dockerfile --progress=auto --target=packages --output=. .
#0 building with "default" instance using docker driver

#1 [internal] load build definition from rpm.dockerfile
#1 transferring dockerfile: 5.36kB done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 transferring context: 145B done
#2 DONE 0.0s

#3 [auth] docker/dockerfile:pull token for registry-1.docker.io
#3 DONE 0.0s

#4 resolve image config for docker.io/docker/dockerfile:1
#4 DONE 0.2s

#5 docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021
#5 CACHED

#6 [auth] library/almalinux-base:pull token for registry-1.docker.io
#6 DONE 0.0s

#7 [auth] library/golang:pull token for registry-1.docker.io
#7 DONE 0.0s

#8 [internal] load metadata for docker.io/library/almalinux-base:latest
#8 ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

#9 [internal] load metadata for docker.io/library/golang:1.21.1
#9 CANCELED
------
 > [internal] load metadata for docker.io/library/almalinux-base:latest:
------
rpm.dockerfile:60
--------------------
  58 |     RUN echo "%_topdir    /root/rpmbuild" > /root/.rpmmacros
  59 |     
  60 | >>> FROM ${BASE}-base AS distro-image
  61 |     
  62 |     FROM distro-image AS build-env
--------------------
ERROR: failed to solve: almalinux-base: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

@thaJeztah
Copy link
Member Author

OH! I think you accidentally dropped the Dockerfile changes in your latest push;

Screenshot 2023-09-15 at 16 50 03

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda
Copy link
Contributor

Sorry, fixed in 967611b

@thaJeztah thaJeztah merged commit 2d8a212 into docker:master Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants