forked from glifio/filecoin-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 905 Bytes
/
Makefile
File metadata and controls
49 lines (36 loc) · 905 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
48
49
BRANCH = v0.4.1
.PHONY: build
build:
docker image build --build-arg BRANCH=$(BRANCH) -t openworklabs/lotus:$(BRANCH) .
.PHONY: rebuild
rebuild:
docker image build --no-cache --build-arg BRANCH=$(BRANCH) -t openworklabs/lotus:$(BRANCH) .
.PHONY: push
push:
docker push openworklabs/lotus:$(BRANCH)
tag: tag_lotus
build_lotus:
./build/build_lotus.sh
rebuild_lotus:
./build/build_lotus.sh rebuild
tag_lotus:
./build/tag_lotus.sh
.PHONY: run
run:
docker run --detach \
--publish 1234:1234 \
--name lotus \
--restart always \
--volume $(HOME)/.lotus:/root/.lotus \
openworklabs/lotus:$(BRANCH)
run-bash:
docker container run -p 1235:1235 -p 1234:1234 -it --entrypoint=/bin/bash --name lotus --rm openworklabs/lotus:latest
bash:
docker exec -it lotus /bin/bash
sync-status:
docker exec -it lotus lotus sync status
log:
docker logs lotus -f
rm:
docker stop lotus
docker rm lotus