Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
mediaserver
envsetup
Commits
04929c7c
Commit
04929c7c
authored
5 years ago
by
Nicolas KAROLAK
Browse files
Options
Downloads
Patches
Plain Diff
update devcontainer
parent
dff626f5
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
.devcontainer/Dockerfile
+17
-7
17 additions, 7 deletions
.devcontainer/Dockerfile
.devcontainer/devcontainer.json
+3
-1
3 additions, 1 deletion
.devcontainer/devcontainer.json
.devcontainer/scripts/postcreate.sh
+0
-4
0 additions, 4 deletions
.devcontainer/scripts/postcreate.sh
with
20 additions
and
12 deletions
.devcontainer/Dockerfile
+
17
−
7
View file @
04929c7c
FROM
registry.ubicast.net/docker/debian-dev:
buster
FROM
registry.ubicast.net/docker/debian-dev:
latest
# avoid warnings by switching to noninteractive
# avoid warnings by switching to noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
...
@@ -11,15 +11,22 @@ RUN \
...
@@ -11,15 +11,22 @@ RUN \
# install required tools
# install required tools
sudo apt-get update && \
sudo apt-get update && \
sudo apt-get install -y \
sudo apt-get install -y \
libffi-dev \
bsd-mailx \
libssl-dev \
python3-defusedxml \
python3-dnspython \
python3-openssl \
python3-psutil \
python3-psycopg2 \
python3-pydbus \
python3-requests \
python3-spf \
&& \
&& \
# clean up
# clean up
sudo apt-get autoremove -y && \
sudo apt-get autoremove -y && \
sudo apt-get clean -y && \
sudo apt-get clean -y && \
sudo rm -rf /var/lib/apt/lists/* && \
sudo rm -rf /var/lib/apt/lists/* && \
# create pyvenv
# create pyvenv
python3 -m venv ${PYVENV} && \
python3 -m venv
--system-site-packages
${PYVENV} && \
# update pip tools into pyvenv
# update pip tools into pyvenv
pip install -U \
pip install -U \
pip \
pip \
...
@@ -28,10 +35,13 @@ RUN \
...
@@ -28,10 +35,13 @@ RUN \
:
:
RUN
\
RUN
\
# requirements
pip install psutil pyOpenSSL pyspf requests defusedxml && \
# dev requirements
# dev requirements
pip install black flake8 pre-commit pylint pysnooper && \
pip install \
black \
flake8 \
pylint \
pysnooper \
&& \
:
:
# switch back to dialog for any ad-hoc use of apt-get
# switch back to dialog for any ad-hoc use of apt-get
...
...
This diff is collapsed.
Click to expand it.
.devcontainer/devcontainer.json
+
3
−
1
View file @
04929c7c
{
{
"name"
:
"envsetup"
,
"dockerComposeFile"
:
"docker-compose.yml"
,
"dockerComposeFile"
:
"docker-compose.yml"
,
"service"
:
"app"
,
"service"
:
"app"
,
"workspaceFolder"
:
"/workspace"
,
"workspaceFolder"
:
"/workspace"
,
"postCreateCommand"
:
"bash .devcontainer/scripts/postcreate.sh"
,
"extensions"
:
[
"extensions"
:
[
//
python
//
python
"ms-python.python"
,
"ms-python.python"
,
],
],
"settings"
:
{
"settings"
:
{
"python.pythonPath"
:
"/home/vscode/pyvenv/bin/python"
,
"python.formatting.provider"
:
"black"
,
},
},
}
}
This diff is collapsed.
Click to expand it.
.devcontainer/scripts/postcreate.sh
deleted
100644 → 0
+
0
−
4
View file @
dff626f5
#!/usr/bin/env bash
# make the GID match with docker on the host
sudo
groupmod
-g
$(
ls
-ln
/var/run/docker.sock |
awk
'{ print $4 }'
)
docker
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