Spaces:
Runtime error
Runtime error
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/python | |
{ | |
"name": "TTS Service", | |
"dockerComposeFile": "docker-compose.yml", | |
"service": "dev", | |
"runServices": ["dev"], | |
"workspaceFolder": "/workspaces/tts-service", | |
"features": { | |
"ghcr.io/devcontainers/features/github-cli:1": {}, | |
"ghcr.io/nikobockerman/devcontainer-features/poetry-persistent-cache:1": {}, | |
"ghcr.io/devcontainers-extra/features/poetry:2": {}, | |
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} | |
}, | |
"containerEnv": { | |
"DOCKER_CLI_HINTS": "false", | |
"POETRY_VIRTUALENVS_IN_PROJECT": "false", | |
"VIRTUAL_ENV": "/mnt/poetry-persistent-cache/virtualenvs/tts-service-joSAMYfP-py3.10", | |
"COMPOSE_PROJECT_NAME": "tts-service_devcontainer", | |
"COMPOSE_FILE": "${containerWorkspaceFolder}/.devcontainer/docker-compose.yml" | |
}, | |
"remoteEnv": { | |
"PATH": "${containerEnv:VIRTUAL_ENV}/bin:${containerWorkspaceFolder}/.devcontainer/dev/bin:${containerEnv:PATH}" | |
}, | |
"mounts": [ | |
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.gitconfig,target=/home/vscode/.gitconfig,readonly", | |
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,readonly" | |
], | |
"postCreateCommand": ".devcontainer/scripts/post-create.sh ${containerWorkspaceFolder}", | |
"postStartCommand": ".devcontainer/scripts/post-start.sh ${containerWorkspaceFolder}", | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"charliermarsh.ruff", | |
"curlconverter.curlconverter", | |
"esbenp.prettier-vscode", | |
"github.vscode-github-actions", | |
"humao.rest-client", | |
"kiliantyler.kubernetes-yaml-formatter-x", | |
"matangover.mypy", | |
"ms-python.python", | |
"ms-toolsai.jupyter", | |
"redhat.vscode-yaml", | |
"shd101wyy.markdown-preview-enhanced", | |
"tamasfe.even-better-toml" | |
], | |
"settings": { | |
"python.defaultInterpreterPath": "${containerEnv:VIRTUAL_ENV}/bin/python" | |
} | |
} | |
} | |
} | |