This is an automated email from the ASF dual-hosted git repository.
piergiorgio pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git
The following commit(s) were added to refs/heads/trunk by this push:
new c4681a273 Create Dockerfile for JDK-7 (CONNECTORS-1754)
c4681a273 is described below
commit c4681a273ef88e3ef744ff45754ea92110b1baea
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Fri Jun 28 14:57:53 2024 +0200
Create Dockerfile for JDK-7 (CONNECTORS-1754)
---
src/main/docker/JDK-7/Dockerfile | 116 +++++++++++++++++++++++++++++++++++++++
1 file changed, 116 insertions(+)
diff --git a/src/main/docker/JDK-7/Dockerfile b/src/main/docker/JDK-7/Dockerfile
new file mode 100644
index 000000000..e9389d94f
--- /dev/null
+++ b/src/main/docker/JDK-7/Dockerfile
@@ -0,0 +1,116 @@
+# 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:7-jre
+LABEL maintainer="The Apache ManifoldCF Project"
+
+ARG MCF_VERSION="1.10"
+
+ARG MCF_USER=manifoldcf
+ARG MCF_USER_ID=100001
+
+ARG MCF_GROUP=manifoldcf
+ARG MCF_GROUP_ID=100002
+
+ARG MCF_HOME=/usr/share/manifoldcf
+ARG MCF_PORT=8345
+
+#SHELL ["/bin/bash", "-c"]
+
+#RUN apt-get update && apt-get install -y iputils-ping && \
+# apt-get install -y dnsutils && \
+# apt-get install -y wget && \
+# apt-get install -y alien
+
+#RUN apt-get update && \
+# apt-get install -y software-properties-common
+
+#RUN add-apt-repository ppa:openjdk-r/ppa && \
+# apt-get install -y openjdk-7-jdk
+
+#WORKDIR /tmp
+#COPY jre-7u80-linux-x64.tar.gz /opt/jre-7u80-linux-x64.tar.gz
+
+#RUN chmod a+x jre-7u80-linux-x64.rpm
+#RUN alien jre*.rpm
+#RUN dpkg -i jre_1.7.080-1_amd64.deb
+#RUN whereis java
+#RUN ls -l /usr/local/java
+#RUN echo $JAVA_HOME
+
+#WORKDIR /
+
+#RUN mkdir -p /opt/jre-6
+#RUN mv /tmp/jre-6u45-linux-x64.bin /opt/jre-6/jre-6u45-linux-x64.bin
+#RUN echo yes|sh ./opt/jre-6/jre-6u45-linux-x64.bin
+
+#ENV JAVA_HOME /jre1.6.0_45
+#ENV PATH
/jre1.6.0_45/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+#RUN export JAVA_HOME=/jre1.6.0_45
+#RUN export
PATH=/jre1.6.0_45/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+#RUN echo $JAVA_HOME
+
+COPY dist/. ${MCF_HOME}/
+
+#Below the specific COPY instructions to configure a distribution without
propprietary artifacts
+#COPY dist/connector-build.xml ${MCF_HOME}/connector-build.xml
+#COPY dist/connectors.xml ${MCF_HOME}/connectors.xml
+#COPY dist/DEPENDENCIES.txt ${MCF_HOME}/DEPENDENCIES.txt
+#COPY dist/LICENSE.txt ${MCF_HOME}/LICENSE.txt
+#COPY dist/README.txt ${MCF_HOME}/README.txt
+
+#COPY dist/connector-common-lib ${MCF_HOME}/connector-common-lib
+#COPY dist/connector-lib ${MCF_HOME}/connector-lib
+#COPY dist/doc ${MCF_HOME}/doc
+#COPY dist/example ${MCF_HOME}/example
+#COPY dist/file-resources ${MCF_HOME}/file-resources
+#COPY dist/lib ${MCF_HOME}/lib
+#COPY dist/multiprocess-file-example ${MCF_HOME}/multiprocess-file-example
+#COPY dist/multiprocess-zk-example ${MCF_HOME}/multiprocess-zk-example
+#COPY dist/obfuscation-utility ${MCF_HOME}/obfuscation-utility
+#COPY dist/plugins/solr ${MCF_HOME}/plugins/solr
+#COPY dist/script-engine ${MCF_HOME}/script-engine
+#COPY dist/test-lib ${MCF_HOME}/test-lib
+#COPY dist/web/war ${MCF_HOME}/web/war
+
+LABEL maintainer="Apache ManifoldCF Developers <[email protected]>"
+LABEL org.opencontainers.image.title="Apache ManifoldCF"
+LABEL org.opencontainers.image.ref.name="manifoldcf"
+LABEL org.opencontainers.image.description="Apache ManifoldCF is a
multi-repository crawler framework, with multiple connectors."
+LABEL org.opencontainers.image.authors="Apache ManifoldCF Developers
<[email protected]>"
+LABEL org.opencontainers.image.url="https://hub.docker.com/r/apache/manifoldcf"
+LABEL org.opencontainers.image.source="https://github.com/apache/manifoldcf"
+LABEL
org.opencontainers.image.documentation="https://hub.docker.com/r/apache/manifoldcf"
+LABEL org.opencontainers.image.version="${MCF_VERSION}"
+LABEL org.opencontainers.image.licenses="Apache-2.0"
+LABEL org.opencontainers.image.vendor="Apache Software Foundation"
+
+ENV MCF_USER="manifoldcf"
+ENV MCF_USER_ID="100001"
+ENV MCF_GROUP="manifoldcf"
+ENV MCF_GROUP_ID="100002"
+ENV MCF_PORT="8345"
+
+RUN set -ex; \
+ groupadd -r --gid "$MCF_GROUP_ID" "$MCF_GROUP"; \
+ useradd -r --uid "$MCF_USER_ID" --gid "$MCF_GROUP_ID" "$MCF_USER"
+
+RUN chown ${MCF_USER}:${MCF_USER} -R ${MCF_HOME}
+RUN chmod +x ${MCF_HOME}/example/start.sh
+
+USER ${MCF_USER}
+EXPOSE ${MCF_PORT}
+WORKDIR ${MCF_HOME}/example
+CMD ["./start.sh"]