zitadel/build
2020-11-18 14:02:32 +01:00
..
console chore: change build process to use local and server the same (#955) 2020-11-17 09:33:07 +01:00
login feat: port reduction (#323) 2020-07-08 13:56:37 +02:00
notification feat: Notification translation (#192) 2020-06-09 15:11:42 +02:00
zitadel chore: change build process to use local and server the same (#955) 2020-11-17 09:33:07 +01:00
docker-compose-debug.yml fix: config path (#978) 2020-11-17 20:55:41 +01:00
docker-compose-dev.yml fix: config path (#978) 2020-11-17 20:55:41 +01:00
dockerfile fix: config path (#978) 2020-11-17 20:55:41 +01:00
README.md chore: correct docker compose path (#980) 2020-11-18 14:02:32 +01:00

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

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/

DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --target go-copy -o pkg

Run

Run Angular

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build angular

Run Go

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build  go

Fullstack including database

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build

Debug

Debug Go

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!

DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --build-arg ENV=prod