Skip to main content

Stowaway gives simple docker image deployment through vagrant provisioned machines.

Uses vagrant-aws to deploy to AWS.

Application Management

In addition to deploying docker images stowaway provides services for managing applications.

Services used for application management:

  • Redis for routing state

  • Hipache for load balancing http services

Requirements

  • fabric

  • python-vagrant

  • micromodels-ng

  • microcollections

Commands

Install:

pip install stowaway

Create a new cluster:

#create a directory to hold your cluster's state and config
mkdir mydockercluster && cd mydockercluster

#installs a local docker registry
stowaway install_local_registry

#will ask configuration questions, be sure to configure your security group
stowaway embark

#allows for multi-node web app scaling
stowaway install_app_mgmt

Adding and managing apps in the cluster:

#in some directory: docker build -t myapp .
#upload the image and register the app
stowaway upload_image:<app image>
stowaway add_app:<name>,<app image>
#configure app environ
stowaway app_config:<name>,KEY1=VALUE1,KEY2=VALUE2
stowaway app_remove_config:<name>,KEY1,KEY2
#num=-1 to descale
stowaway app_scale:<name>[,<num=1>,<process>]
stowaway app_add_domain:<name>,<domain>

Shell into your app:

stowaway appshell:<name>

More Commands

Upload and run a docker image:

stowaway upload_image:myapplication
stowaway run_image:myapplication

See what makes up your cluster:

stowaway list_instances
stowaway list_nodes

Install and configure application management:

#for cluster creation
stowaway install_app_mgmt

#or do it manually:
stowaway build_base
stowaway upload_image:sys/redis
stowaway upload_image:sys/hipache
stowaway run_image:sys/redis,PASSWORD=r4nd0m
stowaway run_image:sys/hipache,ports=80:80,REDIS_URI=redis://:r4nd0m@ip/0
stowaway register_balancer:<hipache path>,<redis uri>[,<name>]

Metadata

Release files for stowaway 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stowaway 0.0.5
File Size Uploaded Provenance
stowaway-0.0.5.tar.gz 21.1 kB Without provenance Details

Release files / stowaway-0.0.5.tar.gz

Download URL stowaway-0.0.5.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
684f9065d28e15decf111761961437b2243fc787518697396fc18362b8465f9c
BLAKE2b-256 checksum
How to use checksums
44193c658504683f10ca4eb7c6e27ab5bf276e0a3aac804bf2c19389800f1462
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for stowaway 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page