Docker Compose and K8s manifests to (MiCADO) ADT
Translate a single or multi-part YAML file containing Kubernetes manifests or a Docker compose into a MiCADO ADT.
Requirements
Python >= 3.6clickruamel.yaml- Kompose >= 1.31.x
Usage
Install compose binary:
curl -L https://github.com/kubernetes/kompose/releases/download/v1.31.2/kompose-linux-amd64 -o kompose
chmod +x kompose
sudo mv ./kompose /usr/local/bin/kompose
Clone the repository:
git clone <repository> dockubeadt
cd dockubeadt
Install and run dockubeadt with pip:
pip3 install .
dockubeadt PATH/TO/FILENAME.YAML
Or skip the install and simply:
python3 -m dockubeadt PATH/TO/FILENAME.YAML
Generated output file will be saved to your current directory as adt-FILENAME.YAML
Things to note(Docker Compose)
- All the volume mounts in docker compose are by default converted to 'hostPath' volume mounts in MiCADO ADT
- Use the
restartproperty in docker compose to manage the container restarts. The values can bealways,on-failureornone. - Use the long port syntax in docker-compose for services that needs to be exposed externally using a domain name or public IP. A sample of long port syntax is given below.
ports:
- target: 8080
published:8080
protocol: tcp
mode: host
Docker Compose Variables
The variables in docker compose file needs to be in these form:
- TEST_MESSAGE={ get_input:TEST_MESSAGE }
TEST_MESSAGE: '{ get_input:TEST_MESSAGE }'
command: 'python3 start.py {get_input:DB_MODEL_}'
Roadmap
- Support appending translated nodes to an existing ADT
Metadata
Release files for dockubeadt 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dockubeadt-0.3.4.tar.gz | 12.7 kB | Without provenance | Details for dockubeadt-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dockubeadt-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for dockubeadt-0.3.4-py3-none-any.whl |
Total release size: 25.7 kB
Release files / dockubeadt-0.3.4.tar.gz
| Download URL | dockubeadt-0.3.4.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d41941f1037550ff14f991c6f4ff594392aa46da813ba427087908bdff3e238
|
|
BLAKE2b-256 checksum How to use checksums |
1fbfe483a9ed414419684ca557548f8fb22bb98727cc3c10fe24d788c4eb63a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / dockubeadt-0.3.4-py3-none-any.whl
| Download URL | dockubeadt-0.3.4-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcb2b2989ec840eb321d4c9016ed4f0cf5da7d5b4f59f5c46fc0b4b19fcb651d
|
|
BLAKE2b-256 checksum How to use checksums |
029cdbd0551e1827536ee77a906dea1e926e42f6c41d96d00aad1b20eb96bbb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for dockubeadt 0.3.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.