Commit Graph

8 Commits

Author SHA1 Message Date
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
Quique Llorente a9055e351b Remove previous yum.repos.d to only used the custom ones
There are some repos that are deactivated in the hosts
but not deactivated in the docker images, like
CentOS-QEMU-EV.repo, this patch remove the old repos dir
to just use the the ones injected.

Change-Id: I15284189fda16514f7ba70b95ab551d58eca7ab1
Closes-Bug: 1779642
2018-07-03 10:15:23 +02: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 91e4555bde Detect local file repos and copy them into the image 2018-05-11 13:08:58 +12:00
Steve Baker beaa391374 quote USER just in case it is empty 2018-05-10 14:14:32 +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 cf858399d5 task to yum update in the image 2018-05-02 17:05:59 +12:00
Steve Baker e865f69b4e Basic template based Dockerfile approach 2018-04-30 17:26:58 +12:00