This commit is contained in:
병준 박 2025-04-17 14:25:29 +00:00
parent 7dde9de9bf
commit 7467f2267d
3 changed files with 7 additions and 1 deletions

2
.devcontainer/.env Normal file
View File

@ -0,0 +1,2 @@
PROJECT_NAME=loafle.tekton-hub
DEV_USER=${USER}

View File

@ -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
"dockerComposeFile": "docker-compose.yaml",
"service": "app",
"workspaceFolder": "/workspace",
"shutdownAction": "stopCompose",
"containerEnv": {
"DEV_USERNAME": "${localEnv:USER}" //
},
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}

View File

@ -9,6 +9,7 @@ services:
# [Optional] You can use build args to set options. e.g. 'VARIANT' below affects the image in the Dockerfile
# args:
# VARIANT: buster
container_name: "${PROJECT_NAME}-${DEV_USER}"
# environment:
# PORT: 3000
# ports: