ngParty / imperial-executor

Manage services on remote Docker Swarm mode cluster using simple API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imperial Executor

Manage services on remote Swarm mode cluster using simple API.

Why:

  • deploy app using CI to cluster
  • avoid access to whole cluster from within the CI
  • avoid listing all other services

Start

docker run -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc ngparty/imperial-executor

Create service

curl -X POST -H "Content-Type: application/json" -d '{"imageName": "nginx", "servicePort": 80}' "http://localhost:8080/services"

Inspect Service

curl "http://localhost:8080/services/${SERVICE_ID}"

Remove Service

curl -X DELETE "http://localhost:8080/services/${SERVICE_ID}"

About

Manage services on remote Docker Swarm mode cluster using simple API

License:ISC License


Languages

Language:TypeScript 100.0%