-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add dockerfile to build java7 version of the plugin which will be shared
- Loading branch information
Jan Burkhardt
committed
Apr 18, 2016
1 parent
0806c73
commit 5eb975d
Showing
2 changed files
with
13 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,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 |
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,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 |