From 7e76880094ec18f2e7181a4ed8f6acb53dc35316 Mon Sep 17 00:00:00 2001 From: xiezhh23 Date: Tue, 26 Dec 2023 14:43:17 +0800 Subject: [PATCH 1/2] Add openeuler/httpd docker image --- httpd/2.4.51/22.03-lts/Dockerfile | 11 +++++++++ httpd/2.4.51/22.03-lts/httpd-foreground | 7 ++++++ httpd/README.md | 32 +++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 httpd/2.4.51/22.03-lts/Dockerfile create mode 100755 httpd/2.4.51/22.03-lts/httpd-foreground create mode 100644 httpd/README.md diff --git a/httpd/2.4.51/22.03-lts/Dockerfile b/httpd/2.4.51/22.03-lts/Dockerfile new file mode 100644 index 0000000..63a92ff --- /dev/null +++ b/httpd/2.4.51/22.03-lts/Dockerfile @@ -0,0 +1,11 @@ +FROM openeuler/openeuler:22.03-lts +WORKDIR /etc/httpd +RUN yum -y update \ + && yum -y install httpd \ + && yum clean all \ + && httpd -v + +STOPSIGNAL SIGWINCH +COPY httpd-foreground /usr/local/bin +EXPOSE 80 +CMD ["httpd-foreground"] diff --git a/httpd/2.4.51/22.03-lts/httpd-foreground b/httpd/2.4.51/22.03-lts/httpd-foreground new file mode 100755 index 0000000..f50a3c7 --- /dev/null +++ b/httpd/2.4.51/22.03-lts/httpd-foreground @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +#Apache gets grumpy about PID files pre-existing +rm -f /etc/httpd/logs/httpd.pid + +exec httpd -DFOREGROUND "$@" diff --git a/httpd/README.md b/httpd/README.md new file mode 100644 index 0000000..c396dd5 --- /dev/null +++ b/httpd/README.md @@ -0,0 +1,32 @@ +#httpd + + +# Quick reference + +- The official redis docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) + +# Build reference + +Build images and push: +```shell +docker buildx build -t "openeuler/httpd:$VERSION-22.03-lts" --platform linux/amd64,linux/arm64 . --push +``` + +We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/) + +# How to use this image +## start a httpd instance +```shell +docker run --name my-httpd -d -p 80:80 openeuler/httpd:2.4.51-22.03-lts +``` + +# Supported tags and respective Dockerfile links + +- 2.4.51-22.03-lts: httpd v2.4.51, openEuler 22.03 LTS + +## Operating System +Linux/Unix, ARM64 or x86-64 architecture. -- Gitee From d9d3d8db7447c21f713b5d4b6a901f5d52635dc9 Mon Sep 17 00:00:00 2001 From: xiezhh23 Date: Tue, 26 Dec 2023 14:51:45 +0800 Subject: [PATCH 2/2] add httpd/meta.yml --- httpd/meta.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 httpd/meta.yml diff --git a/httpd/meta.yml b/httpd/meta.yml new file mode 100644 index 0000000..4f07e13 --- /dev/null +++ b/httpd/meta.yml @@ -0,0 +1,3 @@ +name: httpd +tag: 2.4.51-22.03-lts +file: 2.4.51/22.03-lts/Dockerfile -- Gitee