Project

Profile

Help

Issue #6047

closed

Story #5762: [Epic] CI Improvements

ansible-pulp CI builds "creates" the base molecule container images for every run

Added by mdepaulo@redhat.com over 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
CI/CD
Sprint:
Quarter:

Description

Every time ansible-pulp's CI is run, 3 container images (fedora, centos, etc) are created according to molecule/default/Dockerfile.j2. The actual roles get tested against them in each scenario. (the image is not re-built for every scenario fortunately.)

molecule_local/fedora 31
molecule_local/debian buster
molecule_local/centos 7

This takes up time, and could be optimized by building it according to a travis cronjob, and when a PR is opened that actually modifies the Dockerfile.j2. And then pushing it to quay.io.

In order to only build the image in a PR that actually modifies the Dockerfile.j2, some logic will need to be figured out. Like a tag based on the hashsum of the Dockerfile.j2 rather than just using "latest". This could be done in scripted commands if molecule cannot be configured to use a different image name. (e.g, retag molecule_local/centos:7 as quay.io/pulp/pulp-ci-molecule-centos:7-<7-digit-hash> after it is built, and push it to quay.io. And at the beginning of the run, check if the latter name exists and can be pulled, and if so, pull it and then re-tag it as the former name.)

Actions #1

Updated by mdepaulo@redhat.com over 4 years ago

  • Parent issue changed from #5769 to #5762
Actions #2

Updated by fao89 about 4 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by fao89 about 4 years ago

  • Tags CI/CD added
Actions #4

Updated by fao89 almost 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
Actions #5

Updated by pulpbot almost 4 years ago

  • Status changed from ASSIGNED to POST

Added by Fabricio Aguiar almost 4 years ago

Revision 7df851d7 | View on GitHub

Prebuilding molecule images

https://pulp.plan.io/issues/6047 closes #6047

Added by Fabricio Aguiar almost 4 years ago

Revision 7df851d7 | View on GitHub

Prebuilding molecule images

https://pulp.plan.io/issues/6047 closes #6047

Actions #6

Updated by Anonymous almost 4 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by Anonymous almost 4 years ago

Actions #8

Updated by ttereshc over 3 years ago

  • Sprint/Milestone set to 3.8.0
Actions #9

Updated by ttereshc over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF