Ian Maxon | 231c24d | 2015-09-29 15:43:25 -0700 | [diff] [blame^] | 1 | #/* |
| 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 | |
| 19 | FROM centos |
| 20 | MAINTAINER AsterixDB Team |
| 21 | |
| 22 | RUN 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 |
| 23 | RUN echo "include_only=.us" >> /etc/yum/pluginconf.d/fastestmirror.conf |
| 24 | RUN yum install -y unzip java-1.7.0-openjdk openssh-server openssh-clients python-setuptools wget curl |
| 25 | RUN easy_install supervisor |
| 26 | RUN mkdir /asterixdb |
| 27 | COPY asterix-server*.zip . |
| 28 | RUN unzip asterix-server*.zip -d /asterixdb/ |
| 29 | COPY asterix-configuration.xml /asterixdb/bin/asterix-configuration.xml |
| 30 | COPY supervisord.conf /etc/supervisord.conf |
| 31 | COPY twu.adm /asterixdb/twu.adm |
| 32 | COPY twm.adm /asterixdb/twm.adm |
| 33 | COPY fbu.adm /asterixdb/fbu.adm |
| 34 | COPY fbm.adm /asterixdb/fbm.adm |
| 35 | |
| 36 | WORKDIR /asterixdb/bin |
| 37 | ENV JAVA_HOME /usr/lib/jvm/jre-1.7.0 |
| 38 | ENV JAVA_OPTS -Xmx1536m |
| 39 | EXPOSE 19001 19002 8888 19003 50031 |
| 40 | |
| 41 | ENTRYPOINT /bin/bash -c '/usr/bin/supervisord' |
| 42 | |
| 43 | |