verzia 0.1 s image z nexus
This commit is contained in:
@@ -4,9 +4,7 @@ FROM python:${PYTHON_VERSION}-slim
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||
VIRTUAL_ENV=/workspace/.venv \
|
||||
PATH="/workspace/.venv/bin:${PATH}"
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||
|
||||
# Základ + Docker repo + docker-ce-cli + compose plugin + git
|
||||
RUN set -eux; \
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"name": "Python Dev",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
"context": ".",
|
||||
"args": {
|
||||
"PYTHON_VERSION": "3.13"
|
||||
}
|
||||
},
|
||||
"image": "docker.masara.eu/python:3.13-0.1-devcontainer",
|
||||
// "build": {
|
||||
// "dockerfile": "Dockerfile",
|
||||
// "context": ".",
|
||||
// "args": {
|
||||
// "PYTHON_VERSION": "3.13"
|
||||
// }
|
||||
// },
|
||||
"containerEnv": {
|
||||
"PIP_INDEX_URL": "https://dv.masara.eu/repository/pypi-group/simple"
|
||||
// alebo "/simple", ak to Nexus vyžaduje
|
||||
@@ -37,7 +38,13 @@
|
||||
],
|
||||
"editor.formatOnSave": true,
|
||||
"python.defaultInterpreterPath": "/workspace/.venv/bin/python",
|
||||
"remote.restoreForwardedPorts": false
|
||||
"python.terminal.activateEnvironment": true,
|
||||
// nechceme obnovovať staré porty z predchádzajúcich session
|
||||
"remote.restoreForwardedPorts": false,
|
||||
// auto-forward portov len na základe outputu, nie procesov
|
||||
"remote.autoForwardPortsSource": "output",
|
||||
// vypni auto-attach JS debug (často generuje ghost porty)
|
||||
"debug.javascript.autoAttachFilter": "disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -48,5 +55,18 @@
|
||||
"forwardPorts": [
|
||||
// 8000,
|
||||
// 8080
|
||||
]
|
||||
],
|
||||
"portsAttributes": {
|
||||
// "8000": {
|
||||
// "label": "App",
|
||||
// "onAutoForward": "openBrowser"
|
||||
// },
|
||||
// "8080": {
|
||||
// "label": "Debug",
|
||||
// "onAutoForward": "silent"
|
||||
// },
|
||||
"*": {
|
||||
"onAutoForward": "ignore"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,3 +27,6 @@ if [ -f "/workspace/requirements.txt" ]; then
|
||||
else
|
||||
echo "requirements.txt nenájdený – preskakujem inštaláciu závislostí."
|
||||
fi
|
||||
|
||||
echo "Nastavujem Git credential helper..."
|
||||
git config --global credential.helper manager-core
|
||||
|
||||
Reference in New Issue
Block a user