Skip to content

Commit

Permalink
prebuild dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Sep 17, 2024
1 parent 40a5136 commit 2095fec
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "wq Dev",
"image": "ghcr.io/wq/base:main",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": "true",
"username": "vscode",
"userUid": "1000",
"userGid": "1000",
"upgradePackages": "true"
},
"ghcr.io/devcontainers/features/python:1": "none", // Included in base image
"ghcr.io/devcontainers/features/node:1": "none", // Included in base image
"ghcr.io/devcontainers/features/git:1": {
"version": "os-provided",
"ppa": "false"
}
}
}
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build and Publish Dev Container
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/wq/dev
cacheFrom: ghcr.io/wq/dev
push: always
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.11-bookworm

# Install base dependencies
RUN apt-get update && apt-get install -y libgdal32 libsqlite3-mod-spatialite
RUN python -m pip install wq gunicorn whitenoise
RUN python -m pip install 'wq==2.0.0' gunicorn whitenoise

# Install SSH server (for e.g. Azure)
RUN apt-get install -y openssh-server && echo "root:Docker!" | chpasswd
Expand Down

0 comments on commit 2095fec

Please sign in to comment.