Skip to content

Commit 4b44a23

Browse files
committed
Merge branch 'dfalkner/remote-development-naming-conventions' into 'main'
By default ensure naming conventions on the server are set See merge request common/python-package-template!11
2 parents aa70b50 + 5de29f7 commit 4b44a23

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
COMPOSE_PROJECT_NAME={{ cookiecutter.__package_name_kebab_case }}-${SHORTUSER}
2+
DEVCONTAINER_NAME=${COMPOSE_PROJECT_NAME}-devcontainer

‎{{ cookiecutter.__package_name_kebab_case }}/.devcontainer/docker-compose.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
services:
22
devcontainer:
3+
container_name: ${DEVCONTAINER_NAME}
4+
35
# load environment variables from a dotenv file
4-
# env_file: ".env"
6+
env_file: ".env"
7+
58
build:
69
context: ..
710
dockerfile: Dockerfile
@@ -10,10 +13,12 @@ services:
1013
# set args for build process
1114
# args:
1215
# FROM_IMAGE: debian:stable-slim
16+
1317
volumes:
1418
# Mounts the project folder to '/workspace'. While this file is in .devcontainer,
1519
# mounts are relative to the first file in the list, which is a level up.
1620
- ../:/workspace:cached
21+
1722
# Uncomment to run the container with GPU support
1823
# runtime: nvidia
1924
environment:

0 commit comments

Comments
 (0)