From 5534b3983d9b26f01ff887e487d068121b8ea3ba Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Thu, 20 Jul 2023 06:59:32 +0530 Subject: [PATCH] Moved back from devcontainer to normal as ubuntu now has python 3.11 --- .devcontainer/Dockerfile | 16 ---------------- .devcontainer/devcontainer.json | 27 --------------------------- .vscode/settings.json | 2 +- 3 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 .devcontainer/Dockerfile delete mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 95f93b0..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -# For more information, please refer to https://aka.ms/vscode-docker-python -FROM mcr.microsoft.com/devcontainers/python:0-3.11 - -RUN apt-get update && \ - apt-get install -y locales && \ - sed --in-place --expression='s/# en_IN UTF-8/en_IN UTF-8/' /etc/locale.gen && \ - dpkg-reconfigure --frontend=noninteractive locales - -ENV LANG en_IN -ENV LC_ALL en_IN - -# Install Poetry -RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python - && \ - cd /usr/local/bin && \ - ln -s /opt/poetry/bin/poetry && \ - poetry config virtualenvs.create false diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 43b4045..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,27 +0,0 @@ -// 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": "Python 3", - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "build": { "dockerfile": "Dockerfile" }, - "features": { - "ghcr.io/devcontainers/features/node:1": {} - }, - - // 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": [5432], - - "runArgs": ["--network=host"], - - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "poetry config virtualenvs.create false && echo \"$PWD\" && cd barker && echo \"$PWD\" && poetry install --no-root", - - // Configure tool-specific properties. - // "customizations": {}, - - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - "remoteUser": "root" -} diff --git a/.vscode/settings.json b/.vscode/settings.json index 976caed..923be5f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "python.defaultInterpreterPath": "/home/tanshu/.cache/pypoetry/virtualenvs/barker-3ndhMgBR-py3.10/bin/python", + "python.defaultInterpreterPath": "/home/tanshu/.cache/pypoetry/virtualenvs/barker-3ndhMgBR-py3.11/bin/python", "files.exclude": { "**/__pycache__": true, "**/.mypy_cache": true,