mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-04 22:13:36 +00:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
## Download The CockroachDB binary
|
|
|
|
Download a `cockroach` binary as described [here](https://www.cockroachlabs.com/docs/v21.2/install-cockroachdb).
|
|
ZITADEL is tested against CockroachDB v21.2.8.
|
|
|
|
## Run CockroachDB and ZITADEL
|
|
|
|
Run a CockroachDB instance
|
|
|
|
```bash
|
|
cockroach start-single-node --insecure --background --http-addr :9090
|
|
```
|
|
|
|
Configure your environment and generate a master encryption key
|
|
|
|
```bash
|
|
export ZITADEL_EXTERNALSECURE=false
|
|
export ZITADEL_EXTERNALDOMAIN=localhost
|
|
export ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
|
|
export MY_ARCHITECTURE="arm64 or amd64 depeding on your mac"
|
|
```
|
|
|
|
# Download and Install ZITADEL
|
|
|
|
Either use `Homebrew` ...
|
|
|
|
```bash
|
|
brew install zitadel/tap/zitadel
|
|
```
|
|
|
|
... or download the binary from GitHub
|
|
|
|
```bash
|
|
curl -s https://api.github.com/repos/zitadel/zitadel/releases/tags/v2.0.0-v2-alpha.6 | grep "browser_download_url.*zitadel_.*_darwin_${MY_ARCHITECTURE}" | cut -d '"' -f 4 | sudo wget -i - -O /usr/local/bin/zitadel && sudo chmod +x /usr/local/bin/zitadel && sudo chown $(id -u):$(id -g) /usr/local/bin/zitadel
|
|
```
|
|
|
|
Run ZITADEL
|
|
|
|
```bash
|
|
zitadel admin start-from-init --masterkey "MasterkeyNeedsToHave32Characters"
|
|
```
|