From ef0ddc82bd3b01d0a395b0d071f65dadabeca1d0 Mon Sep 17 00:00:00 2001
From: openeuler_bot <673672685@qq.com>
Date: Tue, 15 Oct 2024 02:14:43 +0000
Subject: [PATCH 1/5] 24.03-lts update httpd to 2.4.62
---
httpd/2.4.62/24.03-lts/Dockerfile | 43 +++++++++++++++++++++++++
httpd/2.4.62/24.03-lts/httpd-foreground | 7 ++++
httpd/meta.yml | 3 ++
3 files changed, 53 insertions(+)
create mode 100644 httpd/2.4.62/24.03-lts/Dockerfile
create mode 100644 httpd/2.4.62/24.03-lts/httpd-foreground
diff --git a/httpd/2.4.62/24.03-lts/Dockerfile b/httpd/2.4.62/24.03-lts/Dockerfile
new file mode 100644
index 00000000..0990da2d
--- /dev/null
+++ b/httpd/2.4.62/24.03-lts/Dockerfile
@@ -0,0 +1,43 @@
+ARG BASE=openeuler/openeuler:24.03-lts
+FROM ${BASE}
+
+ARG VERSION=2.4.62
+ENV HTTPD_PREFIX /usr/local/apache2
+WORKDIR ${HTTPD_PREFIX}
+
+RUN yum install -y autoconf make gcc apr apr-devel apr-util-devel pcre-devel && \
+ curl -fSL --output httpd.tar.gz https://archive.apache.org/dist/httpd/httpd-${VERSION}.tar.gz && \
+ mkdir -p /src/httpd && tar -zvxf httpd.tar.gz -C /src/httpd --strip-components=1 && \
+ rm -f httpd.tar.gz && yum clean all
+
+RUN cd /src/httpd && \
+ ./configure --prefix=/usr/local/apache2 && \
+ make && \
+ make install && \
+ rm -rf /src/httpd
+
+RUN groupadd -r www-data && useradd -r --create-home -g www-data www-data && \
+ mkdir -p /var/www/html && \
+ mv -f $HTTPD_PREFIX/htdocs/index.html /var/www/html/ && \
+ sed -ri \
+ -e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
+ -e 's!^(\s*TransferLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*User)\s+daemon\s*$!\1 www-data!g' \
+ -e 's!^(\s*Group)\s+daemon\s*$!\1 www-data!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" \
+ "$HTTPD_PREFIX/conf/extra/httpd-ssl.conf" && \
+ sed -ri -e 's!^(\s*DocumentRoot)\s+\S+!\1 "/var/www/html"!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" && \
+ sed -i '/^DocumentRoot/a\
+ \n \
+ Options Indexes FollowSymLinks \n \
+ AllowOverride none \n \
+ Require all granted \n \
+' "$HTTPD_PREFIX/conf/httpd.conf" && \
+ ln -s $HTTPD_PREFIX/bin/httpd /usr/bin/httpd
+
+STOPSIGNAL SIGWINCH
+COPY httpd-foreground /usr/local/bin
+EXPOSE 80
+CMD ["httpd-foreground"]
\ No newline at end of file
diff --git a/httpd/2.4.62/24.03-lts/httpd-foreground b/httpd/2.4.62/24.03-lts/httpd-foreground
new file mode 100644
index 00000000..b76f4b6c
--- /dev/null
+++ b/httpd/2.4.62/24.03-lts/httpd-foreground
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+#Apache gets grumpy about PID files pre-existing
+rm -f /usr/local/apache2/logs/httpd.pid
+
+exec httpd -DFOREGROUND "$@"
diff --git a/httpd/meta.yml b/httpd/meta.yml
index 5b77d050..d876dd49 100644
--- a/httpd/meta.yml
+++ b/httpd/meta.yml
@@ -2,3 +2,6 @@
path: 2.4.51/22.03-lts/Dockerfile
2.4.58-oe2203sp3:
path: 2.4.58/22.03-lts-sp3/Dockerfile
+
+2.4.62-oe2403lts:
+ path: httpd/2.4.62/24.03-lts/Dockerfile
\ No newline at end of file
--
Gitee
From 024d7812ab196b703ac65091835a895d55d81ecc Mon Sep 17 00:00:00 2001
From: openeuler_bot <673672685@qq.com>
Date: Tue, 15 Oct 2024 02:15:05 +0000
Subject: [PATCH 2/5] 22.03-lts-sp3 update httpd to 2.4.62
---
httpd/2.4.62/22.03-lts-sp3/Dockerfile | 43 +++++++++++++++++++++
httpd/2.4.62/22.03-lts-sp3/httpd-foreground | 7 ++++
httpd/meta.yml | 4 +-
3 files changed, 53 insertions(+), 1 deletion(-)
create mode 100644 httpd/2.4.62/22.03-lts-sp3/Dockerfile
create mode 100644 httpd/2.4.62/22.03-lts-sp3/httpd-foreground
diff --git a/httpd/2.4.62/22.03-lts-sp3/Dockerfile b/httpd/2.4.62/22.03-lts-sp3/Dockerfile
new file mode 100644
index 00000000..4cda7f14
--- /dev/null
+++ b/httpd/2.4.62/22.03-lts-sp3/Dockerfile
@@ -0,0 +1,43 @@
+ARG BASE=openeuler/openeuler:22.03-lts-sp3
+FROM ${BASE}
+
+ARG VERSION=2.4.62
+ENV HTTPD_PREFIX /usr/local/apache2
+WORKDIR ${HTTPD_PREFIX}
+
+RUN yum install -y autoconf make gcc apr apr-devel apr-util-devel pcre-devel && \
+ curl -fSL --output httpd.tar.gz https://archive.apache.org/dist/httpd/httpd-${VERSION}.tar.gz && \
+ mkdir -p /src/httpd && tar -zvxf httpd.tar.gz -C /src/httpd --strip-components=1 && \
+ rm -f httpd.tar.gz && yum clean all
+
+RUN cd /src/httpd && \
+ ./configure --prefix=/usr/local/apache2 && \
+ make && \
+ make install && \
+ rm -rf /src/httpd
+
+RUN groupadd -r www-data && useradd -r --create-home -g www-data www-data && \
+ mkdir -p /var/www/html && \
+ mv -f $HTTPD_PREFIX/htdocs/index.html /var/www/html/ && \
+ sed -ri \
+ -e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
+ -e 's!^(\s*TransferLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*User)\s+daemon\s*$!\1 www-data!g' \
+ -e 's!^(\s*Group)\s+daemon\s*$!\1 www-data!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" \
+ "$HTTPD_PREFIX/conf/extra/httpd-ssl.conf" && \
+ sed -ri -e 's!^(\s*DocumentRoot)\s+\S+!\1 "/var/www/html"!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" && \
+ sed -i '/^DocumentRoot/a\
+ \n \
+ Options Indexes FollowSymLinks \n \
+ AllowOverride none \n \
+ Require all granted \n \
+' "$HTTPD_PREFIX/conf/httpd.conf" && \
+ ln -s $HTTPD_PREFIX/bin/httpd /usr/bin/httpd
+
+STOPSIGNAL SIGWINCH
+COPY httpd-foreground /usr/local/bin
+EXPOSE 80
+CMD ["httpd-foreground"]
\ No newline at end of file
diff --git a/httpd/2.4.62/22.03-lts-sp3/httpd-foreground b/httpd/2.4.62/22.03-lts-sp3/httpd-foreground
new file mode 100644
index 00000000..b76f4b6c
--- /dev/null
+++ b/httpd/2.4.62/22.03-lts-sp3/httpd-foreground
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+#Apache gets grumpy about PID files pre-existing
+rm -f /usr/local/apache2/logs/httpd.pid
+
+exec httpd -DFOREGROUND "$@"
diff --git a/httpd/meta.yml b/httpd/meta.yml
index d876dd49..23d68c18 100644
--- a/httpd/meta.yml
+++ b/httpd/meta.yml
@@ -4,4 +4,6 @@
path: 2.4.58/22.03-lts-sp3/Dockerfile
2.4.62-oe2403lts:
- path: httpd/2.4.62/24.03-lts/Dockerfile
\ No newline at end of file
+ path: httpd/2.4.62/24.03-lts/Dockerfile
+2.4.62-oe2203sp3:
+ path: httpd/2.4.62/22.03-lts-sp3/Dockerfile
\ No newline at end of file
--
Gitee
From 7a1ff04ed7f56e13fd7ed65ccca4839f3648a81b Mon Sep 17 00:00:00 2001
From: openeuler_bot <673672685@qq.com>
Date: Tue, 15 Oct 2024 02:15:29 +0000
Subject: [PATCH 3/5] 22.03-lts-sp4 update httpd to 2.4.62
---
httpd/2.4.62/22.03-lts-sp4/Dockerfile | 43 +++++++++++++++++++++
httpd/2.4.62/22.03-lts-sp4/httpd-foreground | 7 ++++
httpd/meta.yml | 4 +-
3 files changed, 53 insertions(+), 1 deletion(-)
create mode 100644 httpd/2.4.62/22.03-lts-sp4/Dockerfile
create mode 100644 httpd/2.4.62/22.03-lts-sp4/httpd-foreground
diff --git a/httpd/2.4.62/22.03-lts-sp4/Dockerfile b/httpd/2.4.62/22.03-lts-sp4/Dockerfile
new file mode 100644
index 00000000..2fae6e5d
--- /dev/null
+++ b/httpd/2.4.62/22.03-lts-sp4/Dockerfile
@@ -0,0 +1,43 @@
+ARG BASE=openeuler/openeuler:22.03-lts-sp4
+FROM ${BASE}
+
+ARG VERSION=2.4.62
+ENV HTTPD_PREFIX /usr/local/apache2
+WORKDIR ${HTTPD_PREFIX}
+
+RUN yum install -y autoconf make gcc apr apr-devel apr-util-devel pcre-devel && \
+ curl -fSL --output httpd.tar.gz https://archive.apache.org/dist/httpd/httpd-${VERSION}.tar.gz && \
+ mkdir -p /src/httpd && tar -zvxf httpd.tar.gz -C /src/httpd --strip-components=1 && \
+ rm -f httpd.tar.gz && yum clean all
+
+RUN cd /src/httpd && \
+ ./configure --prefix=/usr/local/apache2 && \
+ make && \
+ make install && \
+ rm -rf /src/httpd
+
+RUN groupadd -r www-data && useradd -r --create-home -g www-data www-data && \
+ mkdir -p /var/www/html && \
+ mv -f $HTTPD_PREFIX/htdocs/index.html /var/www/html/ && \
+ sed -ri \
+ -e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
+ -e 's!^(\s*TransferLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*User)\s+daemon\s*$!\1 www-data!g' \
+ -e 's!^(\s*Group)\s+daemon\s*$!\1 www-data!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" \
+ "$HTTPD_PREFIX/conf/extra/httpd-ssl.conf" && \
+ sed -ri -e 's!^(\s*DocumentRoot)\s+\S+!\1 "/var/www/html"!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" && \
+ sed -i '/^DocumentRoot/a\
+ \n \
+ Options Indexes FollowSymLinks \n \
+ AllowOverride none \n \
+ Require all granted \n \
+' "$HTTPD_PREFIX/conf/httpd.conf" && \
+ ln -s $HTTPD_PREFIX/bin/httpd /usr/bin/httpd
+
+STOPSIGNAL SIGWINCH
+COPY httpd-foreground /usr/local/bin
+EXPOSE 80
+CMD ["httpd-foreground"]
\ No newline at end of file
diff --git a/httpd/2.4.62/22.03-lts-sp4/httpd-foreground b/httpd/2.4.62/22.03-lts-sp4/httpd-foreground
new file mode 100644
index 00000000..b76f4b6c
--- /dev/null
+++ b/httpd/2.4.62/22.03-lts-sp4/httpd-foreground
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+#Apache gets grumpy about PID files pre-existing
+rm -f /usr/local/apache2/logs/httpd.pid
+
+exec httpd -DFOREGROUND "$@"
diff --git a/httpd/meta.yml b/httpd/meta.yml
index 23d68c18..7badc989 100644
--- a/httpd/meta.yml
+++ b/httpd/meta.yml
@@ -6,4 +6,6 @@
2.4.62-oe2403lts:
path: httpd/2.4.62/24.03-lts/Dockerfile
2.4.62-oe2203sp3:
- path: httpd/2.4.62/22.03-lts-sp3/Dockerfile
\ No newline at end of file
+ path: httpd/2.4.62/22.03-lts-sp3/Dockerfile
+2.4.62-oe2203sp4:
+ path: httpd/2.4.62/22.03-lts-sp4/Dockerfile
\ No newline at end of file
--
Gitee
From 6e10d0cb07a78c3857ce2fbf9a424efd48046188 Mon Sep 17 00:00:00 2001
From: openeuler_bot <673672685@qq.com>
Date: Tue, 15 Oct 2024 02:15:53 +0000
Subject: [PATCH 4/5] 22.03-lts-sp1 update httpd to 2.4.62
---
httpd/2.4.62/22.03-lts-sp1/Dockerfile | 43 +++++++++++++++++++++
httpd/2.4.62/22.03-lts-sp1/httpd-foreground | 7 ++++
httpd/meta.yml | 4 +-
3 files changed, 53 insertions(+), 1 deletion(-)
create mode 100644 httpd/2.4.62/22.03-lts-sp1/Dockerfile
create mode 100644 httpd/2.4.62/22.03-lts-sp1/httpd-foreground
diff --git a/httpd/2.4.62/22.03-lts-sp1/Dockerfile b/httpd/2.4.62/22.03-lts-sp1/Dockerfile
new file mode 100644
index 00000000..0a692759
--- /dev/null
+++ b/httpd/2.4.62/22.03-lts-sp1/Dockerfile
@@ -0,0 +1,43 @@
+ARG BASE=openeuler/openeuler:22.03-lts-sp1
+FROM ${BASE}
+
+ARG VERSION=2.4.62
+ENV HTTPD_PREFIX /usr/local/apache2
+WORKDIR ${HTTPD_PREFIX}
+
+RUN yum install -y autoconf make gcc apr apr-devel apr-util-devel pcre-devel && \
+ curl -fSL --output httpd.tar.gz https://archive.apache.org/dist/httpd/httpd-${VERSION}.tar.gz && \
+ mkdir -p /src/httpd && tar -zvxf httpd.tar.gz -C /src/httpd --strip-components=1 && \
+ rm -f httpd.tar.gz && yum clean all
+
+RUN cd /src/httpd && \
+ ./configure --prefix=/usr/local/apache2 && \
+ make && \
+ make install && \
+ rm -rf /src/httpd
+
+RUN groupadd -r www-data && useradd -r --create-home -g www-data www-data && \
+ mkdir -p /var/www/html && \
+ mv -f $HTTPD_PREFIX/htdocs/index.html /var/www/html/ && \
+ sed -ri \
+ -e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
+ -e 's!^(\s*TransferLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*User)\s+daemon\s*$!\1 www-data!g' \
+ -e 's!^(\s*Group)\s+daemon\s*$!\1 www-data!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" \
+ "$HTTPD_PREFIX/conf/extra/httpd-ssl.conf" && \
+ sed -ri -e 's!^(\s*DocumentRoot)\s+\S+!\1 "/var/www/html"!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" && \
+ sed -i '/^DocumentRoot/a\
+ \n \
+ Options Indexes FollowSymLinks \n \
+ AllowOverride none \n \
+ Require all granted \n \
+' "$HTTPD_PREFIX/conf/httpd.conf" && \
+ ln -s $HTTPD_PREFIX/bin/httpd /usr/bin/httpd
+
+STOPSIGNAL SIGWINCH
+COPY httpd-foreground /usr/local/bin
+EXPOSE 80
+CMD ["httpd-foreground"]
\ No newline at end of file
diff --git a/httpd/2.4.62/22.03-lts-sp1/httpd-foreground b/httpd/2.4.62/22.03-lts-sp1/httpd-foreground
new file mode 100644
index 00000000..b76f4b6c
--- /dev/null
+++ b/httpd/2.4.62/22.03-lts-sp1/httpd-foreground
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+#Apache gets grumpy about PID files pre-existing
+rm -f /usr/local/apache2/logs/httpd.pid
+
+exec httpd -DFOREGROUND "$@"
diff --git a/httpd/meta.yml b/httpd/meta.yml
index 7badc989..e912b646 100644
--- a/httpd/meta.yml
+++ b/httpd/meta.yml
@@ -8,4 +8,6 @@
2.4.62-oe2203sp3:
path: httpd/2.4.62/22.03-lts-sp3/Dockerfile
2.4.62-oe2203sp4:
- path: httpd/2.4.62/22.03-lts-sp4/Dockerfile
\ No newline at end of file
+ path: httpd/2.4.62/22.03-lts-sp4/Dockerfile
+2.4.62-oe2203sp1:
+ path: httpd/2.4.62/22.03-lts-sp1/Dockerfile
\ No newline at end of file
--
Gitee
From 49289887fedf522c978b6abf8743aca7e411e3bc Mon Sep 17 00:00:00 2001
From: openeuler_bot <673672685@qq.com>
Date: Tue, 15 Oct 2024 02:16:17 +0000
Subject: [PATCH 5/5] 20.03-lts-sp4 update httpd to 2.4.62
---
httpd/2.4.62/20.03-lts-sp4/Dockerfile | 43 +++++++++++++++++++++
httpd/2.4.62/20.03-lts-sp4/httpd-foreground | 7 ++++
httpd/meta.yml | 4 +-
3 files changed, 53 insertions(+), 1 deletion(-)
create mode 100644 httpd/2.4.62/20.03-lts-sp4/Dockerfile
create mode 100644 httpd/2.4.62/20.03-lts-sp4/httpd-foreground
diff --git a/httpd/2.4.62/20.03-lts-sp4/Dockerfile b/httpd/2.4.62/20.03-lts-sp4/Dockerfile
new file mode 100644
index 00000000..05711f22
--- /dev/null
+++ b/httpd/2.4.62/20.03-lts-sp4/Dockerfile
@@ -0,0 +1,43 @@
+ARG BASE=openeuler/openeuler:20.03-lts-sp4
+FROM ${BASE}
+
+ARG VERSION=2.4.62
+ENV HTTPD_PREFIX /usr/local/apache2
+WORKDIR ${HTTPD_PREFIX}
+
+RUN yum install -y autoconf make gcc apr apr-devel apr-util-devel pcre-devel && \
+ curl -fSL --output httpd.tar.gz https://archive.apache.org/dist/httpd/httpd-${VERSION}.tar.gz && \
+ mkdir -p /src/httpd && tar -zvxf httpd.tar.gz -C /src/httpd --strip-components=1 && \
+ rm -f httpd.tar.gz && yum clean all
+
+RUN cd /src/httpd && \
+ ./configure --prefix=/usr/local/apache2 && \
+ make && \
+ make install && \
+ rm -rf /src/httpd
+
+RUN groupadd -r www-data && useradd -r --create-home -g www-data www-data && \
+ mkdir -p /var/www/html && \
+ mv -f $HTTPD_PREFIX/htdocs/index.html /var/www/html/ && \
+ sed -ri \
+ -e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
+ -e 's!^(\s*TransferLog)\s+\S+!\1 /proc/self/fd/1!g' \
+ -e 's!^(\s*User)\s+daemon\s*$!\1 www-data!g' \
+ -e 's!^(\s*Group)\s+daemon\s*$!\1 www-data!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" \
+ "$HTTPD_PREFIX/conf/extra/httpd-ssl.conf" && \
+ sed -ri -e 's!^(\s*DocumentRoot)\s+\S+!\1 "/var/www/html"!g' \
+ "$HTTPD_PREFIX/conf/httpd.conf" && \
+ sed -i '/^DocumentRoot/a\
+ \n \
+ Options Indexes FollowSymLinks \n \
+ AllowOverride none \n \
+ Require all granted \n \
+' "$HTTPD_PREFIX/conf/httpd.conf" && \
+ ln -s $HTTPD_PREFIX/bin/httpd /usr/bin/httpd
+
+STOPSIGNAL SIGWINCH
+COPY httpd-foreground /usr/local/bin
+EXPOSE 80
+CMD ["httpd-foreground"]
\ No newline at end of file
diff --git a/httpd/2.4.62/20.03-lts-sp4/httpd-foreground b/httpd/2.4.62/20.03-lts-sp4/httpd-foreground
new file mode 100644
index 00000000..b76f4b6c
--- /dev/null
+++ b/httpd/2.4.62/20.03-lts-sp4/httpd-foreground
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+#Apache gets grumpy about PID files pre-existing
+rm -f /usr/local/apache2/logs/httpd.pid
+
+exec httpd -DFOREGROUND "$@"
diff --git a/httpd/meta.yml b/httpd/meta.yml
index e912b646..e860e642 100644
--- a/httpd/meta.yml
+++ b/httpd/meta.yml
@@ -10,4 +10,6 @@
2.4.62-oe2203sp4:
path: httpd/2.4.62/22.03-lts-sp4/Dockerfile
2.4.62-oe2203sp1:
- path: httpd/2.4.62/22.03-lts-sp1/Dockerfile
\ No newline at end of file
+ path: httpd/2.4.62/22.03-lts-sp1/Dockerfile
+2.4.62-oe2003sp4:
+ path: httpd/2.4.62/20.03-lts-sp4/Dockerfile
\ No newline at end of file
--
Gitee