Skip to content

feat: build boundless-cli inside docker container #922

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

0xDones
Copy link

@0xDones 0xDones commented Jul 17, 2025

Description

  • Add Dockerfile and Justfile command to build the boundless-cli binary inside a Docker container and copy it to the host with proper execution permissions and within the executable path

Output

ubuntu@boundless-prover-medium:~/boundless$ just install-cli

Building boundless-cli Docker image...
[+] Building 0.3s (18/18) FINISHED                                                                                                                                                                                                                                                                                                                 docker:default
 => [internal] load build definition from cli.Dockerfile                                                                                                                                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 1.15kB                                                                                                                                                                                                                                                                                                                       0.0s
 => [internal] load metadata for docker.io/library/debian:bookworm-slim                                                                                                                                                                                                                                                                                      0.2s
 => [internal] load metadata for docker.io/library/rust:1.83-slim                                                                                                                                                                                                                                                                                            0.2s
 => [internal] load .dockerignore                                                                                                                                                                                                                                                                                                                            0.0s
 => => transferring context: 185B                                                                                                                                                                                                                                                                                                                            0.0s
 => [stage-1 1/4] FROM docker.io/library/debian:bookworm-slim@sha256:6ac2c08566499cc2415926653cf2ed7c3aedac445675a013cc09469c9e118fdd                                                                                                                                                                                                                        0.0s
 => [builder 1/8] FROM docker.io/library/rust:1.83-slim@sha256:540c902e99c384163b688bbd8b5b8520e94e7731b27f7bd0eaa56ae1960627ab                                                                                                                                                                                                                              0.0s
 => [internal] load build context                                                                                                                                                                                                                                                                                                                            0.0s
 => => transferring context: 19.73kB                                                                                                                                                                                                                                                                                                                         0.0s
 => CACHED [stage-1 2/4] RUN apt-get update && apt-get install -y     ca-certificates     libssl3     libpq5     && rm -rf /var/lib/apt/lists/*                                                                                                                                                                                                              0.0s
 => CACHED [builder 2/8] RUN apt-get update && apt-get install -y     pkg-config     libssl-dev     libpq-dev     build-essential     && rm -rf /var/lib/apt/lists/*                                                                                                                                                                                         0.0s
 => CACHED [builder 3/8] WORKDIR /app                                                                                                                                                                                                                                                                                                                        0.0s
 => CACHED [builder 4/8] COPY Cargo.toml Cargo.lock ./                                                                                                                                                                                                                                                                                                       0.0s
 => CACHED [builder 5/8] COPY rust-toolchain.toml ./                                                                                                                                                                                                                                                                                                         0.0s
 => CACHED [builder 6/8] COPY crates/ ./crates/                                                                                                                                                                                                                                                                                                              0.0s
 => CACHED [builder 7/8] COPY documentation/ ./documentation/                                                                                                                                                                                                                                                                                                0.0s
 => CACHED [builder 8/8] RUN cargo build --release --locked -p boundless-cli                                                                                                                                                                                                                                                                                 0.0s
 => CACHED [stage-1 3/4] COPY --from=builder /app/target/release/boundless /usr/local/bin/boundless                                                                                                                                                                                                                                                          0.0s
 => CACHED [stage-1 4/4] COPY --from=builder /app/target/release/boundless-ffi /usr/local/bin/boundless-ffi                                                                                                                                                                                                                                                  0.0s
 => exporting to image                                                                                                                                                                                                                                                                                                                                       0.0s
 => => exporting layers                                                                                                                                                                                                                                                                                                                                      0.0s
 => => writing image sha256:a039d0ef2cf9a620f886608ea408fceeb4e7d65b12ed52c5a48eb84c459c2673                                                                                                                                                                                                                                                                 0.0s
 => => naming to docker.io/library/boundless-cli                                                                                                                                                                                                                                                                                                             0.0s
Creating temporary container to extract binary...
Copying binary from container...
Successfully copied 136MB to /home/ubuntu/boundless/boundless
Successfully copied 50.6MB to /home/ubuntu/boundless/boundless-ffi
Cleaning up container...
7421c892bdc82de6d9bff86bd1d1fb2e5170c1b3660514ddc7a6ffc0002dabe4
Moving binary to /usr/local/bin...
Setting executable permissions...
boundless-cli successfully installed to /usr/local/bin/boundless
Running 'boundless --version' to verify installation...
boundless-cli 0.12.1
branch:
commit_hash:
build_time:2025-07-17 17:36:45 +00:00
build_env:rustc 1.85.1 (4eb161250 2025-03-15),1.85-x86_64-unknown-linux-gnu

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

Successfully merging this pull request may close these issues.

1 participant