Skip to content

Commit 73e893e

Browse files
authored
update dev container environment (#38)
1 parent bbfae14 commit 73e893e

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
ARG VARIANT="3.10-bullseye"
22
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} as devcontainer
33

4+
ENV POETRY_VIRTUALENVS_IN_PROJECT 1
5+
46
# Poetry
57
ARG POETRY_VERSION="1.7.1"
68
RUN if [ "${POETRY_VERSION}" != "none" ]; then su vscode -c "umask 0002 && pip3 install poetry==${POETRY_VERSION}"; fi
79

8-
WORKDIR /openeo-fastapi
10+
RUN apt update -qy && \
11+
apt install -qy --no-install-recommends \
12+
postgresql-13 \
13+
git
14+
15+
WORKDIR /openeo-fastapi

.devcontainer/devcontainer.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,13 @@
77

88
"workspaceFolder": "/openeo-fastapi",
99

10-
"settings": {
11-
"python.defaultInterpreterPath": "/openeo-fastapi/.venv",
12-
"python.venvPath": "/openeo-fastapi/.venv",
13-
"python.pythonPath": "/openeo-fastapi/.venv/bin/python",
14-
},
15-
1610
"extensions": [
1711
"ms-python.python",
1812
"ms-toolsai.jupyter",
19-
"ms-python.vscode-pylance",
2013
"eamodio.gitlens",
2114
"GitLab.gitlab-workflow",
22-
"ms-azuretools.vscode-docker"
15+
"ms-azuretools.vscode-docker",
16+
"ms-python.vscode-pylance"
2317
],
2418

2519
"remoteEnv": {

.devcontainer/docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ version: "3.8"
33
services:
44
workspace:
55
container_name: openeo-fastapi-devcontainer
6-
env_file:
7-
.env
86

97
build:
108
context: ../
119
dockerfile: ".devcontainer/Dockerfile"
1210
target: devcontainer
1311
volumes:
1412
- ../:/openeo-fastapi
15-
- /eodc/:/eodc/
1613
tty: true

0 commit comments

Comments
 (0)