| FROM ubuntu:18.04 |
| |
| RUN apt-get update |
| RUN apt-get -y install \ |
| unzip software-properties-common curl supervisor openjdk-8-jdk-headless |
| |
| ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 |
| RUN update-ca-certificates -f |
| |
| ADD artifacts /heron |
| |
| WORKDIR /heron |
| |
| # run heron installers |
| RUN /heron/heron-install.sh \ |
| && rm -f /heron/heron-install.sh \ |
| && rm -f /usr/local/heron/dist/heron-core.tar.gz |
| |
| RUN ln -s /usr/local/heron/dist/heron-core /heron \ |
| && mkdir -p /heron/heron-tools \ |
| && ln -s /usr/local/heron/bin /heron/heron-tools \ |
| && ln -s /usr/local/heron/conf /heron/heron-tools \ |
| && ln -s /usr/local/heron/dist /heron/heron-tools \ |
| && ln -s /usr/local/heron/lib /heron/heron-tools \ |
| && ln -s /usr/local/heron/release.yaml /heron/heron-tools \ |
| && ln -s /usr/local/heron/examples /heron \ |
| && ln -s /usr/local/heron/release.yaml /heron |
| |
| ENV HERON_HOME /heron/heron-core/ |
| RUN export HERON_HOME |