forked from TencentFemas/femas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (19 loc) · 682 Bytes
/
Makefile
File metadata and controls
30 lines (19 loc) · 682 Bytes
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
REG ?= registry.tce.com
PROJECT_NAME := femas
APP_NAME := all
TAG = $(shell git rev-parse --short HEAD)
PORT ?= 8708
VERSION ?= $(TAG)
build-image:
docker build -f Dockerfile -t ${REG}/${PROJECT_NAME}/${APP_NAME}:${VERSION} .
push-image:
docker push ${REG}/${PROJECT_NAME}/${APP_NAME}:${VERSION}
run-image:
docker run -d --name femas-runner -w /usr/local/src/femas \
-p ${PORT}:8080 \
-e VERSION=${VERSION} \
-v $(shell pwd)/logs:/usr/local/src/femas/femas-admin-starter/target/femas-admin-starter-0.3.0-${VERSION}/femas-admin/logs ${REG}/${PROJECT_NAME}/${APP_NAME}:${VERSION}
run-helm:
helm install femas-helm ./femas-helm
reset-helm:
helm uninstall femas-helm