Skip to content

Commit

Permalink
Merge pull request #1264 from procrastinate-org/devcontainer-setup
Browse files Browse the repository at this point in the history
Add devcontainer setup
  • Loading branch information
medihack authored Jan 4, 2025
2 parents 8941c98 + 5f9747e commit 1d5277a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM mcr.microsoft.com/devcontainers/python:3.12

USER root

RUN sudo apt-get update \
&& apt-get install -y --no-install-recommends \
bash-completion \
postgresql-common \
&& /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y \
&& apt-get install -y --no-install-recommends \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*

USER vscode

RUN pipx install poetry \
&& poetry completions bash >> ~/.bash_completion
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": false
}
},
"postStartCommand": "/bin/bash -c 'source ./dev-env'"
}

0 comments on commit 1d5277a

Please sign in to comment.