Commit Graph

17 Commits

Author SHA1 Message Date
Alex Schultz 012209ae34 Convert readme to rst
In order to release we need to fix some linting issues in the readme for
pypi. Let's switch it to rst to be consistent with the new standard.

Change-Id: Ifcdc3289b0a626e43f687c429d0a5fc082d13a6e
2019-04-01 09:47:22 -06:00
Dan Prince 618d3ab83c Add dev mode install playbook for source installs
The following playbook will produce a modified image with Python source
code installed via pip. To minimize dependencies within the container
we generate the sdist locally and then copy it into the resulting
container image as an sdist tarball to run pip install locally.

Useful for local ad-hoc testing of upstream patches without
having to build and RPM in those cases.

Change-Id: I93c0e86b2e421b0bcb777d536fcb0d30e0ee3b68
2018-11-05 09:33:43 -05:00
Steve Baker c9d085729f Remove compare_host_packages strategy
Now that the undercloud is containerized, there will be very few host
packages to compare to, so there is a high risk that required package
updates will be skipped.

This is a strategy inherited from container-update.py that was
intended to avoid unnecessary calls to yum update, however we now have
a better approach using the repoquery, so host package comparison is
no longer required, and probably causing some of the instances of bug

Change-Id: Iab7b9d6377494001d904bb84b058ea293d73110c
Partial-Bug: #1786764
2018-09-17 12:17:46 +00:00
Emilien Macchi a2229e738a Add Buildah support
Buildag is a tool that facilitates building OCI container images.
This patch adds support to modify and update containers built by
Buildah.
It's just making sure we can run the build command with their CLI and
also get the user from the container config.
The default remains 'docker' for backward compatibility.

Note: it push the new images with sudo to avoid permissions errors.

Change-Id: I3db1934ad826ec6433bd6aec067112e91d82e355
2018-08-03 14:40:27 -04:00
Dan Prince 7178d84867 Add rpm_install tasks
This patch adds a new rpm_install tasks which can be used
to build a new container layer from a set of local RPMs.
This is useful for building contains locally with no network
connectivity.

As part of the change the existing Yum update Dockerfile.j2 was
renamed to Dockerfile-yum.j2 to make it more specific.

Change-Id: I951c976ebb84c28cecefd2f5753a8232f46ad4aa
2018-07-17 12:17:08 -04:00
Steve Baker 65ba913781 Fix doc newline 2018-05-14 14:00:31 +12:00
Steve Baker 262e5497e0 update_repo to limit to packages in repo
Rather than updating every package, allow to limit to a single repo
2018-05-14 10:43:34 +12:00
Steve Baker 60c8e52079 rename modified_image_prefix to target_image, use set_fact for timestamp
If set_fact is not used, the lookup(pipe) is evaluated every time it is
referenced, which means potentially different timestamps being
used.
2018-05-03 15:50:31 +12:00
Sam Doran 5963894199 Streamline role
Use role defaults rather than set_fact tasks.
Remove empty placeholder files.
Add role meta info.
For variables that can't have a sane default, add precheck tasks to fail early if they are not defined.
2018-05-02 22:31:08 -04:00
Steve Baker 2d87356538 Allow tasks_from to be set as a variable
This allows the role to be driven entirely as a role name and a
variables dict, as required by our image upload customisation
interface.
2018-05-03 11:16:29 +12:00
Steve Baker cf858399d5 task to yum update in the image 2018-05-02 17:05:59 +12:00
Steve Baker cad6e42217 Rename the main task to modify_image.yaml
There will be other tasks in this role.
2018-05-02 11:08:24 +12:00
Steve Baker a51e542cd6 ... it does not 2018-05-02 10:40:53 +12:00
Steve Baker e6032cdc02 See if the markdown renderer handles word-wrapped table content 2018-05-02 10:40:07 +12:00
Steve Baker 3b6ddc9378 Populate the README.md 2018-05-02 10:36:32 +12:00
Steve Baker 0381f9f846 Stub for the README.md 2018-05-01 16:23:32 +12:00
Steve Baker 3aeb7cc78b Initial import 2018-04-29 20:58:02 -04:00