Skip to content

Commit

Permalink
docs: update deployment README (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-ziv authored Mar 29, 2022
1 parent d3a9a24 commit 774ea54
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 35 deletions.
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
75 changes: 47 additions & 28 deletions deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

## First time installation

1. Connect to production kubernetes cluster
1. Authenticate

```bash
gcloud container clusters get-credentials web-devs --region us-central1 --project starkware-dev
gcloud auth login
```

2. Switch to starkgate namespace
2. Connect to production kubernetes cluster

```bash
kubens starkgate
gcloud container clusters get-credentials web-devs --region us-central1 --project starkware-dev
```

3. Deploy application using helm CLI.
Expand All @@ -20,13 +20,11 @@ kubens starkgate

```bash
helm install starkgate starkware/webapp-general-helm \
--values deployment/production.yaml \
--set-file configMap.backend.envs=packages/backend/.env.production \
--set-file configMap.frontend.envs=packages/frontend/.env.production \
--namespace starkgate \
--values deployment/production.yml \
--set-file configMap.frontend.envs=.env.production \
--namespace starkgate-mainnet \
--create-namespace \
--set frontend.image.tag=VERSION \
--set backend.image.tag=VERSION
--set frontend.image.tag=VERSION
```

> **Note:** Change image VERSION to the new git tag.
Expand All @@ -35,13 +33,22 @@ helm install starkgate starkware/webapp-general-helm \

```bash
helm install starkgate starkware/webapp-general-helm \
--values deployment/testing.yaml \
--set-file configMap.backend.envs=packages/backend/.env.testing \
--set-file configMap.frontend.envs=packages/frontend/.env.testing \
--namespace starkgate-testing \
--values deployment/testing.yml \
--set-file configMap.frontend.envs=.env.testing \
--namespace starkgate-goerli \
--create-namespace \
--set frontend.image.tag=VERSION \
--set backend.image.tag=VERSION
--set frontend.image.tag=VERSION
```

#### Devnet

```bash
helm install starkgate starkware/webapp-general-helm \
--values deployment/development.yml \
--set-file configMap.frontend.envs=.env.testing \
--namespace starkgate-devnet \
--create-namespace \
--set frontend.image.tag=VERSION
```

> **Note:** Change image VERSION to the new git tag.
Expand All @@ -52,28 +59,40 @@ helm install starkgate starkware/webapp-general-helm \
Upgrade starknet faucet helm chart.

1. Authenticate

```bash
gcloud auth login
```

### Production

```bash
helm upgrade starkgate starkware/webapp-general-helm \
--values deployment/production.yaml \
--set-file configMap.backend.envs=packages/backend/.env.production \
--set-file configMap.frontend.envs=packages/frontend/.env.production \
--namespace starkgate \
--set frontend.image.tag=VERSION \
--set backend.image.tag=VERSION
--values deployment/production.yml \
--set-file configMap.frontend.envs=.env.production \
--namespace starkgate-mainnet \
--set frontend.image.tag=VERSION
```

### Testing

```bash
helm upgrade starkgate starkware/webapp-general-helm \
--values deployment/testing.yaml \
--set-file configMap.backend.envs=packages/backend/.env.testing \
--set-file configMap.frontend.envs=packages/frontend/.env.testing \
--namespace starkgate-testing \
--set frontend.image.tag=VERSION \
--set backend.image.tag=VERSION
--values deployment/testing.yml \
--set-file configMap.frontend.envs=.env.testing \
--namespace starkgate-goerli \
--set frontend.image.tag=VERSION
```

### Devnet

```bash
helm upgrade starkgate starkware/webapp-general-helm \
--values deployment/development.yml \
--set-file configMap.frontend.envs=.env.testing \
--namespace starkgate-devnet \
--set frontend.image.tag=VERSION
```

## Rollback
Expand Down
14 changes: 7 additions & 7 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
@import './styles/fonts.module';

@font-face {
font-family: 'Inter';
font-family: Inter;
font-weight: 100;
font-style: normal;
src: url('assets/fonts/Inter/Inter-Thin.ttf') format('truetype');
}

@font-face {
font-family: 'Inter';
font-family: Inter;
font-weight: 200;
font-style: normal;
src: url('assets/fonts/Inter/Inter-ExtraLight.ttf') format('truetype');
}

@font-face {
font-family: 'Inter';
font-family: Inter;
font-weight: 300;
font-style: normal;
src: url('assets/fonts/Inter/Inter-Light.ttf') format('truetype');
Expand All @@ -31,28 +31,28 @@
}

@font-face {
font-family: 'Inter';
font-family: Inter;
font-weight: 500;
font-style: normal;
src: url('assets/fonts/Inter/Inter-Medium.ttf') format('truetype');
}

@font-face {
font-family: 'Inter';
font-family: Inter;
font-weight: 600;
font-style: normal;
src: url('assets/fonts/Inter/Inter-SemiBold.ttf') format('truetype');
}

@font-face {
font-family: 'Inter';
font-family: Inter;
font-weight: 700;
font-style: normal;
src: url('assets/fonts/Inter/Inter-Bold.ttf') format('truetype');
}

@font-face {
font-family: 'Inter';
font-family: Inter;
font-weight: 800;
font-style: normal;
src: url('assets/fonts/Inter/Inter-ExtraBold.ttf') format('truetype');
Expand Down

0 comments on commit 774ea54

Please sign in to comment.