-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
55 lines (42 loc) · 1.59 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
SHELL = /bin/bash -o pipefail
.DEFAULT_GOAL := micro-server
database-up:
docker-compose up -d database
docker-compose logs -f database
datastore-up:
docker-compose up -d datastore
micro-conf: export MIP=$(shell docker container inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' datastore)
micro-conf: export PIP=$(shell docker container inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' database)
micro-conf:
micro config set db.host 'mongodb://${MIP}:27017'
micro config get db
micro config set pg.host '${PIP}'
micro config set pg.dbName 'postgres'
micro config set pg.user 'admin'
micro config set pg.password 'password'
micro config get pg
micro config set auth.disable 'false'
micro config get auth.disable
micro-conf-auth-disable:
micro config set auth.disable 'true'
micro config get auth.disable
micro-server: datastore-up
@micro server
micro-login: micro-server
@micro login
protoc-gen-go:
@cd && GO111MODULE=on go get github.com/golang/protobuf/[email protected]
@echo "OK"
protoc-gen-micro:
@cd && GO111MODULE=on go get -v github.com/micro/micro/v3/cmd/protoc-gen-micro@master
@echo "OK"
# =========================================================================== #
# ================= SHIPPY UI =============================================== #
# =========================================================================== #
install-nvm:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
install-npx:
nvm install --lts
shippy-ui:
npx create-react-app shippy-ui --use-npm
git add shippy-ui