Skip to content

A python package to create poolsof docker containers, and execute commands on them.

License

Notifications You must be signed in to change notification settings

mie00/dockerpool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pool

A python package to create poolsof docker containers, and execute commands on them.

Example

from dockerpool import Pool
with Pools() as pools:
    pool_key = pools.create('python:2.7')
    pool = pools.get(pool_key)
    # the next two statements work instantaneously
    container = pool.get()
    container.execute('''python -c 'print "Hello World"' ''') # Hello World

Installation

until now :)

git clone https://github.com/mie00/dockerpool

TODO

  • Restful API.
  • Python client
  • Integration with docker swarm.
  • Falure handling.
  • Packaging.
  • Separation of stdin, stdout for execute method of a container.
  • Retrieval of the return code of a process in exec.
  • Better threading in the code.
  • Raising custom exception.
  • Resource management.
  • Better control over the number of containers in a pool.
  • Dynamic port binding for the containers in the pool.

License

This package is licensed under GPL

Copyright © 2016 Mohamed Elawadi

About

A python package to create poolsof docker containers, and execute commands on them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages