Code Monkey home page Code Monkey logo

docker-node-deploy's Introduction

docker-node-deploy

A node.js based deployment server that allows you to deploy and manage your docker containers

Running it locally

  • Clone this repo
  • Install it's dependencies by running yarn in the root of the project
  • Build the deployment server using yarn build
  • Make sure to set environment variables in .env (example can be found in .env.example)
  • Run the deployment server using yarn start

Methods

Deploy an environment

POST http://localhost:6969/deploy

Payload:

{
  "url": "GIT_REPO_URL",
  "branch": "REPO_BRANCH",
  "envName": "ENVIRONMENT_NAME",
  "containers": [
    {
      "dir": "CONTAINER_DIRECTORY",
      "envVars": [
        {
          "key": "ENV_VAR_KEY",
          "value": "ENV_VAR_VALUE"
        }
      ]
    }
  ]
}

Returns:

{
  "success": true,
  "data": {
    "name": "ENVIRONMENT_NAME"
  }
}

Terminate an environment

POST http://localhost:6969/terminate

Payload:

{
  "envName": "ENVIRONMENT_NAME"
}

Returns:

{
  "success": true,
  "data": {
    "name": "ENVIRONMENT_NAME"
  }
}

Maintainers

License

docker-node-deploy is licensed under the MIT License

Contributing

Find something that is lacking? Fork the project and pull request!

docker-node-deploy's People

Contributors

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