Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add support for Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
vnugent committed Feb 24, 2015
1 parent 0a3e670 commit 460e116
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
34 changes: 34 additions & 0 deletions kettle/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Copyright 2014-2015 Red Hat, Inc. and/or its affiliates
# and other contributors as indicated by the @author tags.
#
# Licensed 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.
#

# Dockerfile for hawkular-kettle

FROM jboss/base-jdk:8

MAINTAINER Viet Nguyen <vnguyen@redhat.com>

ADD hawkular-kettle-*-distribution.zip /opt/hawkular-kettle.zip

USER root

RUN unzip -qq -d /opt /opt/hawkular-kettle.zip;\
rm /opt/hawkular-kettle.zip;\
/opt/wildfly-8.2.0.Final/bin/add-user.sh hawkularadmin hawkularadmin --silent

EXPOSE 8080 9990

CMD ["/opt/wildfly-8.2.0.Final/bin/standalone.sh","-b","0.0.0.0","-bmanagement","0.0.0.0"]
13 changes: 13 additions & 0 deletions kettle/docker/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
== Build the Kettle Docker image
Make sure you are in hawkular/kettle directory
[source,shell]
---
mvn package docker:build
---

Running Hawkular
[source,shell]
---
docker run -dP --name hawkular hawkular:snapshot
docker port hawkular
---
17 changes: 16 additions & 1 deletion kettle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,22 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.1.2</version>
<configuration>
<imageName>hawkular:snapshot</imageName>
<dockerDirectory>docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}-distribution.zip</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 460e116

Please sign in to comment.