Skip to content

Commit

Permalink
Adding docker suppor for the ZKUI
Browse files Browse the repository at this point in the history
  • Loading branch information
D064226 committed Jun 17, 2015
1 parent 63a904c commit 892d6f5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Makefile
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)
12 changes: 12 additions & 0 deletions docker/Dockerfile
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
4 changes: 4 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
docker run \
-d \
-p 9090:9090 \
zkui

0 comments on commit 892d6f5

Please sign in to comment.