You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by tb...@apache.org on 2018/11/04 07:40:32 UTC

[1/3] brooklyn-dist git commit: add docker image generation

Repository: brooklyn-dist
Updated Branches:
  refs/heads/master c63c6ecc3 -> d3955f70e


add docker image generation


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/commit/5cb2ed21
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/tree/5cb2ed21
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/diff/5cb2ed21

Branch: refs/heads/master
Commit: 5cb2ed2161186512d4d1d912c33cf214fec8fc3a
Parents: a93a3a3
Author: andreaturli <an...@gmail.com>
Authored: Sat Mar 17 11:08:10 2018 +0100
Committer: andreaturli <an...@gmail.com>
Committed: Sat Mar 17 11:08:10 2018 +0100

----------------------------------------------------------------------
 dist/Dockerfile | 14 ++++++++++++++
 dist/pom.xml    | 32 ++++++++++++++++++++++++++------
 2 files changed, 40 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-dist/blob/5cb2ed21/dist/Dockerfile
----------------------------------------------------------------------
diff --git a/dist/Dockerfile b/dist/Dockerfile
new file mode 100644
index 0000000..fbe3b8a
--- /dev/null
+++ b/dist/Dockerfile
@@ -0,0 +1,14 @@
+FROM openjdk:8-jre-alpine
+LABEL maintainer="Brooklyn Team :: https://brooklyn.apache.org/"
+EXPOSE 8081 8443
+
+ARG DIST_TAR_GZ
+COPY ${DIST_TAR_GZ} brooklyn.tar.gz
+ENV EXTRA_JAVA_OPTS="-XX:SoftRefLRUPolicyMSPerMB=1 -Djava.security.egd=file:/dev/./urandom"
+
+RUN apk --no-cache add bash ; \
+    mkdir brooklyn ; \
+    tar xvzf brooklyn.tar.gz -C /brooklyn --strip-components 1 ;
+
+ENTRYPOINT ["/brooklyn/bin/brooklyn"]
+CMD ["launch"]

http://git-wip-us.apache.org/repos/asf/brooklyn-dist/blob/5cb2ed21/dist/pom.xml
----------------------------------------------------------------------
diff --git a/dist/pom.xml b/dist/pom.xml
index 3eff685..d25ef2a 100644
--- a/dist/pom.xml
+++ b/dist/pom.xml
@@ -77,7 +77,7 @@
                         <exclude>licensing/projects-with-custom-licenses</exclude>
                         <exclude>licensing/extras-files</exclude>
                     </excludes>
-                  </configuration>
+                </configuration>
             </plugin>
             <plugin>
                 <artifactId>maven-assembly-plugin</artifactId>
@@ -112,11 +112,11 @@
                             <descriptors>
                                 <descriptor>src/main/config/build-distribution.xml</descriptor>
                             </descriptors>
-                          <!-- finalName affects name in `target/` but we cannot influence name when it is attached/installed,
-                               so `apache-` prefix would be lost there. to keep it consistent this is commented out, 
-                               but would be nice to have if there is a way!
-                            <finalName>apache-brooklyn-${project.version}</finalName>
-                          -->
+                            <!-- finalName affects name in `target/` but we cannot influence name when it is attached/installed,
+                                 so `apache-` prefix would be lost there. to keep it consistent this is commented out,
+                                 but would be nice to have if there is a way!
+                              <finalName>apache-brooklyn-${project.version}</finalName>
+                            -->
                             <formats>
                                 <format>tar.gz</format>
                                 <format>zip</format>
@@ -125,6 +125,26 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>com.spotify</groupId>
+                <artifactId>dockerfile-maven-plugin</artifactId>
+                <version>1.4.0</version>
+                <executions>
+                    <execution>
+                        <id>default</id>
+                        <goals>
+                            <goal>build</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <repository>apache/brooklyn</repository>
+                    <tag>${project.version}</tag>
+                    <buildArgs>
+                        <DIST_TAR_GZ>target/${project.build.finalName}-dist.tar.gz</DIST_TAR_GZ>
+                    </buildArgs>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 


[3/3] brooklyn-dist git commit: This closes #118

Posted by tb...@apache.org.
This closes #118


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/commit/d3955f70
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/tree/d3955f70
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/diff/d3955f70

Branch: refs/heads/master
Commit: d3955f70e65763bc267e952905e06096e8f1b820
Parents: c63c6ec f54d065
Author: Thomas Bouron <th...@cloudsoftcorp.com>
Authored: Sun Nov 4 07:40:25 2018 +0000
Committer: Thomas Bouron <th...@cloudsoftcorp.com>
Committed: Sun Nov 4 07:40:25 2018 +0000

----------------------------------------------------------------------
 dist/Dockerfile | 33 +++++++++++++++++++++++++++++++++
 dist/pom.xml    | 32 ++++++++++++++++++++++++++------
 2 files changed, 59 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-dist/blob/d3955f70/dist/pom.xml
----------------------------------------------------------------------
diff --cc dist/pom.xml
index 8c0763d,d25ef2a..22d6de1
--- a/dist/pom.xml
+++ b/dist/pom.xml
@@@ -70,12 -70,14 +70,12 @@@
                          <!-- Exclude sample config files because they are illustrative, intended for changing -->
                          <exclude>src/main/dist/conf/**</exclude>
                          <exclude>src/main/dist/README.md</exclude>
 -                        <exclude>licensing/licenses/**</exclude>
 +                        <!-- Exclude these which are not ours or have little valuable content and/or where the header is difficult to work with -->
 +                        <exclude>licensing/license-text/**</exclude>
 +                        <exclude>licensing/parts/**</exclude>
                          <exclude>licensing/README.md</exclude>
 -                        <exclude>licensing/*LICENSE*</exclude>
 -                        <exclude>licensing/*.autogenerated</exclude>
 -                        <exclude>licensing/projects-with-custom-licenses</exclude>
 -                        <exclude>licensing/extras-files</exclude>
                      </excludes>
-                   </configuration>
+                 </configuration>
              </plugin>
              <plugin>
                  <artifactId>maven-assembly-plugin</artifactId>


[2/3] brooklyn-dist git commit: add asf disclaimer to Dockerfile

Posted by tb...@apache.org.
add asf disclaimer to Dockerfile


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/commit/f54d0659
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/tree/f54d0659
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/diff/f54d0659

Branch: refs/heads/master
Commit: f54d0659eb765c1d481b0ba13a6fd30841e36264
Parents: 5cb2ed2
Author: andreaturli <an...@gmail.com>
Authored: Tue Mar 20 17:34:59 2018 +0100
Committer: andreaturli <an...@gmail.com>
Committed: Tue Mar 20 17:34:59 2018 +0100

----------------------------------------------------------------------
 dist/Dockerfile | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-dist/blob/f54d0659/dist/Dockerfile
----------------------------------------------------------------------
diff --git a/dist/Dockerfile b/dist/Dockerfile
index fbe3b8a..0d04de7 100644
--- a/dist/Dockerfile
+++ b/dist/Dockerfile
@@ -1,3 +1,22 @@
+#
+# 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:8-jre-alpine
 LABEL maintainer="Brooklyn Team :: https://brooklyn.apache.org/"
 EXPOSE 8081 8443