-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
38 lines (30 loc) · 886 Bytes
/
makefile
File metadata and controls
38 lines (30 loc) · 886 Bytes
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
IMAGE_NAME=kubev
IMAGE_TAG=0.0.0
.PHONY: clear
clear:
docker rmi $(IMAGE_NAME):$(IMAGE_TAG)
.PHONY: lint
lint:
hadolint ./container-image/dockerfile
.PHONY: build
build: lint
docker build -t $(IMAGE_NAME):$(IMAGE_TAG) ./container-image/
.PHONY: run
run: build
docker run -it -d \
--restart=always \
-p 8080:8080 \
--hostname jumphost \
-v $(PWD):/training \
$(IMAGE_NAME):$(IMAGE_TAG)
# TODO compose? healthchecks?
# .PHONY: ssh-controlplane-node
# ssh-controlplane-node:
# ssh -F /training/.secrets/ssh-config controlplane-node
# .PHONY: ssh-worker-node
# ssh-worker-node:
# ssh -F /training/.secrets/ssh-config worker-node
# .PHONY: restart
# restart:
# ssh -F /training/.secrets/ssh-config controlplane-node 'bash -s' < /training/99_teardown/teardown.sh
# ssh -F /training/.secrets/ssh-config worker-node 'bash -s' < /training/99_teardown/teardown.sh