diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..a54004b090b84a543a856f1827ba3723e9e76355 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +include: +- project: docker-images/templates + ref: master + file: devcontainer_images.gitlab-ci.yml + +build: + extends: .build_image_job_template + variables: + IMAGE_BASENAME: ${IMAGE_PREFIX}/devcontainer-python + IMAGE_NAME: ${IMAGE_BASENAME}:3.12.7-bookworm,${IMAGE_BASENAME}:3.12-bookworm,${IMAGE_BASENAME}:3-bookworm diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000000000000000000000000000000000000..ed4a0aa21642c7e53f0de3c9b673e112c636cc8a --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "docker build", + "command": "docker", + "args": [ + "build", + "." + ] + } + ] +} diff --git a/devcontainer_example.json b/devcontainer_example.json new file mode 100644 index 0000000000000000000000000000000000000000..c62227752853c7e6d4db7d7f42747556744ccb27 --- /dev/null +++ b/devcontainer_example.json @@ -0,0 +1,19 @@ +{ + "name": "Python", + "workspaceFolder": "/workdir", + "workspaceMount": "source=${localWorkspaceFolder},target=/workdir,type=bind,consistency=delegated", + "remoteUser": "vscode", + "image": "andrijoos/devcontainer-python:3-bookworm", + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-azuretools.vscode-docker" + ] + } + }, + "containerEnv": { + "SHELL": "/bin/bash" + }, + "postCreateCommand": "pip install -e ." +}