Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
devcontainer added
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmackaij committed Feb 12, 2024
1 parent ed14f88 commit a5fe1ea
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.12-slim-bookworm

RUN pip install --upgrade pip

# poetry install into the default Python interpreter since we're in a container
RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry config virtualenvs.in-project false

# Copy the pyproject.toml and poetry.lock file to be able to install dependencies using poetry
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock

EXPOSE 8888
ENTRYPOINT /bin/sh
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// 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": "Local Dockerfile",
"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",
"args": {
}
},
"postCreateCommand": "poetry install",
// Configure tool-specific properties.
"customizations": {
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"robotcode.robot.variables": {
"ROOT": "/workspaces/robotframework-openapidriver"
}
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"d-biehl.robotcode",
"ms-azuretools.vscode-docker",
"Gruntfuggly.todo-tree",
"shardulm94.trailing-spaces"
]
}
}
}

0 comments on commit a5fe1ea

Please sign in to comment.