Skip to main content

A tool to complete TosKer application description withsuitable Docker Images

Project description

TosKeriser is a tool to complete TosKer applications with suitable Docker Images. The user can specify the software required by each component and the tool complete the specification with a suitable container to run the components.

For instance the following application has a components called server require a set of software (node>=6.2, ruby>2 and any version of wget) and Alpine as Linux distribution.

...
server:
  type: tosker.nodes.Software
  requirements:
  - host:
     node_filter:
       properties:
       - supported_sw:
         - node: 6.2.x
         - ruby: 2.x.x
         - wget: x.x.x
       - os_distribution: alpine
  ...

After run TosKeriser on this specification, it creates the component server_container and connects the server component to it. It is possible to see that the server_container has all the software required by server and has also Alpine v3.4 as Linux distribution.

...
server:
  type: tosker.nodes.Software
  requirements:
  - host:
     node_filter:
       properties:
       - supported_sw:
         - node: 6.2.x
         - ruby: 2.x.x
         - wget: x.x.x
       - os_distribution: alpine
       node: server_container
  ...

server_container:
     type: tosker.nodes.Container
     properties:
       supported_sw:
         node: 6.2.0
         ash: 1.24.2
         wget: 1.24.2
         tar: 1.24.2
         bash: 4.3.42
         ruby: 2.3.1
         httpd: 1.24.2
         npm: 3.8.9
         git: 2.8.3
         erl: '2'
         unzip: 1.24.2
       os_distribution: Alpine Linux v3.4
     artifacts:
       my_image:
         file: jekyll/jekyll:3.1.6
         type: tosker.artifacts.Image
         repository: docker_hub

More examples can be found in the data/examples folder.

Installation

In is possible to install TosKeriser by using pip:

# pip install toskeriser

The minimum Python version supported is 2.7.

Usage

toskerise FILE [COMPONENT..] [OPTIONS]
toskerise --help|-h
toskerise --version|-v

FILE
  TOSCA YAML file or a CSAR to be completed

COMPONENT
  a list of component to be completed (by default all component are considered)

OPTIONS
  --debug                              active debug mode
  -q|--quiet                           active quiet mode
  -i|--interactive                     active interactive mode
  -f|--force                           force the update of all containers
  --constraints=value                  constraint to give to DockerFinder
                                       (e.g. --constraints 'size<=100MB pulls>30 stars>10')
  --policy=top_rated|size|most_used    ordering of the images

License

MIT license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TosKeriser-0.1.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

TosKeriser-0.1.0-py2.py3-none-any.whl (16.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file TosKeriser-0.1.0.tar.gz.

File metadata

  • Download URL: TosKeriser-0.1.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TosKeriser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00990ba7e9b2dcb7682684c6a25460c43834b79aaafb44f36bfb9dfe2cfd53fc
MD5 fb00de4318fbfb3b0aaf49e67dbe4cc7
BLAKE2b-256 1765280b1c21fba56d0f6c0bfd49ae78d504b0cf0d3336c0115edb872c0ab4a4

See more details on using hashes here.

File details

Details for the file TosKeriser-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for TosKeriser-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 988d0a80b066ee7bbe04d3d3f17c98eaf6d4a5e9e36c9df6a6392698b13f24d5
MD5 3c99d095a5ec6377142fc1f3fc82fa38
BLAKE2b-256 576898307e6a4438bda6b180f0459f4a061da97e280eaa845c17c0427ad1de6e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page