-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (30 loc) · 1.11 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
DOCKER_RELEASE_TAG ?= latest
APPLICATION_NAME ?=fermina-care-app
BUILD_NAME ?=fermina-care
DOCKER_USERNAME ?=capstone14
dev:
@go run cmd/main.go
build-app:
@go build -o main-go cmd/main.go
tidy:
@go mod tidy
dev_test:
@go test ./tests/features/*.go -coverpkg=./internal/app/v1/services
dev_test_make_profile:
@go test ./tests/features/*.go -coverpkg=./internal/app/v1/services -coverprofile=tests/result_tests.cov && go tool cover -func tests/result_tests.cov
execute_tests:
@go tool cover -html=tests/result_tests.cov
d_stop:
docker stop ${APPLICATION_NAME} || true
d_rename:
docker rm ${APPLICATION_NAME} || true
d_build:
docker build -t ${DOCKER_USERNAME}/${BUILD_NAME}:${DOCKER_RELEASE_TAG} .
d_run_container:
docker run -d -p 8080:8080 --name ${APPLICATION_NAME} ${DOCKER_USERNAME}/${BUILD_NAME}:${DOCKER_RELEASE_TAG}
d_push:
docker push ${DOCKER_USERNAME}/${BUILD_NAME}:${DOCKER_RELEASE_TAG}
d_pull:
docker pull ${DOCKER_USERNAME}/${BUILD_NAME}:${DOCKER_RELEASE_TAG}
d_run_ngrok:
docker run -it -e NGROK_AUTHTOKEN=2XJ401tq0VyCnCf66NlRrf9Mgih_5vNZpQ6n5PZk3SVoithRh -p 8080:8080 ngrok/ngrok http 35.223.26.211:8080