nestybox / sysbox

An open-source, next-generation "runc" that empowers rootless containers to run workloads such as Systemd, Docker, Kubernetes, just like VMs.
Apache License 2.0
2.61k stars 146 forks source link

can't build sysbox-in-docker image. `sysbox-runc` binary not available #798

Open ghost opened 1 month ago

ghost commented 1 month ago

When creating a docker image for sysbox-in-docker with ubuntu-bionic, sysbox-runc binary is not found as it in the directory. If the binary is available, kindly tell me where it is. In the releases section i can only find the debian package.

Here is the output of running the make ubuntu-focal from the sysbox-in-docker directory.

** Building ubuntu-focal sysbox-in-docker image **

[+] Building 1.7s (18/18) FINISHED                                                                                                 docker:default
 => [internal] load build definition from Dockerfile.ubuntu-focal                                                                            0.0s
 => => transferring dockerfile: 2.80kB                                                                                                       0.0s
 => [internal] load metadata for docker.io/library/ubuntu:focal                                                                              1.6s
 => [internal] load .dockerignore                                                                                                            0.0s
 => => transferring context: 2B                                                                                                              0.0s
 => [internal] load build context                                                                                                            0.0s
 => => transferring context: 9.46kB                                                                                                          0.0s
 => [ 1/12] FROM docker.io/library/ubuntu:focal@sha256:874aca52f79ae5f8258faff03e10ce99ae836f6e7d2df6ecd3da5c1cad3a912b                      0.0s
 => => resolve docker.io/library/ubuntu:focal@sha256:874aca52f79ae5f8258faff03e10ce99ae836f6e7d2df6ecd3da5c1cad3a912b                        0.0s
 => CANCELED [ 5/12] ADD https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker /etc/bash_  0.0s
 => CANCELED [ 6/12] ADD https://github.com/just-containers/s6-overlay/releases/download/v2.1.0.2/s6-overlay-amd64-installer /tmp/           0.0s
 => CACHED [ 2/12] RUN apt-get update     && apt-get install --no-install-recommends -y        apt-utils        ca-certificates        wget  0.0s
 => CACHED [ 3/12] RUN curl -fsSL https://get.docker.com -o get-docker.sh                                                                    0.0s
 => CACHED [ 4/12] RUN sh get-docker.sh                                                                                                      0.0s
 => CACHED [ 5/12] ADD https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker /etc/bash_co  0.0s
 => CACHED [ 6/12] ADD https://github.com/just-containers/s6-overlay/releases/download/v2.1.0.2/s6-overlay-amd64-installer /tmp/             0.0s
 => CACHED [ 7/12] RUN chmod +x /tmp/s6-overlay-amd64-installer && /tmp/s6-overlay-amd64-installer /                                         0.0s
 => CACHED [ 8/12] COPY s6-services /etc/services.d/                                                                                         0.0s
 => CACHED [ 9/12] COPY sysbox /etc/cont-init.d/                                                                                             0.0s
 => CACHED [10/12] COPY sysbox-mgr /usr/bin/sysbox-mgr                                                                                       0.0s
 => CACHED [11/12] COPY sysbox-fs /usr/bin/sysbox-fs                                                                                         0.0s
 => ERROR [12/12] COPY sysbox-runc /usr/bin/sysbox-runc                                                                                      0.0s
------
 > [12/12] COPY sysbox-runc /usr/bin/sysbox-runc:
------
Dockerfile.ubuntu-focal:76
--------------------
  74 |     COPY sysbox-mgr /usr/bin/sysbox-mgr
  75 |     COPY sysbox-fs /usr/bin/sysbox-fs
  76 | >>> COPY sysbox-runc /usr/bin/sysbox-runc
  77 |     
  78 |     ENTRYPOINT ["/init"]
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref ab1fbcd0-8ffd-423c-b6c1-2d1fa516c807::vq3w13xh9mqidlge10452i7k4: "/sysbox-runc": not found
make: *** [Makefile:102: ubuntu-focal] Error 1

If i try to pull nestybox/sysbox-in-docker from docker hub or ghcr.io, i can't probably because it doesn't exist there... can anyone please tell how can i do this??

ghost commented 1 month ago

From a previous commit I can see that these files were deliberately added to .gitignore which means that they are available somewhere... This commit is 4 years old. image