You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2019/05/05 00:52:33 UTC
[incubator-tuweni] branch master updated: Add docker file for
gossip application
This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/master by this push:
new e348d3e Add docker file for gossip application
new 48248d2 Merge pull request #10 from atoulme/gossip_app
e348d3e is described below
commit e348d3e88743dcb67d5669dd7d451b7c1cfaea9e
Author: Antoine Toulme <an...@lunar-ocean.com>
AuthorDate: Sat May 4 16:10:00 2019 -0700
Add docker file for gossip application
---
dist/build.gradle | 12 ++++++++++++
dist/docker/gossip.Dockerfile | 19 +++++++++++++++++++
2 files changed, 31 insertions(+)
diff --git a/dist/build.gradle b/dist/build.gradle
index 82e12ad..2a7a281 100644
--- a/dist/build.gradle
+++ b/dist/build.gradle
@@ -10,6 +10,8 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
+plugins { id 'com.bmuschko.docker-remote-api' version '3.2.3' }
+
description = 'Tuweni distribution.'
apply plugin: 'distribution'
@@ -76,6 +78,7 @@ distributions {
}
}
gossip {
+ baseName = 'tuweni-gossip'
contents {
into('bin') {
from { project(':gossip').startScripts.outputs.files }
@@ -114,3 +117,12 @@ task createChecksums(type: Checksum, dependsOn: [
}
build.dependsOn('createChecksums')
+
+import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
+
+task buildImage(type: DockerBuildImage) {
+ dependsOn gossipDistTar
+ inputDir = projectDir
+ dockerFile = file("docker/gossip.Dockerfile")
+ tag = "apache-tuweni/gossip:$project.version"
+}
diff --git a/dist/docker/gossip.Dockerfile b/dist/docker/gossip.Dockerfile
new file mode 100644
index 0000000..9c434a7
--- /dev/null
+++ b/dist/docker/gossip.Dockerfile
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
+# file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
+# to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
+# License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
+# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations under the License.
+
+FROM openjdk:11.0.3-jre-stretch
+
+COPY build/distributions/tuweni-gossip-*.tgz /usr/gossip.tgz
+RUN cd /usr \
+ && tar xzf gossip.tgz \
+ && mv tuweni-gossip-* gossip
+
+ENTRYPOINT ["/usr/gossip/bin/gossip"]
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org