ansible-playbook + buildah = a sweet container image
0.10.1
is a fixup release: twine refused an upload due to incorrect URL (fix: 216ff3f101494daf1bdaf4f427fe17fa108e100d)AnsibleVarsParser
class to process ansible variables, by @quietjoy, #287
ansible_bender
variables to be specified across group and host var files.podman run
and ansible run
, by @ArmaanT, #278
import_playbook
statements are now supported, by @themkat, #268
Make it possible to set entrypoint for a working_container, by @Smeds, #232
Add sphinx based docs with read-the-docs theme for ansible-bender, by @kmehant, #215
Make buildah_from_extra_args
actually work, by @TomasTomecek, #217
Python packaging was polished, by @gordonmessmer, #227, 224, #225
clean
command now works properly.-failed
suffix so
it could be inspected further. Now bender also prepends timestamp so one
image is not being overwritten over and over.--help
output.Thank you to all the contributors! You are awesome!
And special thanks to @kmehant, our Red Hat Open Source Contest 2019 student.
buildah from
call when bender creates
new build container. This can be done from CLI using
--extra-buildah-from-args
option of build command or in the playbook:
vars → ansible-bender → buildah_from_extra_args
. Thanks to @jordemort #140-V/--version
options.--squash
option or in the playbook: vars → ansible-bender → squash
. @jordemort #154--entrypoint
or vars → ansible-bender → target_image → entrypoint
,
thanks you, @slopedog #155list-builds
are now more readable, enjoy! Thanks to @kmehant
#161ANSIBLE_STDOUT_CALLBACK=debug
). @kmehant #175buildah run
command. Before bender gets to that point, it tries to create a no-op
container (buildah from --name $container $base_image && buildah run $container true
) first to verify that the container runtime is correctly set
up. @kmehant #174init
— create a template playbook in the current working directory so you
can get on-board bender's train more easily. @kmehant #184clean
— clean images from database which are no longer present on disk
@kmehant #180commit
command
which required changes in bender's code. Bender is now able to work with
both: buildah < 1.7.3
and >= 1.7.3
. CentOS 8.0 and RHEL 8.0 have buildah
< 1.7.3
.~/.cache/ab/db.json
),
the locks are now atomic thanks to @kmehant #176vars → ansible-bender
) and there is a typo in any of the variables or the variable
is not recognized, bender exits and informs you about this problem — we have
implemented this to prevent typos in the configuration so that you would not
be able to build invalid images. @kmehant #189$ python3 -m ansible_bender --help
@kmehant #160verbose_layer_names: true
to the root of the
configuration.list-builds
should no longer error out after an upgrade.buildah inspect $base_image
which
cluttered the output a lot - that's no longer the case.Thank you for contributions from @jamescassell and @alexgarel!
Error: could not get runtime: error creating runtime static files directory /var/lib/containers/storage/libpod: mkdir /var/lib/containers/storage/libpod: permission denied
. This was coming from
podman so we switched to buildah to perform checks for presence of layers.push
command, bender now picks the correct
image with metadata, instead of the last layer.vars
section, you can use it in other variables.