You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by jo...@apache.org on 2022/10/22 19:34:22 UTC
[incubator-heron] 01/01: adding ubuntu 22.04
This is an automated email from the ASF dual-hosted git repository.
joshfischer pushed a commit to branch 0.20.5-incubating-site-changes
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit e37d685bbb4fb409bdb54aaed2edbdb9a7569ff4
Author: Josh Fischer <jo...@joshfischer.io>
AuthorDate: Sat Oct 22 14:33:57 2022 -0500
adding ubuntu 22.04
---
website2/website/scripts/Dockerfile.ubuntu22.04 | 55 +++++++++++++++++++++++++
website2/website/scripts/compile-docker.sh | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
diff --git a/website2/website/scripts/Dockerfile.ubuntu22.04 b/website2/website/scripts/Dockerfile.ubuntu22.04
new file mode 100644
index 00000000000..6a5ec9c1c48
--- /dev/null
+++ b/website2/website/scripts/Dockerfile.ubuntu22.04
@@ -0,0 +1,55 @@
+# 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 ubuntu:22.04
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+ENV LC_ALL C.UTF-8
+ENV LANG C.UTF-8
+
+# Docker 20.10.10 or older will not work
+RUN apt-get update && apt-get -y install \
+ ant \
+ g++ \
+ cmake \
+ automake \
+ libtool-bin \
+ libunwind8 \
+ patch \
+ python-is-python3 \
+ python3-dev \
+ python3-venv \
+ pkg-config \
+ wget \
+ zip \
+ unzip \
+ git \
+ curl \
+ tree \
+ openjdk-11-jdk-headless
+
+ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
+
+ENV bazelVersion 4.2.2
+
+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 \
+ && rm -rf /tmp/bazel.sh
+
+ADD scripts/compile-platform.sh /compile-platform.sh
diff --git a/website2/website/scripts/compile-docker.sh b/website2/website/scripts/compile-docker.sh
index 80a008f1f4b..32e55c4d593 100755
--- a/website2/website/scripts/compile-docker.sh
+++ b/website2/website/scripts/compile-docker.sh
@@ -38,7 +38,7 @@ dockerfile_path_for_platform() {
echo "$PROJECT_DIR/website/scripts/Dockerfile.$1"
}
-TARGET_PLATFORM="ubuntu18.04"
+TARGET_PLATFORM="ubuntu22.04"
DOCKER_FILE=$(dockerfile_path_for_platform $TARGET_PLATFORM)
verify_dockerfile_exists $DOCKER_FILE