Skip to content

A generic service provisioner, that uses Dockerfiles. Compatible with the heroku provider API.

Notifications You must be signed in to change notification settings

rizplate/docker-service-provisioner

 
 

Repository files navigation

docker-service-provisioner

This is a regular Django app and you can follow the standard way to bootstrap it:

  • python manage.py syncdb --all
  • python manage.py migrate --fake
  • python manage.py runserver

Build docker images

First, go to the admin panel and create a service and a service plan, e.g. the pre-shipped redis service

export DOCKER_PROVISION_URL=<url to django, e.g. http://10.0.0.1:8000/>
export DOCKER_IMAGE_SERVER=<url to docker image server, e.g. http://10.0.0.2:8000/>
python manage.py build_docker_images

You have to run docker on a TCP socket, remember it must be on a private network or everyone can play around with it! E.g. docker -d -H tcp://0.0.0.0:12345

Testing the services with Kensa:

gem install kensa
kensa test provision # Needs to be inside the service dir, like docker_service_redis

About

A generic service provisioner, that uses Dockerfiles. Compatible with the heroku provider API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%