Giter Club home page Giter Club logo

nginx-webpack-docker's Introduction

AngularJS static application served up with Nginx 1.8 server

This S2I image builds an AngularJS static application and serves it up with nginx, providing several points to customize the nginx configuration.

This image is a combination of the rh-nginx-18 image and the rh-nodejs4 Dockerfiles from the Red Hat Software Collections Library (RHSCL).

Configuration

The application can use three directories to directly influence the nginx configuration:

Path Description
nginx-cfg/nginx.global.d/ Configuration included at the global scope
nginx-cfg/nginx.httpglobal.d/ Configuration included at http block scope
nginx-cfg/nginx.defaultserver.d/ Configuration included in the default server running on port 8080

Any file ending in .conf will be included.

Any file ending in .conf.erb will be treated as an Embedded Ruby template, and will be processed at run time (NOT at build time). If needed, OpenShift environment variables can be pulled into the nginx configuration using these erb templates.

Build Environment Variables

The following variables can be set on the BuildConfig to influence behavior:

Variable Default Description
ANGULAR_BUILD_TARGET webpack-prod Sets the build target

nginx-webpack-docker's People

Contributors

clarkhale avatar

Watchers

James Cloos avatar Daniella Freese avatar

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.