Skip to content
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

Facing Issue while building from docker #135

Open
NK8916 opened this issue May 27, 2023 · 5 comments
Open

Facing Issue while building from docker #135

NK8916 opened this issue May 27, 2023 · 5 comments

Comments

@NK8916
Copy link

NK8916 commented May 27, 2023

` => CANCELED [internal] load build context 0.0s
=> => transferring context: 0.0s
=> CACHED [juno-build 1/1] FROM ghcr.io/paypal/junodb/juno-build:latest 0.0s
=> CACHED [juno-runtime-base 2/3] RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yqq daemontools curl dnsutils ed less netcat net-tools sysstat iputils-ping tzdata && apt-get auto 0.0s
=> CACHED [juno-runtime-base 3/3] RUN groupadd -r juno --gid=1000 && useradd -r -g juno --uid=1000 juno 0.0s
=> ERROR [junoclustercfg 1/5] COPY --from=juno-build /juno/bin/clusterctl /juno/bin/junocfg /juno/bin/junoctl /juno/cmd/etcdsvr/etcdctl /opt/juno/ 0.0s

[junoclustercfg 1/5] COPY --from=juno-build /juno/bin/clusterctl /juno/bin/junocfg /juno/bin/junoctl /juno/cmd/etcdsvr/etcdctl /opt/juno/:


Dockerfile:53

52 |
53 | >>> COPY --from=juno-build
54 | >>> /juno/bin/clusterctl
55 | >>> /juno/bin/junocfg
56 | >>> /juno/bin/junoctl
57 | >>> /juno/cmd/etcdsvr/etcdctl
58 | >>> /opt/juno/
59 |

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::128g9rtlb7qrgrase1wz73do8: "/juno/bin/clusterctl": not found
make: *** [build_junoclustercfg] Error 1`

anyone faced similar issue ?

@NK8916 NK8916 changed the title Facing Issue While building from docker Facing Issue while building from docker May 27, 2023
@NeetishPathak
Copy link
Collaborator

NeetishPathak commented May 30, 2023

Explain what steps led to this error.
The docker build is staged build where juno-build image should get created first.
juno-build uses ubuntu:16.04 as base image. Can you confirm if the juno-build image was successfully created ? if "docker login" is authenticated, you may run the build.sh in docker base directory to generate all the images

@NK8916
Copy link
Author

NK8916 commented Jun 3, 2023

Getting same error after running build.sh

@NeetishPathak
Copy link
Collaborator

This is the error on juno services build stage where the /juno/bin/clusterctl binary is not found.
Can you confirm if the juno-build image was created when you run build.sh and the error happened after that
Also mention the build environment , os, docker version etc.

You can view a demo build here - https://github.com/paypal/junodb/blob/dev/docs/videos.md

@varuntechie
Copy link
Contributor

@NK8916 are you still seeing the issue?

@NK8916
Copy link
Author

NK8916 commented Jul 1, 2023

@varuntechie Yes still facing same issue

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

No branches or pull requests

3 participants