-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
34 lines (23 loc) · 867 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
run:
go run cmd/main.go
postgres:
docker run --name postgres12 -p 5433:5432 -e POSTGRES_PASSWORD=abc -d postgres:12-alpine
createdb:
docker exec -it postgres12 createdb --username=postgres mpl-db
dropdb:
docker exec -it postgres12 dropdb
dockerfiledb:
docker exec -it backend-db-1 bash
tagdocker:
docker tag mpl-treasurehunt-be guptaakshat/mpl-treasurehunt-be:latest
builddocker:
docker build -t guptaakshat/mpl-treasurehunt-be:latest .
rundocker:
docker run -p 8080:8080 guptaakshat/mpl-treasurehunt-be:latest
deploydocker:
docker push guptaakshat/mpl-treasurehunt-be:latest
redisterminal:
docker exec -it some-redis redis-cli
createredis:
docker run -d --name some-redis -p 6379:6379 redis redis-server --requirepass abc
.PHONY: run postgres createdb dropdb dockerfiledb builddocker rundocker deploydocker tagdocker redisterminal createredis