You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celeborn.apache.org by re...@apache.org on 2023/03/29 02:23:57 UTC
[incubator-celeborn] 42/42: fix #1 add inner docker file
This is an automated email from the ASF dual-hosted git repository.
rexxiong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git
commit d32f2648d9d0ffdbba431f332f8dffa0eb318977
Author: Shuang <lv...@gmail.com>
AuthorDate: Wed Mar 29 10:22:52 2023 +0800
fix #1 add inner docker file
---
docker/Dockerfile.inner | 62 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/docker/Dockerfile.inner b/docker/Dockerfile.inner
new file mode 100644
index 000000000..ecc459867
--- /dev/null
+++ b/docker/Dockerfile.inner
@@ -0,0 +1,62 @@
+#
+# 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 centos:7.6.1810
+
+ARG celeborn_uid=10006
+ARG celeborn_gid=10006
+
+ENV CELEBORN_HOME=/opt/celeborn
+ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/busybox:${CELEBORN_HOME}/sbin:${CELEBORN_HOME}/bin
+
+
+RUN yum install -y java-1.8.0-openjdk-devel sshpass openssh-clients vim epel-release bind-utils \
+ supervisor telnet net-tools procps && \
+ yum clean all && rm -rf /var/cache/yum
+
+ENV TINI_VERSION v0.19.0
+ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
+RUN chmod +x /usr/bin/tini
+
+RUN set -ex && \
+ yum install -y java-1.8.0-openjdk-devel sshpass openssh-clients vim epel-release bind-utils \
+ supervisor telnet net-tools procps crontabs && \
+ yum clean all && rm -rf /var/cache/yum && \
+ ln -snf /bin/bash /bin/sh && \
+ rm -rf /var/cache/apt/* && \
+ groupadd --gid=${celeborn_gid} celeborn && \
+ useradd --uid=${celeborn_uid} --gid=${celeborn_gid} celeborn -d /home/celeborn -m && \
+ mkdir -p ${CELEBORN_HOME}
+
+COPY bin /opt/celeborn/bin
+COPY sbin /opt/celeborn/sbin
+COPY conf /opt/celeborn/conf
+COPY conf/log4j2.xml.template /opt/celeborn/conf/log4j2.xml
+COPY jars /opt/celeborn/jars
+COPY flink /opt/celeborn/flink
+COPY master-jars /opt/celeborn/master-jars
+COPY worker-jars /opt/celeborn/worker-jars
+COPY RELEASE /opt/celeborn/RELEASE
+
+RUN chown -R celeborn:celeborn ${CELEBORN_HOME} && \
+ chmod -R ug+rw ${CELEBORN_HOME} && \
+ chmod a+x ${CELEBORN_HOME}/bin/* && \
+ chmod a+x ${CELEBORN_HOME}/sbin/*
+
+USER celeborn
+
+ENTRYPOINT ["/usr/bin/tini", "--"]