-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (34 loc) · 737 Bytes
/
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
GO_BUILD_ENV := CGO_ENABLED=0 GOOS=linux GOARCH=amd64
dev:
go run main.go
test:
go test -cover ./...
build:
go build main.go
build-service:
docker pull mongo
docker run -d --name service-sucellus \
-p 27017:27017 \
-e PORT=4000 \
--restart=always \
.
docker stop mongo-sucellus
start-service:
docker start service-sucellus
stop-service:
docker stop service-sucellus
build-mongo:
docker pull mongo
docker run -d --name mongo-sucellus \
-p 27017:27017 \
-e MONGO_INITDB_ROOT_USERNAME=root \
-e MONGO_INITDB_ROOT_PASSWORD=root \
-e PUID=1000 \
-e PGID=1000 \
--restart=always \
mongo
docker stop mongo-sucellus
start-mongo:
docker start mongo-sucellus
stop-mongo:
docker stop mongo-sucellus