From 50395792523796a798ba00e8dae6cfd7667d820e Mon Sep 17 00:00:00 2001 From: paul-corbalan Date: Mon, 11 Dec 2023 08:44:53 +0100 Subject: [PATCH 1/3] feat(devcontainer): Use Python Debian Bookworm image --- .devcontainer/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..01d2c4e --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,9 @@ +# Get Python Debian Bookworm image +FROM python:bookworm + +# Install pip requirements +COPY ../requirements.txt /tmp/requirements.txt +RUN pip install -r /tmp/requirements.txt + +# Run bash +CMD ["/bin/bash"] From 73ddcb259d97b958eedd9b914e6573b863da5e70 Mon Sep 17 00:00:00 2001 From: paul-corbalan Date: Mon, 11 Dec 2023 08:47:18 +0100 Subject: [PATCH 2/3] feat(devcontainer): Use HDDL TP devcontainer.json --- .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..9deff2c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile +{ + "name": "Development Container", + "build": { + // Sets the run context to one level up instead of the .devcontainer folder. + "context": "..", + // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. + "dockerfile": "Dockerfile" + }, + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Uncomment the next line to run commands after the container is created. + // "postCreateCommand": "cat /etc/os-release", + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-toolsai.jupyter" + ] + } + } + + // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "devcontainer" +} From f37fc0f9f118ca180a78071e3cdecaf6fee99437 Mon Sep 17 00:00:00 2001 From: paul-corbalan Date: Mon, 11 Dec 2023 09:19:47 +0100 Subject: [PATCH 3/3] feat(devcontainer): Downgrade to Python 3.11 --- .devcontainer/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 01d2c4e..1edcb00 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,5 +1,5 @@ -# Get Python Debian Bookworm image -FROM python:bookworm +# Get Python 3.11 Debian Bookworm image +FROM python:3.11-bookworm # Install pip requirements COPY ../requirements.txt /tmp/requirements.txt