jfxs/opentofu-inventory

By jfxs

Updated about 23 hours ago

A lightweight OpenTofu Docker image based on Alpine Linux

Image
Integration & delivery
0

10K+

jfxs/opentofu-inventory repository overview

Docker OpenTofu Inventory

Software License Pipeline Status

An OpenTofu Docker image:

  • lightweight image based on Alpine Linux only #50 MB,
  • multiarch with support of amd64 and arm64,
  • non-root container user,
  • automatically updated by comparing software bill of materials (SBOM) changes,
  • image signed with Cosign,
  • a software bill of materials (SBOM) attestation added using Syft,
  • available on Docker Hub and Quay.io.

GitLab The main repository.

Docker Hub The Docker Hub registry.

Quay.io The Quay.io registry.

This image also includes a Python program state2inventory to generate an Ansible inventory from an infrastructure state.

Running OpenTofu and state2inventory

docker run -t --rm jfxs/opentofu-inventory tofu version
docker run -t --rm jfxs/opentofu-inventory state2inventory terraform --help

or

docker run -t --rm quay.io/ifxs/opentofu-inventory tofu version
docker run -t --rm quay.io/ifxs/opentofu-inventory state2inventory terraform --help

Built with

Docker latest tag is 1.12.5-001, 1.12, 1 and has:

NameVersionType
ca-certificates20260611-r0apk
curl8.21.0-r0apk
git2.54.0-r0apk
github.com/go-task/task/v3v3.52.0go-module
jq1.8.1-r0apk
state2inventory1.1.1python

Dockerhub Overview page has the details of the last published image.

Versioning

Docker tag definition:

  • the OpenTofu version used,
  • a dash
  • an increment to differentiate build with the same version starting at 001
<opentofu_version>-<increment>

Example: 1.6.0-003

Signature and attestation

Cosign public key:

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----

The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub.

To verify an image:

cosign verify --key cosign.pub $IMAGE_URI

To verify and get the software bill of materials (SBOM) attestation:

cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'

Authors

License

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.

Tag summary

Content type

Image

Digest

sha256:6a40a42ec

Size

75.3 MB

Last updated

about 23 hours ago

docker pull jfxs/opentofu-inventory