blob: 8d5d4088a69151ddb7ac067d664f5ff98745e09f [file] [log] [blame]
# ----------------------------------------------------------------------------
#
# 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 ubuntu:14.04
RUN apt-get update -qq && \
apt-get install -y wget && \
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb && \
dpkg -i puppetlabs-release-precise.deb && \
rm puppetlabs-release-precise.deb && \
apt-get update -qq && \
apt-get install -y puppetmaster && \
apt-get clean && \
rm -rf /var/cache/apt/*
RUN mkdir -p /etc/puppet/modules/agent/files && \
mkdir -p /etc/puppet/modules/java/files && \
mkdir -p /etc/puppet/modules/tomcat/files
COPY files/manifests /etc/puppet/manifests
COPY files/modules /etc/puppet/modules
ADD files/apache-activemq-libs.tgz /etc/puppet/modules/agent/files/activemq/
ADD files/jdk.tgz /etc/puppet/modules/java/files/
ADD files/apache-tomcat.tgz /etc/puppet/modules/tomcat/files/
ADD files/apache-stratos-cartridge-agent.tgz /etc/puppet/modules/agent/files/
ADD files/apache-stratos-load-balancer.tgz /etc/puppet/modules/lb/files/
ADD run /usr/local/bin/run
RUN chmod +x /usr/local/bin/run
CMD ["/usr/local/bin/run"]