-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project-dev): 🧑💻 add dev containers settings
- Loading branch information
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ARG BASE_IMAGE={{ docker-base-image }} | ||
FROM ${BASE_IMAGE} | ||
RUN apt-get update \ | ||
&& apt-get install build-essential git gcc -y \ | ||
&& apt-get clean | ||
|
||
RUN pip install -U pip setuptools wheel | ||
RUN pip install pdm | ||
|
||
RUN mkdir /data | ||
|
||
CMD "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | ||
{ | ||
"name": "Development docker containers", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "app", | ||
"workspaceFolder": "/app", | ||
"shutdownAction": "stopCompose", | ||
"overrideCommand": true, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vivaxy.vscode-conventional-commits", | ||
"DavidAnson.vscode-markdownlint", | ||
"ionutvmi.path-autocomplete", | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"ms-python.black-formatter" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3.8" | ||
|
||
services: | ||
app: | ||
build: | ||
context: .. | ||
dockerfile: .devcontainer/Dockerfile.dev | ||
env_file: | ||
- .env | ||
command: "/bin/sh -c \"while sleep 1000; do :; done\"" | ||
volumes: | ||
- "../:/app" |