Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-openvscode-server-cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
MyDockerImages
docker-openvscode-server-cpp
Commits
cbdf27a7
Verified
Commit
cbdf27a7
authored
6 months ago
by
Dominique Marcadet
Browse files
Options
Downloads
Patches
Plain Diff
update to latest versions. Multiplatform image seems OK now.
parent
4208049b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+3
-8
3 additions, 8 deletions
Dockerfile
Makefile
+1
-5
1 addition, 5 deletions
Makefile
README.md
+4
-6
4 additions, 6 deletions
README.md
with
8 additions
and
19 deletions
Dockerfile
+
3
−
8
View file @
cbdf27a7
FROM
--platform=${TARGETPLATFORM} gitlab-research.centralesupelec.fr:4567/my-docker-images/docker-openvscode-server:
${TARGETARCH}
FROM
--platform=${TARGETPLATFORM} gitlab-research.centralesupelec.fr:4567/my-docker-images/docker-openvscode-server:
latest
## software needed
# g++-12 is available on Ubuntu 22.04, but boost currently depends on g++-11
RUN
\
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
\
...
...
@@ -10,7 +9,7 @@ RUN \
clangd
\
cmake
\
gdb
\
g++
-11
\
g++
\
googletest
\
libboost-all-dev
\
libgmp-dev
\
...
...
@@ -18,15 +17,11 @@ RUN \
lldb
\
make
\
valgrind
\
&&
apt-get autoremove
\
&&
apt-get autoclean
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
\
update-alternatives
\
--install
/usr/bin/gcc gcc /usr/bin/gcc-11 100
\
--slave
/usr/bin/g++ g++ /usr/bin/g++-11
\
&&
update-alternatives
\
--install
/usr/bin/cc cc /usr/bin/clang 100
\
&&
update-alternatives
\
--install
/usr/bin/c++ c++ /usr/bin/clang++ 100
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
5
View file @
cbdf27a7
...
...
@@ -2,11 +2,7 @@
REPO
=
gitlab-research.centralesupelec.fr:4567/my-docker-images/docker-openvscode-server-cpp
TAG
=
latest
# No multi-platform image, see my-docker-images/docker-openvscode
all
:
docker buildx create
--use
--node
new-builder
docker buildx build
--load
--platform
"linux/amd64"
--tag
"
${
REPO
}
:amd64"
.
docker push
"
${
REPO
}
:amd64"
docker buildx build
--load
--platform
"linux/arm64"
--tag
"
${
REPO
}
:arm64"
.
docker push
"
${
REPO
}
:arm64"
docker buildx build
--provenance
=
false
--push
--platform
"linux/amd64"
,
"linux/arm64"
--tag
"
${
REPO
}
:
${
TAG
}
"
.
This diff is collapsed.
Click to expand it.
README.md
+
4
−
6
View file @
cbdf27a7
...
...
@@ -6,8 +6,8 @@ This image is based on [docker-openvscode-server](https://gitlab-research.centra
it adds the needed tools for C/C++ development.
Included tools are:
-
g++-1
1
(as g++), gcc-1
1
(as gcc)
-
clang++-1
4
(as c++), clang-1
4
(as cc)
-
g++-1
3
(as g++), gcc-1
3
(as gcc)
-
clang++-1
8
(as c++), clang-1
8
(as cc)
-
clangd with its
[
VSCode extension
](
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
)
-
gdb
-
lldb
...
...
@@ -26,12 +26,10 @@ Included tools are:
-
The exposed port is 3000
-
The user folder is
`/config`
-
the user and sudo password is
`abc`
-
If docker (or podman) is installed on your computer, you can run (amd64 architecture) this
-
If docker (or podman) is installed on your computer, you can run (
`
amd64
`
or
`arm64`
architecture) this
image, assuming you are in a specific folder that will be shared with the container at
`/config`
, with:
`docker run -p 3000:3000 -v "$(pwd):/config"
gitlab-research.centralesupelec.fr:4567/my-docker-images/docker-openvscode-server-cpp:amd64`
-
There is an image for arm64 architecture (tag
`arm64`
)
gitlab-research.centralesupelec.fr:4567/my-docker-images/docker-openvscode-server-cpp:latest`
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