Skip to main content

Odootools Docker

Integrate itself into odootools to generate a Dockerfile that can completely configure a base Docker Image.

The Dockerfile is built by generating a context from certain configuration.

The context itself is simply a JSON serialized text that can be obtained from provided utilities or anywhere that can output a JSON to stdout.

When the context is ready, it can be passed to the render function that will load all required templates to generate the Dockerfile.

Here's a simple example to build an Odoo15 image.

odootools docker context -v 15 | odootools docker render

Here's an example adding whtmltopdf utilities:

odootools docker context -v 15 \
| odootools docker wkhtmltopdf \
| odootools docker render

Working with odootools Docker

Odootools docker is a bit more than just a script to build docker images. It can be extended by defining your own templates that can get loaded based on the provided context.

The external templates can be provided in the context through the key template_dirs.

Then the steps list can be used to add/remove steps in the context. Those are the main templates that will get loaded by the Dockerfile renderer in the provided order.

For example:

{
  "template_dirs": "/custom/templates",
  "steps": [
    "a",
    "b",
    "c",
  ]
}

Will lookup for the template name a.jinja, b.jinja, c.jinja from /custom/templates first, then from the installed package odootools_docker.

It's possible to completely overwrite the way the context is rendered.

Metadata

Release files for odootools-docker 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for odootools-docker 0.1.0
File Size Uploaded Provenance Actions
odootools_docker-0.1.0.tar.gz 10.0 kB Without provenance Details for odootools_docker-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for odootools-docker 0.1.0
File Interpreter ABI Platform Actions
odootools_docker-0.1.0-py3-none-any.whl Python 3 none any Details for odootools_docker-0.1.0-py3-none-any.whl

Total release size: 22.5 kB

Release files / odootools_docker-0.1.0.tar.gz

Download URL odootools_docker-0.1.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c968f02b1dda7d3e06ddc3e09ce6baa63a86e80ec1d8961a4483b618bcb72df9
BLAKE2b-256 checksum
How to use checksums
95a13318e6148696d61a9b08f5d51be06efc4c66675e35927b45c652609ded18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / odootools_docker-0.1.0-py3-none-any.whl

Download URL odootools_docker-0.1.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a576c78fda69180db185dfc4f324632b8428c13841fabae5c744ec1115f4cad
BLAKE2b-256 checksum
How to use checksums
da2f929fd07a047193c2b68e407c3bb4bef1daf774fad1c7fcae27e7cff9f980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for odootools-docker 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page