forked from qtumproject/janus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 1.73 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
.PHONY: install
install:
go install github.com/qtumproject/janus/cli/janus
.PHONY: release
release: darwin linux
.PHONY: darwin
darwin:
GOOS=darwin GOARCH=amd64 go build -o ./build/janus-darwin-amd64 github.com/qtumproject/janus/cli/janus
.PHONY: linux
linux:
GOOS=linux GOARCH=amd64 go build -o ./build/janus-linux-amd64 github.com/qtumproject/janus/cli/janus
.PHONY: quick-start
quick-start:
cd docker && ./spin_up.sh && cd ..
.PHONY: docker-dev
docker-dev:
docker build --no-cache -f ./docker/standalone/Dockerfile -t qtum/janus:dev .
.PHONY: local-dev
local-dev:
go install github.com/qtumproject/janus/cli/janus
docker run --name qtum_testchain -d -p 3889:3889 qtum/qtum qtumd -regtest -rpcbind=0.0.0.0:3889 -rpcallowip=0.0.0.0/0 -logevents=1 -rpcuser=qtum -rpcpassword=testpasswd -deprecatedrpc=accounts -printtoconsole | true
sleep 3
docker cp ${GOPATH}/src/github.com/qtumproject/janus/docker/fill_user_account.sh qtum_testchain:.
docker exec qtum_testchain /bin/sh -c ./fill_user_account.sh
QTUM_RPC=http://qtum:testpasswd@localhost:3889 QTUM_NETWORK=regtest janus --accounts ./docker/standalone/myaccounts.txt --dev
.PHONY: local-dev-logs
local-dev-logs:
go install github.com/qtumproject/janus/cli/janus
docker run --name qtum_testchain -d -p 3889:3889 qtum/qtum qtumd -regtest -rpcbind=0.0.0.0:3889 -rpcallowip=0.0.0.0/0 -logevents=1 -rpcuser=qtum -rpcpassword=testpasswd -deprecatedrpc=accounts -printtoconsole | true
sleep 3
docker cp ${GOPATH}/src/github.com/qtumproject/janus/docker/fill_user_account.sh qtum_testchain:.
docker exec qtum_testchain /bin/sh -c ./fill_user_account.sh
QTUM_RPC=http://qtum:testpasswd@localhost:3889 QTUM_NETWORK=regtest janus --accounts ./docker/standalone/myaccounts.txt --dev > janus_dev_logs.txt