Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Joshfischer/debian10 java11 #3481

Merged
merged 5 commits into from
Mar 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions docker/compile/Dockerfile.debian10
Original file line number Diff line number Diff line change
@@ -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
59 changes: 59 additions & 0 deletions docker/dist/Dockerfile.dist.debian10
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 \
netcat-openbsd \
curl \
python \
python2.7-dev \
supervisor \
unzip

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/
2 changes: 2 additions & 0 deletions third_party/zookeeper/zookeeper.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ genrule(
cmd = "\n".join([
"export INSTALL_DIR=$$(pwd)/$(@D)",
"export TMP_DIR=$$(mktemp -d -t zookeeper.XXXXX)",
"export CXXFLAGS=-Wno-error",
"export CFLAGS=-Wno-error",
"mkdir -p $$TMP_DIR",
"cp -R $$(pwd)/external/org_apache_zookeeper/* $$TMP_DIR",
"cd $$TMP_DIR/zookeeper-client/zookeeper-client-c",
Expand Down