init
This commit is contained in:
parent
7dde9de9bf
commit
7467f2267d
2
.devcontainer/.env
Normal file
2
.devcontainer/.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
PROJECT_NAME=loafle.tekton-hub
|
||||||
|
DEV_USER=${USER}
|
@ -1,10 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "loafle.tekton-hub",
|
"name": "${env:PROJECT_NAME}",
|
||||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
"dockerComposeFile": "docker-compose.yaml",
|
"dockerComposeFile": "docker-compose.yaml",
|
||||||
"service": "app",
|
"service": "app",
|
||||||
"workspaceFolder": "/workspace",
|
"workspaceFolder": "/workspace",
|
||||||
"shutdownAction": "stopCompose",
|
"shutdownAction": "stopCompose",
|
||||||
|
"containerEnv": {
|
||||||
|
"DEV_USERNAME": "${localEnv:USER}" // 컨테이너 안에서 식별 가능하게
|
||||||
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/git:1": {},
|
"ghcr.io/devcontainers/features/git:1": {},
|
||||||
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
|
||||||
|
@ -9,6 +9,7 @@ services:
|
|||||||
# [Optional] You can use build args to set options. e.g. 'VARIANT' below affects the image in the Dockerfile
|
# [Optional] You can use build args to set options. e.g. 'VARIANT' below affects the image in the Dockerfile
|
||||||
# args:
|
# args:
|
||||||
# VARIANT: buster
|
# VARIANT: buster
|
||||||
|
container_name: "${PROJECT_NAME}-${DEV_USER}"
|
||||||
# environment:
|
# environment:
|
||||||
# PORT: 3000
|
# PORT: 3000
|
||||||
# ports:
|
# ports:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user