Docker-compose package manager
Project description
Description
Still very much in alpha. But a package manager similar to that of helm but for docker-compose applications.
Handles sub-applications and values.yaml files with templates similar to that used for kubernetes.yaml files.
To start you need three files (see examples here: https://github.com/sam-technesci/composer/tree/main/examples):
app.yaml
template.yaml
values.yaml
The templating language used is Jinja2 and you substitute variables from your values.yaml(s) into the template.
Quick install
cd examples/basic_application && composer install
See the README.md at examples/basic_application/README.md
for a walk-through.
Defaults to using values.yaml in the same directory.
To view your template before installing it you can do composer template
or you can save a template with composer template > docker-compose.yaml
For more commands do: composer --help
Installation
Install python39 and pip3.
Then do:
pip3 install --upgrade docker-composition
.deb Creation
Install
sudo apt-get install python3-stdeb
Project setup
Using hatch as a tool to manage package: https://hatch.pypa.io/latest/intro/
hatch new composition
Publishing
Ensured the pyproject.toml
looked like this:
[build-system]
requires = [
"hatchling>=1.7.0",
]
build-backend = "hatchling.build"
[project]
name = "composition"
description = "Docker-compose package manager"
readme = "README.md"
license = ""
authors = [
{ name = "sam", email = "sam@fake.com" },
]
dependencies = [
"fire",
]
dynamic = [
"version",
]
[project.scripts]
composition = "composition.composition:entrypoint"
[project.urls]
Homepage = "http://fake.com"
[tool.hatch.version]
path = "composition/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/composition",
]
sudo hatch build && sudo hatch publish
Generating requirements
pip3 install pip-tools
pip-compile requirements.in > requirements.txt
To install locally
pip3 install --upgrade docker-composition
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 docker_composition-0.0.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b83693d4391c975df1b09c0d54d4712656bb0e7fe17ee07d20c4fa8d0027e5c9 |
|
MD5 | 187c61aa47b99bd8f1df611a9dd552c5 |
|
BLAKE2b-256 | 495f8539855b47ad19b676960d006d6802cda30dc7f465ef5baaf40b0ae139ec |
Hashes for docker_composition-0.0.28-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec88ebddee7b20ee223912e03f0285a931eb7d43ea10c99feb27ce38be3e719d |
|
MD5 | b3a4f1a902c023bdfe3b2bb15809aa53 |
|
BLAKE2b-256 | 51c52ea97426ce08157e76655d1977051f386385d1e5a0fec524ed8aa8a98c87 |