Skip to content

Commit

Permalink
Dockerfile adjustment for containelab image and ensure that it includ…
Browse files Browse the repository at this point in the history
…es holo-cli from external repository
  • Loading branch information
frederic-loui committed Apr 9, 2024
1 parent 8015103 commit cbbc2e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
yang2 = { version = "0.9", features = ["bundled"] }

holo-cli = { path = "../holo-cli" }

[workspace.lints.rust]
rust_2018_idioms = "warn"
unsafe_code = "forbid"
Expand Down
6 changes: 6 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ RUN apt-get update && \
libpcre2-dev \
protobuf-compiler

# holo
# ==============================================================================

WORKDIR /usr/src/holo
COPY . .
RUN cargo build --release

# holo-cli (order is important as holo-cli is using protobuf file in holo)
# ==============================================================================

RUN git clone https://github.com/holo-routing/holo-cli.git /usr/src/holo-cli
WORKDIR /usr/src/holo-cli
RUN cargo build --release
Expand Down

0 comments on commit cbbc2e3

Please sign in to comment.