|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +FROM ubuntu:20.04 |
| 19 | + |
| 20 | +ARG DEBIAN_FRONTEND=noninteractive |
| 21 | + |
| 22 | +RUN apt-get update |
| 23 | +RUN apt-get -y install \ |
| 24 | + unzip software-properties-common curl python python3 supervisor openjdk-11-jdk-headless |
| 25 | + |
| 26 | +ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64 |
| 27 | +RUN update-ca-certificates -f |
| 28 | + |
| 29 | +ADD artifacts /heron |
| 30 | + |
| 31 | +WORKDIR /heron |
| 32 | + |
| 33 | +# run heron installers |
| 34 | +RUN /heron/heron-install.sh \ |
| 35 | + && rm -f /heron/heron-install.sh |
| 36 | + |
| 37 | +RUN ln -s /usr/local/heron/dist/heron-core /heron \ |
| 38 | + && mkdir -p /heron/heron-tools \ |
| 39 | + && ln -s /usr/local/heron/bin /heron/heron-tools \ |
| 40 | + && ln -s /usr/local/heron/conf /heron/heron-tools \ |
| 41 | + && ln -s /usr/local/heron/dist /heron/heron-tools \ |
| 42 | + && ln -s /usr/local/heron/lib /heron/heron-tools \ |
| 43 | + && ln -s /usr/local/heron/release.yaml /heron/heron-tools \ |
| 44 | + && ln -s /usr/local/heron/examples /heron \ |
| 45 | + && ln -s /usr/local/heron/release.yaml /heron |
| 46 | + |
| 47 | +ENV HERON_HOME /heron/heron-core/ |
| 48 | +RUN export HERON_HOME |
| 49 | + |
| 50 | +# install zookeeper |
| 51 | +ARG ZK_DIST=zookeeper-3.4.14 |
| 52 | +ADD dist/scripts /opt/heron-docker/scripts |
| 53 | + |
| 54 | +RUN sh /opt/heron-docker/scripts/install-zookeeper.sh $ZK_DIST |
| 55 | + |
| 56 | +ADD dist/conf/zookeeper.conf /opt/zookeeper/conf/zookeeper.conf |
| 57 | +ADD dist/conf/sandbox.conf /etc/supervisor/conf.d/ |
0 commit comments