Update dev container

This commit is contained in:
Matt Cengia 2024-03-14 10:20:19 +11:00
parent f869b32e08
commit 6ae0d71a58
Signed by: mattcen
GPG Key ID: F22DB9DE406C9233
2 changed files with 19 additions and 10 deletions

View File

@ -34,9 +34,9 @@
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {
"version": "latest"
},
"ghcr.io/devcontainers-contrib/features/ruff:1": {
"version": "latest"
},
//"ghcr.io/devcontainers-contrib/features/ruff:1": {
// "version": "latest"
//},
//"ghcr.io/devcontainers-contrib/features/tailscale:1": {},
//"ghcr.io/devcontainers-contrib/features/tmux-apt-get:1": {},
//"ghcr.io/devcontainers-contrib/features/vscode-cli:1": {
@ -45,7 +45,7 @@
//"ghcr.io/devcontainers-contrib/features/vscode-server:1": {
// "version": "latest"
//},
"ghcr.io/devcontainers-contrib/features/wget-apt-get:1": {},
//"ghcr.io/devcontainers-contrib/features/wget-apt-get:1": {},
//"ghcr.io/devcontainers-contrib/features/wireguard-apt-get:1": {},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
"jqVersion": "latest",
@ -59,12 +59,12 @@
//},
//"ghcr.io/dhoeric/features/hadolint:1": {},
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
"ghcr.io/guiyomh/features/vim:0": {},
//"ghcr.io/guiyomh/features/vim:0": {},
//"ghcr.io/lukewiwa/features/shellcheck:0": {
// "version": "stable"
//},
//"ghcr.io/jsburckhardt/devcontainer-features/gitleaks:1": {},
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {},
//"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {},
//"ghcr.io/frntn/devcontainers-features/gitleaks:1": {
// "version": "latest"
//},
@ -84,7 +84,7 @@
"forwardPorts": [8000],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip3 install --user -r django/requirements.txt",
"postCreateCommand": "./.devcontainer/post-create-command.sh",
// Configure tool-specific properties.
"customizations": {
@ -94,11 +94,11 @@
"monosans.djlint",
"redhat.vscode-yaml",
"ms-python.python",
"ms-python.mypy-type-checker",
//"ms-python.mypy-type-checker",
"elagil.pre-commit-helper",
"alexcvzz.vscode-sqlite",
//"alexcvzz.vscode-sqlite",
"eamodio.gitlens",
"Tailscale.vscode-tailscale",
//"Tailscale.vscode-tailscale",
"tamasfe.even-better-toml"
]
}

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -eEu -o pipefail
pip3 install --user -r django/requirements.txt;
git submodule init;
git submodule update;
! [ -e .env ] &&
sed '/^\(XERO_API_CLIENT_ID\|SCOUTSVIC_API_KEY\)/s/^/#/;/[=#]DEBUG/s/^#//' .env.example > .env;
./django/manage.py migrate