Giter Club home page Giter Club logo

nginx-ex's Introduction

Nginx HTTP server and reverse proxy (nginx) S2I Sample Application

This is a very basic sample application repository that can be built and deployed on OpenShift using the Nginx HTTP server and a reverse proxy builder image.

The application serves a single static html page via nginx.

To build and run the application:

$ s2i build https://github.com/sclorg/nginx-ex centos/nginx-112-centos7 mynginximage
$ docker run -p 8080:8080 mynginximage
$ # browse to http://localhost:8080

You can also build and deploy the application on OpenShift, assuming you have a working oc command line environment connected to your cluster already:

$ oc new-app centos/nginx-112-centos7~https://github.com/sclorg/nginx-ex

You can also deploy the sample template for the application:

$ oc new-app -f https://raw.githubusercontent.com/sclorg/nginx-ex/master/openshift/templates/nginx.json

nginx-ex's People

Contributors

bparees avatar bysnupy avatar djbrown avatar hhorak avatar phracek avatar pkubatrh avatar pvalena avatar yselkowitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nginx-ex's Issues

template does not start a build / build an image!

oc start-build nginxhosting
The ImageStreamTag "nginx:1.12" is invalid: from: Error resolving ImageStreamTag nginx:1.12 in namespace openshift: imagestreams.image.openshift.io "nginx" not found

This seems to be caused by https://github.com/sclorg/nginx-ex/blob/staging/openshift/templates/nginx.json#L96

  • Note: This may not be a bug with the template but a bug with my clusters registry search parameters, in that it can't find the correct image to pull.

README gives bad instructions - can't pull template.

oc new-app -f https://raw.githubusercontent.com/sclorg/nginx-ex/master/openshift/templates/nginx.json
error: unable to load template file "https://raw.githubusercontent.com/sclorg/nginx-ex/master/openshift/templates/nginx.json": unable to read URL "https://raw.githubusercontent.com/sclorg/nginx-ex/master/openshift/templates/nginx.json", server reported 404 Not Found, status code=404
error: no match for "https://raw.githubusercontent.com/sclorg/nginx-ex/master/openshift/templates/nginx.json"

Should be:

https://raw.githubusercontent.com/sclorg/nginx-ex/master/openshift/templates/nginx.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.