Giter Club home page Giter Club logo

docker-jenkins-nginx's Introduction

Jenkins-Nginx

Docker build for running a jenkins server behind nginx (w/ google oAuth as authentication) docker-in-docker is available so Jenkins can launch dockerized builds

Container setup

Supervisor

The docker container will run the supervisor daemon on startup (through /scripts/start.sh). Supervisor will start all processes as defined in ./conf/supervisor, which includes jenkins, nginx and docker

Nginx variables

The nginx variables are dynamically populated upon container startup. All available environment variables passed to the docker container with the prefix NGINX_ will be available inside the nginx server configuration. These allow the nginx configuration to be dynamically populated at run time, so proxy endpoints for example can be modified dynamically. See run example below for how to pass an env file on run time.

Nginx Configuration

See the nginx config readme for more details

Managing & running containers

Build

Inside any of the subcontainers, run

docker build -t jenkins-nginx ./

where -t is the tag name we give the container

Run

To enable DIND, we need to run the container in privileged mode. To run the container, execute

docker run --privileged --dns 8.8.8.8 -d -p 80:80 -p 443:443 -v ~/jenkins_home:/var/jenkins_home --env-file ~/.jenkins_env --name jenkins-nginx jenkins-nginx

  • -p here is binding to the usual 80/443 ports
  • -v param maps internal jenkins_home volume to a folder on host.
  • --env-file sources the environment variables from the provided file

docker-jenkins-nginx's People

Watchers

 avatar  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.