1.1.6 • Published 10 years ago

ydm-api v1.1.6

Weekly downloads
4
License
ISC
Repository
github
Last release
10 years ago

ydm-api

Frontend to ydm (yet another docker manager)

Routes

POST /drops/:name

Create or replace a drop

Body should contain a JavaScript drop definition

POST /drops/:name/:action

Perform an action against a drop

e.g. an API request like POST /drops/gitlab/install is equivalent to the CLI command ydm install gitlab

Install

Requires Docker v1.1.1

Requires ydm

Clone it.

Usage

node server.js

Security

Set env var YDM_API_SECRET to require all requests to include header X-Auth-Token with that string. Use SSL

Example Supervisor Config

[program:ydm-api]
command=/home/keyvan/src/ydm-api/server.js
directory=/home/keyvan
stdout_logfile=/var/log/supervisor/%(program_name)s.log
redirect_stderr=true
autorestart=true
user=keyvan
environment=YDM_API_SECRET=secret,DOCKER_HOST=tcp://127.0.0.1:4243,YDM_API_DROPS=/home/keyvan/.ydm-api/drops,YDM_HOME=/home/keyvan/.ydm-api
1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.0.2

10 years ago

1.0.0

10 years ago