This is an automated email from the ASF dual-hosted git repository.

joshfischer pushed a commit to branch joshfischer/debian10-java11
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git

commit c440c1db2276c8025fef4b910e191940c3230e72
Author: Josh Fischer <[email protected]>
AuthorDate: Sat Mar 7 07:57:49 2020 -0600

    initial debian10 and jdk11
---
 docker/compile/Dockerfile.debian10   | 47 ++++++++++++++++++++++++
 docker/dist/Dockerfile.dist.debian10 | 69 ++++++++++++++++++++++++++++++++++++
 2 files changed, 116 insertions(+)

diff --git a/docker/compile/Dockerfile.debian10 
b/docker/compile/Dockerfile.debian10
new file mode 100644
index 0000000..c240b98
--- /dev/null
+++ b/docker/compile/Dockerfile.debian10
@@ -0,0 +1,47 @@
+#  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 openjdk:11.0.6-slim-buster
+
+# This is passed to the heron build command via the --config flag
+ENV TARGET_PLATFORM debian
+ENV bazelVersion 0.26.0
+
+RUN apt-get update && apt-get -y install \
+      automake \
+      build-essential \
+      cmake \
+      curl \
+      libssl-dev \
+      git \
+      libtool \
+      libtool-bin \
+      python \
+      python2.7-dev \
+      software-properties-common \
+      python-setuptools \
+      tree \
+      zip \
+      unzip \
+      wget
+
+RUN wget -O /tmp/bazel.sh 
https://github.com/bazelbuild/bazel/releases/download/$bazelVersion/bazel-$bazelVersion-installer-linux-x86_64.sh
 \
+      && chmod +x /tmp/bazel.sh \
+      && /tmp/bazel.sh
+
+ADD bazelrc /root/.bazelrc
+ADD scripts/compile-platform.sh /compile-platform.sh
diff --git a/docker/dist/Dockerfile.dist.debian10 
b/docker/dist/Dockerfile.dist.debian10
new file mode 100644
index 0000000..c98412e
--- /dev/null
+++ b/docker/dist/Dockerfile.dist.debian10
@@ -0,0 +1,69 @@
+#  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 openjdk:11.0.6-slim-buster
+
+RUN apt-get update && apt-get -y install \
+      automake \
+      build-essential \
+      cmake \
+      curl \
+      libssl-dev \
+      git \
+      libtool \
+      libtool-bin \
+      python \
+      python2.7-dev \
+      software-properties-common \
+      python-setuptools \
+      tree \
+      zip \
+      unzip \
+      wget
+
+ADD artifacts /heron
+
+WORKDIR /heron
+
+# run heron installer
+RUN /heron/heron-install.sh && \
+    rm -rf /heron/heron-install.sh && \
+    rm -rf /opt/heron/heron-core/lib/scheduler/heron-local-scheduler.jar && \
+    rm -rf /opt/heron/heron-core/lib/scheduler/heron-mesos-scheduler.jar && \
+    rm -rf /opt/heron/heron-core/lib/scheduler/heron-slurm-scheduler.jar
+
+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
+
+# install zookeeper
+ARG ZK_DIST=zookeeper-3.4.14
+ADD dist/scripts /opt/heron-docker/scripts
+
+RUN sh /opt/heron-docker/scripts/install-zookeeper.sh $ZK_DIST
+
+ADD dist/conf/zookeeper.conf /opt/zookeeper/conf/zookeeper.conf
+ADD dist/conf/sandbox.conf /etc/supervisor/conf.d/

Reply via email to