chore: initial version of a devcontainer (#6352)

* chore: initial version of a devcontainer

* test

* add make
This commit is contained in:
Florian Forster 2023-08-15 10:49:05 +02:00 committed by GitHub
parent cc4499ec2d
commit 8953353210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 2 deletions

View File

@ -0,0 +1,24 @@
{
"name": "zitadel",
"dockerComposeFile": "docker-compose.yml",
"service": "devcontainer",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/devcontainers/features/go:1": {
"version": "1.20"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "18"
},
"ghcr.io/guiyomh/features/golangci-lint:0": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/jungaretti/features/make:1": {}
},
"forwardPorts": [
3000,
4200,
8080
],
"onCreateCommand": "npm install -g sass@1.64.1"
}

View File

@ -0,0 +1,22 @@
version: '3.8'
services:
devcontainer:
image: mcr.microsoft.com/devcontainers/base:ubuntu
volumes:
- ../..:/workspaces:cached
- /var/run/docker.sock:/var/run/docker.sock
network_mode: service:db
command: sleep infinity
db:
image: postgres:latest
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
volumes:
postgres-data:

1
.gitignore vendored
View File

@ -73,6 +73,7 @@ migrations/cockroach/migrate_cloud.go
/.artifacts/*
!/.artifacts/zitadel
/zitadel
node_modules/
go.work
go.work.sum

View File

@ -1,3 +1,3 @@
package statik
//go:generate statik -src=../static -dest=.. -ns=notification
//go:generate statik -f -src=../static -dest=.. -ns=notification

View File

@ -1,3 +1,3 @@
package statik
//go:generate statik -src=../static -dest=.. -ns=zitadel
//go:generate statik -f -src=../static -dest=.. -ns=zitadel