ci(devcontainer): init

This commit is contained in:
Denis Gukov 2024-10-11 13:27:28 +00:00
parent 07ec238eee
commit 64b1c30e85
4 changed files with 38 additions and 2 deletions

12
.devcontainer/config.json Normal file
View File

@ -0,0 +1,12 @@
{
"bolt": {
"host": "database.boltdb",
"options": {
"sessionConnection": "true"
}
},
"dialect": "bolt",
"cookie_hash": "5WJjXCLpvf3Cn5t+C/IV9F0asZUQLakOhCT+eSdIwP0=",
"cookie_encryption": "6x6mmQWGn6YcsHN1rN0HiQjhYA+7HukcbCxUGHuT2CE="
}

View File

@ -1,2 +1,13 @@
go install github.com/go-task/task/v3/cmd/task@latest
(cd web && npm install)
(cd ./web && npm install)
task build
./bin/semaphore user add \
--admin \
--login user123 \
--name User123 \
--email user123@example.com \
--password 123456 \
--config ./.devcontainer/config.json

1
.gitignore vendored
View File

@ -28,7 +28,6 @@ node_modules/
.dredd/compiled_hooks
.dredd/compiled_hooks.exe
.vscode
__debug_bin*
.task/
/web/.env

14
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Server",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "./cli/main.go",
"args": ["server", "--config", ".devcontainer/config.json"],
"cwd": "${workspaceFolder}"
}
]
}