junodb icon indicating copy to clipboard operation
junodb copied to clipboard

Facing Issue while building from docker

Open NK8916 opened this issue 2 years ago • 5 comments

` => 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 avatar May 27 '23 11:05 NK8916

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

NeetishPathak avatar May 30 '23 21:05 NeetishPathak

Getting same error after running build.sh

NK8916 avatar Jun 03 '23 16:06 NK8916

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

NeetishPathak avatar Jun 06 '23 17:06 NeetishPathak

@NK8916 are you still seeing the issue?

varuntechie avatar Jun 27 '23 20:06 varuntechie

@varuntechie Yes still facing same issue

NK8916 avatar Jul 01 '23 11:07 NK8916