Skip to content
Snippets Groups Projects

Fix arm dev containers with did

Merged Neil-Jocelyn Schark requested to merge arm-devcontainer-did into master
Files
3
+ 4
5
# The devcontainer will be based on debian
# The base container already has entrypoint, vscode user account, etc. out of the box
# The base container already has entrypoint, vscode user account, etc. out of the box
FROM mcr.microsoft.com/vscode/devcontainers/base:bookworm
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04
# Containerlab version will be set in devcontainer.json
# Containerlab version will be set in devcontainer.json
ARG _CLAB_VERSION
ARG _CLAB_VERSION
@@ -33,6 +32,9 @@ RUN apt-get update \
@@ -33,6 +32,9 @@ RUN apt-get update \
# Install gnmic
# Install gnmic
RUN bash -c "$(curl -sL https://get-gnmic.openconfig.net)"
RUN bash -c "$(curl -sL https://get-gnmic.openconfig.net)"
 
# Install preferred version of the containerlab
 
RUN bash -c "$(curl -sL https://get.containerlab.dev)" -- -v ${_CLAB_VERSION}
 
# Install oh-my-zsh for more terminal features and set it as primary shell
# Install oh-my-zsh for more terminal features and set it as primary shell
ENV SHELL /bin/zsh
ENV SHELL /bin/zsh
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
@@ -40,6 +42,3 @@ RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -
@@ -40,6 +42,3 @@ RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -
# Set editor
# Set editor
RUN echo "export VISUAL='nano'" >> /home/vscode/.zshrc
RUN echo "export VISUAL='nano'" >> /home/vscode/.zshrc
RUN echo "export EDITOR='nano'" >> /home/vscode/.zshrc
RUN echo "export EDITOR='nano'" >> /home/vscode/.zshrc
# Install preferred version of the containerlab
RUN bash -c "$(curl -sL https://get.containerlab.dev)" -- -v ${_CLAB_VERSION}
Loading