forked from DeemOpen/zkui
-
Notifications
You must be signed in to change notification settings - Fork 0
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
D064226
committed
Jun 17, 2015
1 parent
63a904c
commit 892d6f5
Showing
3 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
NAME = zkui | ||
VERSION=2.0-SNAPSHOT | ||
REGISTRY = depot.fra.hybris.com:5000 | ||
|
||
.PHONY: all build publish | ||
|
||
all: build publish | ||
|
||
build: | ||
# mvn clean install | ||
cp config.cfg docker | ||
cp target/$(NAME)-*-jar-with-dependencies.jar docker | ||
docker build -t $(NAME):$(VERSION) --no-cache --rm docker | ||
rm docker/$(NAME)-*.jar | ||
rm docker/config.cfg | ||
|
||
publish: | ||
docker tag -f $(NAME):$(VERSION) $(REGISTRY)/$(NAME):$(VERSION) | ||
docker tag -f $(NAME):$(VERSION) $(REGISTRY)/$(NAME):latest | ||
docker push $(REGISTRY)/$(NAME) |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM java:8 | ||
|
||
MAINTAINER Miguel Garcia Puyol <[email protected] | ||
|
||
WORKDIR /var/app | ||
|
||
ADD zkui-*.jar /var/app/zkui.jar | ||
ADD config.cfg /var/app/config.cfg | ||
|
||
ENTRYPOINT [ "java", "-jar", "/var/app/zkui.jar" ] | ||
|
||
EXPOSE 9090 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
docker run \ | ||
-d \ | ||
-p 9090:9090 \ | ||
zkui |