Git Product home page Git Product logo

docker-adagios-local's Introduction

docker-adagios-local

Clone this repo and build the Docker image for docker-adagios-local

mkdir ~/code
cd ~/code
git clone https://github.com/gardart/docker-adagios-local
cd docker-adagios-local
docker build -t docker-adagios .

Download the newest Adagios/Pynag code from github

cd ~/code
git clone git://github.com/pynag/pynag.git
git clone git://github.com/opinkerfi/adagios.git

Make some changes in pynag or Adagios in ~/code

Now run your code with Nagios and Docker

docker run -it -p 8080:80 -p 8000:8000 -v ~/code/adagios:/opt/adagios -v ~/code/pynag:/opt/pynag --name adagios docker-adagios

User:nagiosadmin Password:nagiosadmin

Access Adagios http://localhost:8080/adagios

Access Nagios http://localhost:8080/nagios

Access Adagios (using Django developement webserver) http://localhost:8000

Development

After making some code changes locally in ~/code/adagios or ~/code/pynag you can test your code by restarting the container. It will run setup scripts for both adagios and pynag and the start the web services.

docker restart adagios

To make some changes inside the container, f.eks test different version of Django, you can connect to the container:

docker exec -it adagios /bin/bash
pip uninstall django
pip install django==1.9

...and test

/usr/bin/python /opt/adagios/adagios/manage.py runserver 0.0.0.0:8000

docker-adagios-local's People

Contributors

gardart avatar

Stargazers

 avatar

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.