Tool to automate running commands in docker.
Project description
Moby is a tool to automate running scripts in a docker container. This can be used to run tests or other stuff that depend on binaries or other stuff you don’t want to install.
Usage
Moby assumes there is a Dockerfile in the current directory. Currently there is no way to configure otherwise. So there should be a Dockerfile.
Create a file called moby.yml, this is the configuration file moby will search for. Example:
envlist: [test, build]
test:
before:
push:
- tests
- tox.ini
run:
- apt-get install -y tox
run:
- tox
build:
run:
- ./build.sh
after:
pull:
- dist
Then run moby.
When the example is ran, moby builds and launches the container from the Dockerfile. The test environment is ran first. The tests directory and the tox.ini file are pushed to the running container (to the working dir). Then apt-get install -y tox is ran. Lastly, tox is executed. Then the build environment is ran. ./build.sh is executed and the dist directory is downloaded from the container to the current directory. After all this, the container is shut down.
Configuration reference
after
An environment can have an after entry. This entry is considered an environment that is ran after the environment is ran.
before
An environment can have an after entry. This entry is considered an environment that is ran before the environment is ran.
envlist
envlist is a required entry, it states which environments are to be run.
environment
An environment is created at the root with an arbitrary name. An environment only requires a run entry.
push
An environment can have a push entry. This states which files to push to the container.
pull
An environment can have a pull entry. This states which files to pull from the container.
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
File details
Details for the file moby-0.0.2.tar.gz
.
File metadata
- Download URL: moby-0.0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4352bf44350928f967af84e94d2e9974d0f856c4d18240ffbcfea19a7ab59db2 |
|
MD5 | f90a75cf91ccb69c155ee9bd5a8f3d82 |
|
BLAKE2b-256 | a1767ccfd5833b9993dd36b4b71c8aa94a8928309e5a2876ebd3d7836dfaafcc |
File details
Details for the file moby-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: moby-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23fa7440752de625781e51b8d93a1f0dbd3a53c456abea1780e33e55bf89e693 |
|
MD5 | f0dfab8c810e771b5447229940a7c460 |
|
BLAKE2b-256 | 98294510a8b88388f34a261739a86a30261ca366891175a39977436f573de478 |