Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
quant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
quant
Commits
c575f9cf
Commit
c575f9cf
authored
1 year ago
by
Neil-Jocelyn Schark
Browse files
Options
Downloads
Patches
Plain Diff
update dev container setup
parent
66bc4a63
No related branches found
No related tags found
No related merge requests found
Pipeline
#180293
failed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.devcontainer/Dockerfile
+7
-5
7 additions, 5 deletions
.devcontainer/Dockerfile
.devcontainer/devcontainer.json
+2
-1
2 additions, 1 deletion
.devcontainer/devcontainer.json
with
9 additions
and
6 deletions
.devcontainer/Dockerfile
+
7
−
5
View file @
c575f9cf
# 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:bu
llseye
FROM
mcr.microsoft.com/vscode/devcontainers/base:
u
bu
ntu-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
...
...
This diff is collapsed.
Click to expand it.
.devcontainer/devcontainer.json
+
2
−
1
View file @
c575f9cf
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment