-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
40 lines (30 loc) · 1.02 KB
/
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
39
40
SHELL := /bin/bash
# ==============================================================================
# Building containers
DOCKER_IMAGE_NAME=signernode
DOCKER_FULL_IMAGE_NAME=ghcr.io/jffp113/${DOCKER_IMAGE_NAME}:latest
build-docker:
docker build -t $(DOCKER_FULL_IMAGE_NAME) -f ./Docker/Dockerfile .
push-docker: build-docker
docker push $(DOCKER_FULL_IMAGE_NAME)
# ==============================================================================
# Building go files
build:
go build ./app/bootstrap/bootstrap.go
go build ./app/signernode/signernode.go
clean:
rm bootstrap
rm signernode
run-permissioned:
docker-compose -f Docker/docker-compose.yaml up
stop-permissioned:
docker-compose -f Docker/docker-compose.yaml down
run-permissionless:
docker-compose -f Docker/docker-compose-permissionless.yaml up -d
*stop-permissionless:
docker-compose -f Docker/docker-compose-permissionless.yaml down
# ==============================================================================
# Modules support
tidy:
go mod tidy
go mod vendor