0.2.1 • Published 4 months ago

runnable-jar-to-docker v0.2.1

Weekly downloads
-
License
Apache 2
Repository
github
Last release
4 months ago

Runnable Jar to Docker

NPM

Creates and publishes a Docker image with a runnable jar from Maven Central.

Example (will create this Dockerfile):

npx runnable-jar-to-docker \
 --docker-username tomasbjerre \
 --docker-password *** \
 --maven-group se.bjurr.gitchangelog \
 --maven-artifact git-changelog-command-line \
 --maven-version 1.102.0

Usage

Parameters:

Options:
  --docker-username <username>  Docker username
  --docker-password <password>  Docker password
  --maven-group <group>         Maven Group
  --maven-artifact <artifact>   Maven Artifact
  --maven-version <version>     Maven Package Version
  --compile-native              Given if the JAR should be compiled with GraalVM to native binary
  --dry-run                     Given if nothing should be done, just printed
  -h, --help                    display help for command

Example projects

Developer instructions

You may build it with:

npm run build

You can try it without release with:

npm run build \
 && node ./lib/cli.js \
  --docker-username tomasbjerre \
  --docker-password $dockerhub_token \
  --maven-group se.bjurr.violations \
  --maven-artifact violations-command-line \
  --maven-version 3.0.0 \
  --compile-native \
  --dry-run
docker run \
 --mount src="$(pwd)",target=/home/violations-command-line,type=bind \
 tomasbjerre/violations-command-line:3.0.0 \
 -v "FINDBUGS" src/test/resources/findbugs/ ".*main\.xml$" "Spotbugs"

Another example:

npm run build \
 && node ./lib/cli.js \
  --docker-username tomasbjerre \
  --docker-password $dockerhub_token \
  --maven-group se.bjurr.gitchangelog \
  --maven-artifact git-changelog-command-line \
  --maven-version 2.2.1 \
  --dry-run
docker run \
 --mount src="$(pwd)",target=/home/git-changelog-command-line,type=bind \
 tomasbjerre/git-changelog-command-line:2.2.1 \
 -std

Or open a shell:

docker run --rm -it --entrypoint sh tomasbjerre/git-changelog-command-line:2.2.1
0.2.1

4 months ago

0.2.0

10 months ago

0.1.5

11 months ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago