Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP2
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
fila2-os
TP2
Commits
d48f88a0
Commit
d48f88a0
authored
2 years ago
by
Théo Le Calvar
Browse files
Options
Downloads
Patches
Plain Diff
change debian base image to alpine
parent
deb60502
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.devcontainer/Dockerfile
+5
-10
5 additions, 10 deletions
.devcontainer/Dockerfile
.devcontainer/devcontainer.json
+3
-9
3 additions, 9 deletions
.devcontainer/devcontainer.json
with
8 additions
and
19 deletions
.devcontainer/Dockerfile
+
5
−
10
View file @
d48f88a0
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/cpp/.devcontainer/base.Dockerfile
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/cpp/.devcontainer/base.Dockerfile
# [Choice] Debian / Ubuntu version (use Debian 11, Ubuntu 18.04/22.04 on local arm64/Apple Silicon): debian-11, debian-10, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04
FROM
alpine:latest
ARG
VARIANT="bullseye"
FROM
mcr.microsoft.com/vscode/devcontainers/cpp:0-${VARIANT}
# [Optional] Uncomment this section to install additional vcpkg ports.
RUN
apk add bash g++ gdb make qemu qemu-img qemu-system-x86_64 qemu-system-i386 qemu-ui-curses
&&
\
# RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>"
adduser
-D
-s
/bin/bash vscode
&&
\
touch
/home/vscode/.bashrc
&&
\
# [Optional] Uncomment this section to install additional packages.
chown
vscode:vscode /home/vscode/.bashrc
RUN
apt-get update
&&
export
DEBIAN_FRONTEND
=
noninteractive
\
\ No newline at end of file
&&
apt-get
-y
install
--no-install-recommends
qemu-system-x86 novnc
\
&&
rm
-rf
/var/lib/apt/lists/
*
This diff is collapsed.
Click to expand it.
.devcontainer/devcontainer.json
+
3
−
9
View file @
d48f88a0
//
For
format
details,
see
https://aka.ms/devcontainer.json.
For
config
options,
see
the
README
at:
//
For
format
details,
see
https://aka.ms/devcontainer.json.
For
config
options,
see
the
README
at:
//
https://github.com/microsoft/vscode-dev-containers/tree/v
0.234
.
0
/containers/cpp
//
https://github.com/microsoft/vscode-dev-containers/tree/v
0.234
.
0
/containers/cpp
{
{
"name"
:
"
C++
"
,
"name"
:
"
Sextant-dev
"
,
"build"
:
{
"build"
:
{
"dockerfile"
:
"Dockerfile"
,
"dockerfile"
:
"Dockerfile"
,
//
Update
'VARIANT'
to
pick
an
Debian
/
Ubuntu
OS
version:
debian
-11
,
debian
-10
,
ubuntu
-22.04
,
ubuntu
-20.04
,
ubuntu
-18.04
//
Use
Debian
11
,
Ubuntu
18.04
or
Ubuntu
22.04
on
local
arm
64
/Apple
Silicon
"args"
:
{
"VARIANT"
:
"debian-11"
}
},
},
"runArgs"
:
[
"--cap-add=SYS_PTRACE"
,
"--security-opt"
,
"seccomp=unconfined"
],
//
"runArgs"
:
[
"--cap-add=SYS_PTRACE"
,
"--security-opt"
,
"seccomp=unconfined"
],
//
Set
*default*
container
specific
settings.json
values
on
container
create.
//
Set
*default*
container
specific
settings.json
values
on
container
create.
"settings"
:
{},
"settings"
:
{},
...
@@ -22,13 +19,10 @@
...
@@ -22,13 +19,10 @@
],
],
//
Use
'forwardPorts'
to
make
a
list
of
ports
inside
the
container
available
locally.
//
Use
'forwardPorts'
to
make
a
list
of
ports
inside
the
container
available
locally.
"forwardPorts"
:
[
"forwardPorts"
:
[],
6080
//
web
port
of
novnc
],
//
Use
'postCreateCommand'
to
run
commands
after
the
container
is
created.
//
Use
'postCreateCommand'
to
run
commands
after
the
container
is
created.
//
"postCreateCommand"
:
"gcc -v"
,
//
"postCreateCommand"
:
"gcc -v"
,
"postAttachCommand"
:
"/usr/share/novnc/utils/launch.sh"
,
//
Comment
out
to
connect
as
root
instead.
More
info:
https://aka.ms/vscode-remote/containers/non-root.
//
Comment
out
to
connect
as
root
instead.
More
info:
https://aka.ms/vscode-remote/containers/non-root.
"remoteUser"
:
"vscode"
"remoteUser"
:
"vscode"
...
...
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