Skip to content
Permalink
Browse files
This closes #118
  • Loading branch information
tbouron committed Nov 4, 2018
2 parents c63c6ec + f54d065 commit d3955f70e65763bc267e952905e06096e8f1b820
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 6 deletions.
@@ -0,0 +1,33 @@
#
# 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

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"]
@@ -75,7 +75,7 @@
<exclude>licensing/parts/**</exclude>
<exclude>licensing/README.md</exclude>
</excludes>
</configuration>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
@@ -110,11 +110,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>
@@ -123,6 +123,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>

0 comments on commit d3955f7

Please sign in to comment.