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 0000000000000000000000000000000000000000..63a92ff3978f9518dccf738ebc32c54829eaab18 --- /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 0000000000000000000000000000000000000000..f50a3c7452dce18fa77175e13f25aca8e26aa099 --- /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 0000000000000000000000000000000000000000..c396dd5e6c846830787d4b881227a07ae2e94afe --- /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. diff --git a/httpd/meta.yml b/httpd/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..4f07e134259189b74719fd10283a14630c4a5b1a --- /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