Skip to content

Commit

Permalink
add dockerfile to build java7 version of the plugin which will be shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Burkhardt committed Apr 18, 2016
1 parent 0806c73 commit 5eb975d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM java:7
MAINTAINER Jan Burkhardt <[email protected]>
RUN useradd -d /home/theuser -m theuser
USER theuser
VOLUME /dist
WORKDIR /dist
RUN java -version
6 changes: 6 additions & 0 deletions dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
RANDOM_TAG=jsr305_plugin_dist_$(tr -dc "a-z" < /dev/urandom | head -c 8)

docker build -t $RANDOM_TAG .
docker run --rm -v $PWD:/dist $RANDOM_TAG sh -c "./gradlew clean jar"
docker rmi --no-prune=true $RANDOM_TAG

0 comments on commit 5eb975d

Please sign in to comment.