mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-27 17:52:14 +00:00
* initital ide * init * it is alive * go test is running * wip with buildkit * it definitly alive * all done, now the github actions * pretty * before i delete the generated proto stub * delete generated code * mount of grpc does not yet work * save before * level of insanity 1000% * huhur * gh action new dockerfile * fix * fix * fix * fix * amd64 only * try caching * try with reg * test with artifact upload * trial * add comments * publish branchname * correct vars * correct id * mode max for cache * remove unused code * cleanup * test action which uploads coverage * use * proper path * debug file location * path * test if ci still works * correct docker file name
61 lines
1.3 KiB
Markdown
61 lines
1.3 KiB
Markdown
|
|
# Development
|
|
|
|
## Prerequisite
|
|
|
|
- Buildkit compatible docker installation
|
|
|
|
## Generate Proto Clients
|
|
|
|
### Angular
|
|
|
|
This command generates the grpc stub for angular into the folder console/src/app/proto/generated for local development
|
|
|
|
```Bash
|
|
DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --target npm-copy -o console/src/app/proto/generated
|
|
```
|
|
|
|
### Go
|
|
|
|
With this command you can generate the stub for golang into the correct dir pkg/
|
|
|
|
```Bash
|
|
DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --target go-copy -o pkg
|
|
```
|
|
|
|
## Run
|
|
|
|
### Run Angular
|
|
|
|
```Bash
|
|
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build angular
|
|
```
|
|
|
|
### Run Go
|
|
|
|
```Bash
|
|
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build go
|
|
```
|
|
|
|
### Fullstack including database
|
|
|
|
```Bash
|
|
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose.yml up --build
|
|
```
|
|
|
|
## Debug
|
|
|
|
### Debug Go
|
|
|
|
```Bash
|
|
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-debug.yml up --build go
|
|
```
|
|
|
|
## Production Build
|
|
|
|
This can also be run locally!
|
|
|
|
```Bash
|
|
DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --build-arg ENV=prod
|
|
```
|