Skip to content

Commit

Permalink
docker: add cli YANG modules location to docker
Browse files Browse the repository at this point in the history
Add /usr/local/share/holo-cli/modules to the
Dockerfile to ensure YANG location exists when
running the container.

Signed-off-by: Paul Wekesa <[email protected]>
  • Loading branch information
Paul-weqe committed Oct 16, 2024
1 parent b4444fa commit 4db31c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build image
# ==============================================================================

FROM ghcr.io/rust-lang/rust:nightly-bookworm as build
FROM ghcr.io/rust-lang/rust:nightly-bookworm AS build

RUN apt-get update && \
apt-get install -y build-essential \
Expand Down Expand Up @@ -40,6 +40,9 @@ RUN useradd --system --shell /sbin/nologin --home-dir /var/run/holo/ -g holo hol
RUN mkdir -p /var/run/holo
RUN chown holo:holo /var/run/holo

# /usr/local/share/holo-cli/modules is where holo-cli will store its modules
RUN mkdir -p /usr/local/share/holo-cli/modules

RUN echo "alias holo-cli-show='holo-cli -c \"show state xpath /ietf-routing:routing format json\"'" >> /root/.bashrc
RUN echo "alias ipr='ip -4 ro ; ip -6 ro ; ip -M ro'" >> /root/.bashrc

Expand Down

0 comments on commit 4db31c8

Please sign in to comment.