From 0b64da10c713f3c3d37d13889a991e22481ac428 Mon Sep 17 00:00:00 2001 From: sawanoboly Date: Wed, 5 Sep 2018 18:58:15 +0900 Subject: [PATCH] build with docker --- Dockerfile | 4 ++++ README.md | 10 +++++++++- build.gradle | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4a6886f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:8 + +WORKDIR /home/rundeck-slack-incoming-webhook-plugin +CMD ["bash", "./gradlew"] diff --git a/README.md b/README.md index 3dd43aa..b99e629 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@ See the [Included Plugins | Rundeck Documentation](http://rundeck.org/docs/plugi 1. build the source by gradle. 2. copy jarfile to `$RDECK_BASE/libext` +### build with docker. + +``` +$ docker build -t rundeck-slack-incoming-webhook-plugin:latest . +$ docker run --rm -v `pwd`:/home/rundeck-slack-incoming-webhook-plugin rundeck-slack-incoming-webhook-plugin:latest +``` + +it creates `./build/libs/rundeck-slack-incoming-webhook-plugin-0.?.jar` ## Configuration This plugin uses Slack incoming-webhooks. Create a new webhook and copy the provided url. @@ -44,4 +52,4 @@ On failure. * @totallyunknown * @notandy * @lusis -* @sawanoboly \ No newline at end of file +* @sawanoboly diff --git a/build.gradle b/build.gradle index e93121e..07999b4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'java' sourceCompatibility = 1.6 -project.version = 0.6 +project.version = 0.7 defaultTasks 'clean', 'build' configurations{