From b7ad10ab47280896e6569ad527008ff94e0157fe Mon Sep 17 00:00:00 2001 From: gaohechao <1159963696@qq.com> Date: Tue, 12 Oct 2021 16:59:28 +0800 Subject: [PATCH 1/2] Add Nginx on openEuler 20.03 LTS SP1 --- nginx/1.16.1/20.03-lts-sp1/Dockerfile | 6 ++++++ nginx/README.md | 30 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 nginx/1.16.1/20.03-lts-sp1/Dockerfile create mode 100644 nginx/README.md diff --git a/nginx/1.16.1/20.03-lts-sp1/Dockerfile b/nginx/1.16.1/20.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..32da610 --- /dev/null +++ b/nginx/1.16.1/20.03-lts-sp1/Dockerfile @@ -0,0 +1,6 @@ +FROM openeuler/openeuler:20.03-lts-sp1 +MAINTAINER gaohechao +RUN dnf -y update \ + && dnf -y install nginx \ + && dnf clean all +ENTRYPOINT ["nginx", "-g", "daemon off;"] diff --git a/nginx/README.md b/nginx/README.md new file mode 100644 index 0000000..a2e2d7f --- /dev/null +++ b/nginx/README.md @@ -0,0 +1,30 @@ +# Nginx + +# Quick reference + +- The official Nginx 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 + +1. Build images and push: +```shell +docker buildx build -t "openeuler/nginx:$VERSION" --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/) + +2. Run: +```shell +docker run -d openeuler/nginx:1.16.1-20.03-lts-sp1 +``` + +# Supported tags and respective Dockerfile links + +- 1.16.1-20.03-lts-sp1: nginx v1.16.1, openEuler 20.03 LTS SP1 + +## Operating System +Linux/Unix, ARM64 or x86-64 architecture. -- Gitee From af5ab1be96fed8127ba981e290b306503d4bf43a Mon Sep 17 00:00:00 2001 From: gaohechao <1159963696@qq.com> Date: Wed, 13 Oct 2021 10:36:02 +0800 Subject: [PATCH 2/2] Update Dockerfile --- nginx/1.16.1/20.03-lts-sp1/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx/1.16.1/20.03-lts-sp1/Dockerfile b/nginx/1.16.1/20.03-lts-sp1/Dockerfile index 32da610..b990ebc 100644 --- a/nginx/1.16.1/20.03-lts-sp1/Dockerfile +++ b/nginx/1.16.1/20.03-lts-sp1/Dockerfile @@ -1,6 +1,6 @@ FROM openeuler/openeuler:20.03-lts-sp1 MAINTAINER gaohechao -RUN dnf -y update \ - && dnf -y install nginx \ - && dnf clean all +RUN yum -y update \ + && yum -y install nginx \ + && yum clean all ENTRYPOINT ["nginx", "-g", "daemon off;"] -- Gitee