Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
remove minikube
Browse files Browse the repository at this point in the history
  • Loading branch information
furkhat committed Jan 10, 2020
1 parent 38c929e commit 117eb18
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 280 deletions.
25 changes: 1 addition & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,24 +201,9 @@ deposit: confirm_action
# Devops: main

# (Re)deploy contracts and database
ifeq (dev,$(ZKSYNC_ENV))
redeploy: confirm_action stop deploy-contracts db-insert-contract bin/minikube-copy-keys-to-host
else
redeploy: confirm_action stop deploy-contracts db-insert-contract
endif

ifeq (dev,$(ZKSYNC_ENV))
init-deploy: confirm_action deploy-contracts db-insert-contract bin/minikube-copy-keys-to-host
else
init-deploy: confirm_action deploy-contracts db-insert-contract
endif

start-local:
@kubectl apply -f ./etc/kube/minikube/server.yaml
@kubectl apply -f ./etc/kube/minikube/prover.yaml
./bin/kube-update-server-vars
@kubectl apply -f ./etc/kube/minikube/postgres.yaml
@kubectl apply -f ./etc/kube/minikube/geth.yaml

dockerhub-push: image-nginx image-rust
docker push "${NGINX_DOCKER_IMAGE}"
Expand All @@ -244,15 +229,7 @@ start: apply-kubeconfig start-prover start-server start-nginx
endif

ifeq (dev,$(ZKSYNC_ENV))
stop: confirm_action
@echo TODO: fix minikube local dev
# @kubectl delete deployments --selector=app=dev-server
# @kubectl delete deployments --selector=app=dev-prover
# @kubectl delete deployments --selector=app=dev-nginx
# @kubectl delete svc --selector=app=dev-server
# @kubectl delete svc --selector=app=dev-nginx
# @kubectl delete -f ./etc/kube/minikube/postgres.yaml
# @kubectl delete -f ./etc/kube/minikube/geth.yaml
stop:
else ifeq (ci,$(ZKSYNC_ENV))
stop:
else
Expand Down
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ To completely reset the dev environment:

- Stop services:
```zksync dev-down```
- Remove containers data:
```
ssh minikube
rm -r /data/*
```
- Repeat the setup procedure above

# (Re)deploy db and contraсts:
Expand Down Expand Up @@ -95,20 +90,6 @@ Client UI will be available at http://localhost:8080.
Make sure you have environment variables set right, you can check it by running:
```zksync env```. You should see `* dev` in output.

## Start server and prover in minikube (this setup is closest to prod):

- Prerequisite: ```zksync dev-up; zksync init```

- Start:
```zksync start```

- Watch logs:
Server: ```zksync log-server```
Prover: ```zksync log-prover```

- Stop:
```zksync stop```

## Build and push images to dockerhub:

```zksync dockerhub-push```
Expand Down
1 change: 0 additions & 1 deletion bin/check-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ check_tool() {

echo Checking environment

check_tool minikube
check_tool yarn
check_tool node
node --version | grep "v10.*" > /dev/null || (echo "Node version 10 is supported" && exit 1)
Expand Down
5 changes: 0 additions & 5 deletions bin/minikube-copy-keys-to-host

This file was deleted.

3 changes: 0 additions & 3 deletions bin/minikube-server-api-url

This file was deleted.

3 changes: 0 additions & 3 deletions bin/minikube-ui-url

This file was deleted.

5 changes: 0 additions & 5 deletions docs/setup-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

Install docker.

## Minikube

https://kubernetes.io/docs/tasks/tools/install-minikube

## Node & Yarn

Install Node.
Expand Down Expand Up @@ -98,4 +94,3 @@ cmds=( ${(uf)"$(grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' $ZKSYNC_HOME/Makefile | sed
_describe 'zksync make cmds' cmds
```

1 change: 0 additions & 1 deletion etc/env/dev.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ ETH_NETWORK=localhost
LOGDIR=~/var/log/
LOGFILE=$~/var/log/plasma.log

# For more details see service configuration at <franklink-dir>/etc/kube/minikube/postgres.yaml
DATABASE_URL=postgres://postgres@localhost/plasma
PROVER_DATABASE_URL=postgres://postgres@localhost/plasma

Expand Down
20 changes: 0 additions & 20 deletions etc/kube/minikube/geth.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions etc/kube/minikube/postgres.yaml

This file was deleted.

53 changes: 0 additions & 53 deletions etc/kube/minikube/prover.yaml

This file was deleted.

122 changes: 0 additions & 122 deletions etc/kube/minikube/server.yaml

This file was deleted.

0 comments on commit 117eb18

Please sign in to comment.