-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (25 loc) · 816 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SERVER_IMAGE_TAG=logann131/evm-decompiler-rest:0.1.0
### DOCKER ###
containers_remove:
docker remove -f $$(docker ps -aq)
images_remove:
docker rmi -f $$(docker images -aq)
remove_full:
docker rm -f $$(docker ps -aq) && docker rmi $$(docker images -q)
build-decompiler:
docker build -t $(SERVER_IMAGE_TAG) .
run-decompiler:
docker run -p 7639:7639 $(SERVER_IMAGE_TAG)
start-decompiler: build-decompiler run-decompiler
full-start-decompiler: remove_full build-decompiler run-decompiler
push-decompiler: build-decompiler
docker push $(SERVER_IMAGE_TAG)
remote-start:
docker pull $(SERVER_IMAGE_TAG)
docker run -d -p 7639:7639 $(SERVER_IMAGE_TAG)
### K8S ###
deploy-k8s:
kubectl create -f ./k8s/deployment.yaml
service-k8s:
kubectl create -f ./k8s/service.yaml
k8s-start: deploy-k8s service-k8s