GithubHelp home page GithubHelp logo

guoyu07 / docker-lvs-nginx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apergos/docker-lvs-nginx

0.0 0.0 0.0 160 KB

testing an nginx proxy/content + lvs setup in docker

License: GNU General Public License v2.0

Shell 53.24% HTML 6.73% Python 40.03%

docker-lvs-nginx's Introduction

docker-lvs-nginx

testing an nginx proxy/content + lvs setup in docker

Once again I'm putting my docker testbed craphere so that if my laptop dies I have a backup; plus it's entertaining. Who in their right mind would run a baby lvs redirector in a docker container?

Requirements:

Be root for everything, many of these steps need privileges. login root:testing for all containers as usual.

I've only tested on docker 0.9, docker server running fedora 20.

If you want to play, run things as root. Here's the steps in order:

Build all images and containers if needed and start them up: start-containers.sh (better have built my deb base container first)

Create the nginx certs and stick em on the containers setup-certs.sh push-out-certs.sh

Put out html and conf files for the nginx servers, restart them: setup-nginx.sh

Set up all the /etc/hosts entries, lvs entries, arp off on the nginx proxy, etc: configure.sh

Don't really need these once the entries are in your /etc/hosts but anyways... ip-of-instance.sh ssh-to-instance.sh

Done with them for now? stop-containers.sh You'll have to rerun configure.sh when you start them back up again in order to get all the ip settings back in place

Done with them for good? delete-containers.sh


See TODO.txt for stuff I'm not likely to do any time soon.

All the stuff that edits /etc/hosts on server or container is extremely iffy, double check yourself that there aren't duplicate or extra entries left over.

docker-lvs-nginx's People

Contributors

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