-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onos-config : make images failing on CentOS 8 #1666
Comments
The error here is not related to your OS because what you are doing is building the Docker image. Moreover, APK is the Alpine's package manager, which is specific for the image you are pulling (Alpine). $ docker pull alpine:3.13
$ docker container run --name=alpine -it alpine:3.13 apk add libc6-compat The output of the last command should look like below, which is the same step where you see the error when using fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
(1/2) Upgrading musl (1.2.2-r1 -> 1.2.2-r2)
(2/2) Installing libc6-compat (1.2.2-r2)
OK: 6 MiB in 15 packages
|
Hi Gab-Arrobo Thank you so much for your response !!! We tried the above mentioned commands and please have a look at the output for both : [root@localhost onos-config]# docker pull alpine:3.13 [root@localhost onos-config]# docker container run --name=alpine -it alpine:3.13 apk add libc6-compat It says 'Permission Denied' on fetching apline's APK tars. We also tried 'yum update ca-certificates' as we thought this is the certificate issue. But we got no success for the second command. Please suggest what should be done next to make successful image of onos-config. |
We tried making images of onos-config on CentOS 8. Please have a look at the error we got :
[root@localhost onos-config]# make images
go mod tidy
go mod vendor
docker build --platform linux/amd64 . -f build/onos-config/Dockerfile
-t onosproject/onos-config:latest
[+] Building 3.5s (8/16) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 860B 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.13 1.7s
=> [internal] load metadata for docker.io/onosproject/golang-build:v1.3.0 1.7s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 328B 0.0s
=> CANCELED [build 1/8] FROM docker.io/onosproject/golang-build:v1.3.0@sha256:53e9d0bfea7f4bab30b6c7f70c4f74704b8c1d86468450959e1b3330c19ef6cd 1.6s
=> => resolve docker.io/onosproject/golang-build:v1.3.0@sha256:53e9d0bfea7f4bab30b6c7f70c4f74704b8c1d86468450959e1b3330c19ef6cd 0.0s
=> => sha256:53e9d0bfea7f4bab30b6c7f70c4f74704b8c1d86468450959e1b3330c19ef6cd 2.85kB / 2.85kB 0.0s
=> => sha256:29c8a1adabe59bf198a2349fe6e85c2cbba6784b4fd58d0832912d764e5d8c6b 9.33kB / 9.33kB 0.0s
=> => sha256:1671565cc8df8c365c9b661d3fbc164e73d01f1b0430c6179588428f99a9da2e 12.58MB / 55.01MB 1.6s
=> => sha256:3e94d13e55e7a4ef17ff21376f57fb95c7e1706931f8704aa99260968d81f6e4 0B / 5.16MB 1.6s
=> => sha256:fa9c7528c685216129e8e67bf362a7702e7b1daa585ab85546a41508830657d6 0B / 10.88MB 1.6s
=> [internal] load build context 0.9s
=> => transferring context: 29.19MB 0.9s
=> CACHED [stage-1 1/3] FROM docker.io/library/alpine:3.13@sha256:469b6e04ee185740477efa44ed5bdd64a07bbdd6c7e5f5d169e540889597b911 0.0s
=> ERROR [stage-1 2/3] RUN apk add libc6-compat 1.6s
Dockerfile:22
20 |
21 | FROM alpine:3.13
22 | >>> RUN apk add libc6-compat
23 |
24 | USER nobody
ERROR: failed to solve: process "/bin/sh -c apk add libc6-compat" did not complete successfully: exit code: 1
make: *** [Makefile:49: onos-config-docker] Error 1
[root@localhost onos-config]#
Please suggest how to install 'apk' and libc6-compat in CentOS 8
The text was updated successfully, but these errors were encountered: