blob: 9303bce69c5ab18b4bc8d9969263b06651d20cf1 [file] [log] [blame]
Ian Maxon231c24d2015-09-29 15:43:25 -07001#/*
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18
19FROM centos
20MAINTAINER AsterixDB Team
21
22RUN echo 'LANG="en_US.UTF-8"' > /etc/sysconfig/i18n ;echo 'ZONE="America/Los_Angeles"' > /etc/sysconfig/clock ;cp -a /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
23RUN echo "include_only=.us" >> /etc/yum/pluginconf.d/fastestmirror.conf
24RUN yum install -y unzip java-1.7.0-openjdk openssh-server openssh-clients python-setuptools wget curl
25RUN easy_install supervisor
26RUN mkdir /asterixdb
27COPY asterix-server*.zip .
28RUN unzip asterix-server*.zip -d /asterixdb/
29COPY asterix-configuration.xml /asterixdb/bin/asterix-configuration.xml
30COPY supervisord.conf /etc/supervisord.conf
31COPY twu.adm /asterixdb/twu.adm
32COPY twm.adm /asterixdb/twm.adm
33COPY fbu.adm /asterixdb/fbu.adm
34COPY fbm.adm /asterixdb/fbm.adm
35
36WORKDIR /asterixdb/bin
37ENV JAVA_HOME /usr/lib/jvm/jre-1.7.0
38ENV JAVA_OPTS -Xmx1536m
39EXPOSE 19001 19002 8888 19003 50031
40
41ENTRYPOINT /bin/bash -c '/usr/bin/supervisord'
42
43