forked from FeynmanZhou/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 678 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 678 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
REPO?=kubespheredev/ks-console
TAG?=$(shell git rev-parse --abbrev-ref HEAD | sed -e 's/\//-/g' | sed 's/master/latest/g')-dev
setup:
docker volume create nodemodules
install:
docker-compose -f docker-compose.builder.yaml run --rm install
dev:
docker-compose up
build:
docker-compose -f docker-compose.builder.yaml run --rm build
yarn-%:
docker-compose -f docker-compose.builder.yaml run --rm base yarn $*
image:
rm -rf build && mkdir -p build
tar --exclude=".git" --exclude='node_modules' --exclude='build' --warning=no-file-changed -czf build/console.tar.gz .
docker build build -t $(REPO):$(TAG) -f Dockerfile.multistage
image-push:
docker push $(REPO):$(TAG)