Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Commit

Permalink
docker build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
naturefreshmilk committed May 2, 2018
1 parent 2eb0998 commit 4abe87f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM openjdk:10

COPY target/docker/tileserver.jar /

CMD ["java", "-jar", "/tileserver.jar"]

11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

TAG=registry.rudin.io/x86/minetest-tileserver
VOLUMES=-v maven-repo:/root/.m2 -v $(shell pwd)/src:/src -v $(shell pwd)/pom.xml:/pom.xml -v $(shell pwd)/target/docker:/target

build:
rm -rf target/docker
docker run -it --rm $(VOLUMES) maven:3.5-jdk-10 mvn install
docker build . -t $(TAG)

push:
docker push $(TAG)

0 comments on commit 4abe87f

Please sign in to comment.