marina
Marina is a tool for building docker images with a focus on separating compile-time dependencies from run-time dependencies in order to keep the shipped images small and secure.
Installation
pip install marina
Usage
marina -vvv build examples/shootout
App Config
name: dummy
compile:
base_image: ubuntu:14.04
commands:
- dd if=/dev/urandom of=/srv/dummy bs=50kB count=1
files:
- /srv/dummy
run:
base_image: ubuntu:14.04
Running Tests
pip install marina[testing] py.test
0.4.3 (2020-03-19)
Always try to pull images before building.
0.4.2 (2020-01-28)
Avoid blocking the main thread moar so that SIGINT works better.
0.4.1 (2020-01-28)
Avoid blocking the main thread so that SIGINT works better.
0.4.0 (2019-03-25)
Require docker >= 3.0.
0.3.0 (2017-03-10)
Update to use docker package instead of the now-defunct docker-py package.
0.2.0 (2016-10-11)
Pin to docker-py < 1.10 until a bug is fixed. See https://github.com/docker/docker-py/issues/1211
[build] The cache volume is now created as a docker volume instead of a data container. It can be controlled using docker volume commands.
[build] Properly exit with an error if there was an issue reading from the container stdout/stderr while attached.
[build] The busybox image is no longer required. The archive will be pulled directly from the build container.
0.1.1 (2016-10-07)
[build] Fix an issue when the system does not already have the busybox image installed.
0.1.0 (2016-09-14)
[build] Fix some unicode issues when running on Python 2.
0.0.9 (2016-07-25)
[build] Add another workaround for docker-py when pulling a new image. See https://github.com/docker/docker-py/issues/1134
0.0.8 (2016-07-22)
Support Python 3.
[build] Stop using an API that was removed in docker 1.12.
[build] Allow the BUILD_CONTEXT (cwd in scripts) to be writeable. Previously it was mounted readonly.
[build] Search for the ssh identity file in known paths.
[build] Add a workaround for a bug in docker-py causing the runner image to fail to build. See https://github.com/docker/docker-py/issues/1134
0.0.7 (2016-02-18)
[build] Flush stdout to keep container messages from pausing.
0.0.6 (2016-01-08)
[build] Delete any volumes associated with a container.
[build] Fix usage of ExposedPorts from runner base image.
0.0.5 (2015-08-25)
[build] Exit with an error code upon failure instead of 0.
0.0.4 (2015-08-24)
Turn off docker hostname verification to enable connections with docker-machine instances over SSL until https://github.com/docker/docker-py/issues/731 is resolved.
[build] Avoid detaching from the archive container before the tarfile has been fully written to disk.
[build] Add --skip-cleanup option for keeping images/containers/files around after the build.
0.0.3 (2014-11-19)
Support docker 1.3.x and its TLS requirements.
0.0.2 (2014-07-12)
Support --quiet for suppressing output.
[build] Add --env option for specifying credentials and other configurable build-time settings.
[build] Ensure the busybox image is around.
0.0.1 (2014-07-03)
Initial release.
First cut at “marina build” to generate a working docker container.
Metadata
Release files for marina 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| marina-0.4.3.tar.gz | 13.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| marina-0.4.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 25.5 kB
Release files / marina-0.4.3.tar.gz
| Download URL | marina-0.4.3.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
302d3ac7b30b67ff71c8020645691a99f75cc4a3e636b06b1167293f91329f5a
|
|
BLAKE2b-256 checksum How to use checksums |
abe6d433084daa1205b9f39b2b7ef9fa529d03865c7fd918ffe329415d4dbd7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
|
Release files / marina-0.4.3-py2.py3-none-any.whl
| Download URL | marina-0.4.3-py2.py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5588a03367f87616cbb6218f1fdd7e764ed518c356d348cf879884a06415c115
|
|
BLAKE2b-256 checksum How to use checksums |
d6a936a7ed4534e7fdd4698e0c79c5b52d03596e2212fc5cba03aaf73324d49d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
|