From 604f35f464130dbc6cebfb853d5a353abfa1dbd3 Mon Sep 17 00:00:00 2001 From: John Freeman Date: Sat, 16 Nov 2024 17:45:19 +0000 Subject: [PATCH] Upgrade to Python 3.10 (#43) The version that comes with Ubuntu 22.04. --- .github/workflows/docker.yml | 6 +++--- README.adoc | 6 +++--- .../.devcontainer/devcontainer.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename {devcontainer-python3.9 => devcontainer-python3.10}/.devcontainer/devcontainer.json (95%) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 87a95b9..ed0fed5 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -139,8 +139,8 @@ jobs: org.opencontainers.image.created=${{ fromJSON(steps.meta_k8s.outputs.json).labels['org.opencontainers.image.created'] }} org.opencontainers.image.revision=${{ fromJSON(steps.meta_k8s.outputs.json).labels['org.opencontainers.image.revision'] }} - - name: Build and push Docker image (devcontainer-python3.9) + - name: Build and push Docker image (devcontainer-python3.10) uses: devcontainers/ci@v0.3 with: - subFolder: devcontainer-python3.9 - imageName: ghcr.io/gantsign/devcontainer-python3.9 + subFolder: devcontainer-python3.10 + imageName: ghcr.io/gantsign/devcontainer-python3.10 diff --git a/README.adoc b/README.adoc index f084fa0..352dbe1 100644 --- a/README.adoc +++ b/README.adoc @@ -369,7 +369,7 @@ FROM ghcr.io/gantsign/devcontainer-k8s Then press `Ctrl-P` and select "Remote-Containers: Open Folder in Container..." from the menu. -== Python 3.9 container +== Python 3.10 container Unlike the other containers this isn't based on the base container. @@ -407,7 +407,7 @@ If you just want to try it out, you can run it standalone: [source,bash] ---- -docker run --rm -ti --user vscode --entrypoint zsh ghcr.io/gantsign/devcontainer-python3.9 +docker run --rm -ti --user vscode --entrypoint zsh ghcr.io/gantsign/devcontainer-python3.10 ---- === Running in VS Code @@ -420,7 +420,7 @@ Create a `.devcontainer/devcontainer.json` file in the root of your project: // For format details, see https://aka.ms/devcontainer.json { "name": "GantSign", - "image": "ghcr.io/gantsign/devcontainer-python3.9", + "image": "ghcr.io/gantsign/devcontainer-python3.10", "settings": { "editor.renderWhitespace": "all", diff --git a/devcontainer-python3.9/.devcontainer/devcontainer.json b/devcontainer-python3.10/.devcontainer/devcontainer.json similarity index 95% rename from devcontainer-python3.9/.devcontainer/devcontainer.json rename to devcontainer-python3.10/.devcontainer/devcontainer.json index c334eed..cdd86e4 100644 --- a/devcontainer-python3.9/.devcontainer/devcontainer.json +++ b/devcontainer-python3.10/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ // 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 { - "image": "mcr.microsoft.com/devcontainers/python:0-3.9", + "image": "mcr.microsoft.com/devcontainers/python:0-3.10", "features": { "ghcr.io/devcontainers/features/common-utils:2": { "installZsh": true,