-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 782 Bytes
/
Makefile
File metadata and controls
36 lines (26 loc) · 782 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
TAG=latest
PROJECT=neo-cli
USER=edmhs
IMAGE=neo-cli
build:
docker build -t $(USER)/$(IMAGE):$(TAG) -f ./Dockerfile .
rebuild:
docker build -t $(USER)/$(IMAGE):$(TAG) --no-cache -f ./Dockerfile .
# used for pushing image to registry
push:
docker push $(USER)/$(IMAGE):$(TAG)
create-network:
docker network create neo
run:
docker-compose -f ./docker-compose.yml --project-name $(PROJECT) up -d
restart:
docker-compose -f ./docker-compose.yml --project-name $(PROJECT) restart
down:
docker-compose -f ./docker-compose.yml --project-name $(PROJECT) down
exec:
docker exec -it $(IMAGE) bash
logs:
docker logs $(IMAGE) -f
# attach client node screen session, to detach from screen and keep it running (CTRL+A then CTRL+D)
cli:
docker exec -it $(IMAGE) screen -r node