Build an isolated test lab for running software in containers.
Project description
Lab Test
Free software: BSD license
Documentation: https://labtest.readthedocs.io.
Overview
Easily create a semi-public, semi-independent deployment of a version of a web site or app.
Semi-public. Allow access via a URL and user credentials. It would be available from the public internet, but not to the general public.
Semi-independent. While the code will be independent, some of the other parts of the infrastructure will be shared. The amount of sharing depends on needs.
Version. Typically this is a branch of development.
In short, it deploys branch foo onto a server that others can reach at foo.test.example.com.
Goals
Asynchronous evaluation of tickets
Quick evaluation of new ideas
Open evaluation to a greater audience
To make the best test instances, you need:
A Machine User for your VCS (for private repos)
A Test server configuration in AWS
A Dockerfile that works
A script to build the container
A script to run commands in the container
Environment configuration capability
Access to a database backup, if necessary
labtest create <branchname> [--name <name>]
labtest update <instancename>
labtest remove <instancename>
labtest stop [<instancename>]
labtest start [<instancename>]
labtest setsecret KEY=value
Two phases: Bulid phase and install phase
- Build phase
Git checkout of the repo
- App build phase:
This phase does whatever is necessary to build the application before the docker container is built
Runs build commands in a specified docker container
The container maps a specified directory on the container to the git checkout
- Container build phase
Builds using a specified Docker file and any other build params
Tags and uploads the image to repository
- Install phase
setup service
setup environment vars
other parts of the docker stuff
Specify a docker repo/image to use to build
Code is checked out on main server, mapped to docker container
Follow travis’ or shippable’s method for install and build
Features
TODO
Credits
This package was created with Cookiecutter and the lgiordani/cookiecutter-pypackage project template.
History
0.1.0 (2018-04-23)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for labtest-0.2.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a81e9eba9e07b7842e06d5acefd031fe712bfc5408c74f0338a703446a27c0f |
|
MD5 | 328669f6a476f35f177fb02889888930 |
|
BLAKE2b-256 | 159274b58539bd6c4d9884089e1dd2cf6923df6c16d2b181db2f60680debea78 |