-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 990 Bytes
/
Makefile
File metadata and controls
47 lines (33 loc) · 990 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
39
40
41
42
43
44
45
46
47
IMAGE=p10node/arweave-hb:latest
IMAGE_VERSION=p10node/arweave-hb:v0.9-milestone-3-beta-3
SYSTEM_IMAGE=p10node/arweave-hb-system:latest
.PHONY: build-system build start stop logs circle run inside system-clean publish publish-system
build-system:
docker build -f system.Dockerfile -t $(SYSTEM_IMAGE) . --platform linux/amd64
build:
docker build . -t $(IMAGE) -t $(IMAGE_VERSION) --platform linux/amd64
rebuild:
docker rmi $(IMAGE) 2>/dev/null || true
make build
start:
docker run -d -v ./wallet.json:/app/wallet.json --name hb -p 8080:8080 $(IMAGE)
stop:
docker stop hb 2>/dev/null || true
docker rm hb 2>/dev/null || true
logs:
docker logs -f hb
circle:
make stop
make start
make logs
run:
docker run -it -v ./wallet.json:/app/wallet.json --rm -p 8080:8080 $(IMAGE) /bin/bash
inside:
docker exec -it $(IMAGE) /bin/bash
system-clean:
docker system prune -a
publish:
docker push $(IMAGE)
docker push $(IMAGE_VERSION)
publish-system:
docker push $(SYSTEM_IMAGE)