Giter Site home page Giter Site logo

devops-monitor's Introduction

DevOps Monitor

DevOps Monitor is a simple HTTP service implemented as a .NET Core Web API. It's core functionality is to restart docker containers when requested.

It is tested and working on a Digital Ocean VM running Ubuntu.

It is also working from a BitBucket pipeline build configuration.

Installation

Clone the project, then build it using either Visual Studio or the dotnet CLI. Deploy the resulting binaries to your server where your Docker containers are running. Run dotnet DevOpsMonitorApi.dll and now your service will be listening for requests.

Configuration

DevOps Monitor expects an appsettings.json file in the src directory with the following settings:

{                                                          
    "Logging": {                                           
        "LogLevel": {                                      
            "Default": "Warning"                           
        }                                                  
    },                                                     
    "AllowedHosts": "*",                                   
    "compose-file-path": "<path-to-docker-compose.yml>"
}                                                          

Endpoints

/docker GET

Prints out a message if the server is healthy.

/docker POST

Pulls specified docker images and then runs docker compose down and docker compose up using the docker-compose.yml file specified in appsettings.json.

Example Body

[
	"example/image:example-tag",
	"example/image2:example-tag2"
]

devops-monitor's People

Contributors

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