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

Commit c7a5ab4

Browse files
authored
Adding Ubuntu 20.04 Dockerfiles (#3519)
1 parent 7bfa0c7 commit c7a5ab4

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed

docker/compile/Dockerfile.ubuntu20.04

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
# This is passed to the heron build command via the --config flag
21+
ENV TARGET_PLATFORM ubuntu
22+
ENV bazelVersion 3.0.0
23+
24+
ARG DEBIAN_FRONTEND=noninteractive
25+
26+
RUN apt-get update && apt-get -y install \
27+
g++ \
28+
cmake \
29+
automake \
30+
libtool-bin \
31+
libunwind8 \
32+
libcppunit-dev \
33+
patch \
34+
python-dev \
35+
pkg-config \
36+
wget \
37+
zip \
38+
virtualenv \
39+
unzip \
40+
git \
41+
curl \
42+
tree \
43+
openjdk-11-jdk-headless
44+
45+
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
46+
47+
RUN wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/$bazelVersion/bazel-$bazelVersion-installer-linux-x86_64.sh \
48+
&& chmod +x /tmp/bazel.sh \
49+
&& /tmp/bazel.sh
50+
51+
ADD bazelrc /root/.bazelrc
52+
ADD scripts/compile-platform.sh /compile-platform.sh
+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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

Comments
 (0)