Skip to content

Commit

Permalink
Dev containers for portal, RR and portal-react
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Jan 18, 2024
1 parent f67048e commit 8d3535c
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 26 deletions.
29 changes: 29 additions & 0 deletions .devcontainer/codeforlife-portal-react/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "codeforlife-portal-react",
"dockerComposeFile": [
"../../docker-compose.yml"
],
"service": "base-service",
"shutdownAction": "none",
"workspaceFolder": "/workspace/codeforlife-portal-react",
"remoteUser": "root",
"postCreateCommand": "./run",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.8"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "18"
}
},
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": ".venv/bin/python"
},
"extensions": [
"ms-python.python"
]
}
}
}
29 changes: 29 additions & 0 deletions .devcontainer/codeforlife-portal/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "codeforlife-portal",
"dockerComposeFile": [
"../../docker-compose.yml"
],
"service": "base-service",
"shutdownAction": "none",
"workspaceFolder": "/workspace/codeforlife-portal",
"remoteUser": "root",
"postCreateCommand": "pipenv install --dev",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.8"
},
"ghcr.io/devcontainers-contrib/features/pipenv:2": {
"version": "2023.11.15"
}
},
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": ".venv/bin/python"
},
"extensions": [
"ms-python.python"
]
}
}
}
24 changes: 0 additions & 24 deletions .devcontainer/devcontainer.json

This file was deleted.

29 changes: 29 additions & 0 deletions .devcontainer/rapid-router/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "rapid-router",
"dockerComposeFile": [
"../../docker-compose.yml"
],
"service": "base-service",
"shutdownAction": "none",
"workspaceFolder": "/workspace/rapid-router",
"remoteUser": "root",
"postCreateCommand": "pipenv install --dev",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.8"
},
"ghcr.io/devcontainers-contrib/features/pipenv:2": {
"version": "2023.11.15"
}
},
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": ".venv/bin/python"
},
"extensions": [
"ms-python.python"
]
}
}
}
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://github.com/devcontainers
version: '1'
services:
base-service:
image: mcr.microsoft.com/devcontainers/base:ubuntu-22.04
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: sleep infinity

0 comments on commit 8d3535c

Please sign in to comment.