Florian Forster c45624d6b8
chore(pipeline): change caching keys (#1651)
* Update zitadel.yml

* use different files for hashing the keys

* use correct path for docker and hash the dockerfile

* use codecov within steps

* proper indenting

* rename steps

* fix duplicate name

* move dockerignore

* rename things

* codecov as pre step before the build

* ignore cache path

* debug

* Update .dockerignore

* debug

* debug

* debug

* debug

* debug

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2021-04-23 09:40:13 +02:00
..
2021-03-09 10:30:11 +01:00
2021-02-08 16:48:41 +01:00
2020-07-08 13:56:37 +02:00
2021-04-15 18:21:46 +02:00
2021-03-09 10:30:11 +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 .

Go

With this command you can generate the stub for golang into the zitadel dir

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

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