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

Commit 576e0c7

Browse files
Joshfischer/debian10 java11 (#3481)
Added Debian 10 Dockerfiles
1 parent 6846f70 commit 576e0c7

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

docker/compile/Dockerfile.debian10

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 openjdk:11.0.6-slim-buster
19+
20+
# This is passed to the heron build command via the --config flag
21+
ENV TARGET_PLATFORM debian
22+
ENV bazelVersion 0.26.0
23+
24+
RUN apt-get update && apt-get -y install \
25+
automake \
26+
build-essential \
27+
cmake \
28+
curl \
29+
libssl-dev \
30+
git \
31+
libtool \
32+
libtool-bin \
33+
python \
34+
python2.7-dev \
35+
software-properties-common \
36+
python-setuptools \
37+
tree \
38+
zip \
39+
unzip \
40+
wget
41+
42+
RUN wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/$bazelVersion/bazel-$bazelVersion-installer-linux-x86_64.sh \
43+
&& chmod +x /tmp/bazel.sh \
44+
&& /tmp/bazel.sh
45+
46+
ADD bazelrc /root/.bazelrc
47+
ADD scripts/compile-platform.sh /compile-platform.sh

docker/dist/Dockerfile.dist.debian10

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 openjdk:11.0.6-slim-buster
19+
20+
RUN apt-get update && apt-get -y install \
21+
netcat-openbsd \
22+
curl \
23+
python \
24+
python2.7-dev \
25+
supervisor \
26+
unzip
27+
28+
ADD artifacts /heron
29+
30+
WORKDIR /heron
31+
32+
# run heron installer
33+
RUN /heron/heron-install.sh && \
34+
rm -rf /heron/heron-install.sh && \
35+
rm -rf /opt/heron/heron-core/lib/scheduler/heron-local-scheduler.jar && \
36+
rm -rf /opt/heron/heron-core/lib/scheduler/heron-mesos-scheduler.jar && \
37+
rm -rf /opt/heron/heron-core/lib/scheduler/heron-slurm-scheduler.jar
38+
39+
RUN ln -s /usr/local/heron/dist/heron-core /heron \
40+
&& mkdir -p /heron/heron-tools \
41+
&& ln -s /usr/local/heron/bin /heron/heron-tools \
42+
&& ln -s /usr/local/heron/conf /heron/heron-tools \
43+
&& ln -s /usr/local/heron/dist /heron/heron-tools \
44+
&& ln -s /usr/local/heron/lib /heron/heron-tools \
45+
&& ln -s /usr/local/heron/release.yaml /heron/heron-tools \
46+
&& ln -s /usr/local/heron/examples /heron \
47+
&& ln -s /usr/local/heron/release.yaml /heron
48+
49+
ENV HERON_HOME /heron/heron-core/
50+
RUN export HERON_HOME
51+
52+
# install zookeeper
53+
ARG ZK_DIST=zookeeper-3.4.14
54+
ADD dist/scripts /opt/heron-docker/scripts
55+
56+
RUN sh /opt/heron-docker/scripts/install-zookeeper.sh $ZK_DIST
57+
58+
ADD dist/conf/zookeeper.conf /opt/zookeeper/conf/zookeeper.conf
59+
ADD dist/conf/sandbox.conf /etc/supervisor/conf.d/

third_party/zookeeper/zookeeper.BUILD

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ genrule(
2424
cmd = "\n".join([
2525
"export INSTALL_DIR=$$(pwd)/$(@D)",
2626
"export TMP_DIR=$$(mktemp -d -t zookeeper.XXXXX)",
27+
"export CXXFLAGS=-Wno-error",
28+
"export CFLAGS=-Wno-error",
2729
"mkdir -p $$TMP_DIR",
2830
"cp -R $$(pwd)/external/org_apache_zookeeper/* $$TMP_DIR",
2931
"cd $$TMP_DIR/zookeeper-client/zookeeper-client-c",

0 commit comments

Comments
 (0)