Sign inSign up

ngparty/imperial-executor

By ngparty

•Updated about 10 years ago

Simple REST api for creating/inspecting/removing services under SWARM mode

Image
0

2.7K

ngparty/imperial-executor repository overview

⁠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}"

Tag summary

Content type

Image

Digest

Size

278.7 MB

Last updated

about 10 years ago

docker pull ngparty/imperial-executor