Skip to content

Commit

Permalink
Add auto-quick-setup devcontainer setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Jun 20, 2024
1 parent 6cc2710 commit c7c8dd4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .devcontainer/auto-quick-setup/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

{
"name": "local-intelligence-hub-with-data",
"secrets": {"MAPIT_API_KEY": {
"description": "API key for the MapIt API - optional for small numbers of queries"
}},
"dockerComposeFile": ["../../docker-compose.yml"],
"service": "web",
"workspaceFolder": "/app",
"overrideCommand": true,
"onCreateCommand": "script/setup-and-import",
"customizations": {"vscode":{"extensions": [
"ms-vscode.test-adapter-converter",
"bungcip.better-toml",
"ms-python.python",
"ms-python.vscode-pylance",
"batisteo.vscode-django",
"ms-azuretools.vscode-docker",
"github.vscode-pull-request-github",
"mhutchie.git-graph"
]}}
}
12 changes: 12 additions & 0 deletions script/setup-and-import
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# abort on any errors
set -e

# check that we are in the expected directory
cd `dirname $0`/..

# Run the update script
./script/bootstrap
./script/manage migrate
./script/import-all-data

0 comments on commit c7c8dd4

Please sign in to comment.