Migrate to K8S stack and fixes before big refactoring
This commit is contained in:
27
README.md
27
README.md
@@ -2,8 +2,27 @@
|
||||
|
||||
Authentication & Authorization service
|
||||
|
||||
Budowanie obrazu:
|
||||
$ sh deploy/image-build.sh [docker_tag]
|
||||
Prepare local dev environment
|
||||
|
||||
Opublikowanie obrazu:
|
||||
$ sh deploy/image-push.sh [docker_tag]
|
||||
1. Add following entry to the /etc/hosts file
|
||||
```127.0.0.1 egommerce.local```
|
||||
2. Copy or link .env.local to the .env file
|
||||
3. Link the cert and key files from stack (./deploy/certs/identity-svc/) to the local ./deploy/certs dir:
|
||||
```ln -s PATH_TO_THE_STACK_DIR/deploy/certs/identity-svc/identity-svc.crt deploy/certs/identity-svc.crt```
|
||||
```ln -s PATH_TO_THE_STACK_DIR/deploy/certs/identity-svc/identity-svc.key deploy/certs/identity-svc.key```
|
||||
4. Build server app binary:
|
||||
```make build-local```
|
||||
5. Run server app:
|
||||
```make run-local```
|
||||
|
||||
Build prod image:
|
||||
$ make build-image-prod
|
||||
|
||||
Push prod image:
|
||||
$ make push-image-prod
|
||||
|
||||
Build dev image:
|
||||
$ make build-image-dev
|
||||
|
||||
Push dev image:
|
||||
$ make push-image-dev
|
||||
|
||||
Reference in New Issue
Block a user