This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
38 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,3 @@ test-native: | |
|
||
docker-build: build | ||
docker build --rm -t ${IMAGE} rootfs | ||
docker tag ${IMAGE} ${MUTABLE_IMAGE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
MUTABLE_VERSION ?= canary | ||
VERSION ?= git-$(shell git rev-parse --short HEAD) | ||
IMAGE_REGISTRY ?= # default to dockerhub | ||
IMAGE_PREFIX ?= # we rely upon the user providing an IMAGE_PREFIX, e.g., IMAGE_PREFIX=jackfrancis make docker-push | ||
IMAGE_NAME ?= ${SHORT_NAME}-api | ||
IMAGE_REPO ?= bitnami/${SHORT_NAME}-api | ||
IMAGE_TAG ?= latest | ||
|
||
IMAGE := ${IMAGE_REGISTRY}${IMAGE_PREFIX}/${IMAGE_NAME}:${VERSION} | ||
MUTABLE_IMAGE := ${IMAGE_REGISTRY}${IMAGE_PREFIX}/${IMAGE_NAME}:${MUTABLE_VERSION} | ||
IMAGE := ${IMAGE_REPO}:${IMAGE_TAG} | ||
|
||
.PHONY: docker-push | ||
docker-push: docker-immutable-push docker-mutable-push | ||
|
||
.PHONY: docker-immutable-push | ||
docker-immutable-push: | ||
docker-push: | ||
docker push ${IMAGE} | ||
|
||
.PHONY: docker-mutable-push | ||
docker-mutable-push: | ||
docker push ${MUTABLE_IMAGE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
IMAGE_REPO ?= bitnami/monocular-ui | ||
IMAGE_TAG ?= latest | ||
|
||
install: | ||
npm install | ||
docker-compose run --rm ui npm install | ||
|
||
test: | ||
npm test | ||
docker-compose run --rm ui npm test | ||
|
||
test-ci: | ||
npm run test-ci | ||
docker-compose run --rm ui npm run test-ci | ||
|
||
compile: | ||
npm run compile | ||
docker-compose run --rm ui npm run compile | ||
|
||
compile-aot: | ||
npm run compile-aot | ||
docker-compose run --rm ui npm run compile-aot | ||
|
||
docker-build: compile-aot | ||
docker build --rm -t ${IMAGE_REPO}:${IMAGE_TAG} rootfs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters