Skip to content
Snippets Groups Projects
Commit c575f9cf authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

update dev container setup

parent 66bc4a63
No related branches found
No related tags found
No related merge requests found
Pipeline #180293 failed
# 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:bullseye FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04
# Set permissions for mounts in devcontainer.json # Set permissions for mounts in devcontainer.json
RUN mkdir -p /home/vscode/.vscode-server/bin RUN mkdir -p /home/vscode/.vscode-server/bin
...@@ -10,9 +9,11 @@ RUN chown -R vscode:vscode /home/vscode/.vscode-server ...@@ -10,9 +9,11 @@ RUN chown -R vscode:vscode /home/vscode/.vscode-server
# Adjust this list based on your demands # Adjust this list based on your demands
RUN apt-get update \ RUN apt-get update \
&& apt-get upgrade -y \ && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \ && apt-get install -y \
sshpass \ sshpass \
curl \ curl \
wget \
openssl \
iputils-ping \ iputils-ping \
htop \ htop \
zsh \ zsh \
...@@ -21,10 +22,11 @@ RUN apt-get update \ ...@@ -21,10 +22,11 @@ RUN apt-get update \
tmux \ tmux \
nload \ nload \
yamllint \ yamllint \
&& rm -rf /var/lib/apt/lists/* \
&& rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
&& apt-get clean && apt-get clean
# Install gnmic
RUN bash -c "$(curl -sL https://get-gnmic.openconfig.net)"
# Install oh-my-zsh for more terminal features and set is as primary shell # Install oh-my-zsh for more terminal features and set is 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
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
"version": "1.21" "version": "1.21"
}, },
"ghcr.io/devcontainers/features/docker-in-docker:2.7": { "ghcr.io/devcontainers/features/docker-in-docker:2.7": {
"version": "latest" "version": "latest",
"dockerDashComposeVersion": "v2"
} }
}, },
// add any required extensions that must be pre-installed in the devcontainer // add any required extensions that must be pre-installed in the devcontainer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment