From 8c5f0a95d11621091fa7215ffa93465dbc29bfc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 25 Apr 2019 09:56:18 +0200 Subject: [PATCH] add nginx example --- Nginx-S2I-Image/README.md | 5 +++++ Nginx-S2I-Image/index.html | 17 +++++++++++++++++ Nginx-S2I-Image/nginx.conf | 3 +++ Nginx-S2I-Image/response.json | 3 +++ 4 files changed, 28 insertions(+) create mode 100644 Nginx-S2I-Image/README.md create mode 100644 Nginx-S2I-Image/index.html create mode 100644 Nginx-S2I-Image/nginx.conf create mode 100644 Nginx-S2I-Image/response.json diff --git a/Nginx-S2I-Image/README.md b/Nginx-S2I-Image/README.md new file mode 100644 index 0000000..7e0f608 --- /dev/null +++ b/Nginx-S2I-Image/README.md @@ -0,0 +1,5 @@ +# Using the Nginx S2I Image + +```sh +oc new-app nginx~https://github.com/nmasse-itix/OpenShift-Examples.git --context-dir=Nginx-S2I-Image --name hello-world +``` \ No newline at end of file diff --git a/Nginx-S2I-Image/index.html b/Nginx-S2I-Image/index.html new file mode 100644 index 0000000..c2f3c72 --- /dev/null +++ b/Nginx-S2I-Image/index.html @@ -0,0 +1,17 @@ + + +
+
+ + + diff --git a/Nginx-S2I-Image/nginx.conf b/Nginx-S2I-Image/nginx.conf new file mode 100644 index 0000000..42569e7 --- /dev/null +++ b/Nginx-S2I-Image/nginx.conf @@ -0,0 +1,3 @@ +http { + keepalive_timeout 0; +} diff --git a/Nginx-S2I-Image/response.json b/Nginx-S2I-Image/response.json new file mode 100644 index 0000000..77f7741 --- /dev/null +++ b/Nginx-S2I-Image/response.json @@ -0,0 +1,3 @@ +{ + "message": "Hello, World!" +}