paypal / junodb

JunoDB is PayPal's home-grown secure, consistent and highly available key-value store providing low, single digit millisecond, latency at any scale.
Apache License 2.0
2.56k stars 163 forks source link

Facing Issue while building from docker #135

Open NK8916 opened 1 year ago

NK8916 commented 1 year ago

` => 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 ?

NeetishPathak commented 1 year ago

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 commented 1 year ago

Getting same error after running build.sh

NeetishPathak commented 1 year ago

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 commented 1 year ago

@NK8916 are you still seeing the issue?

NK8916 commented 1 year ago

@varuntechie Yes still facing same issue