allow using fetched RPMs in `build_container_image.sh`

Description

this makes it easy to run tests against a particular build's artifacts

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Benjamin Reed September 12, 2019 at 3:44 PM

Benjamin Reed September 11, 2019 at 6:15 PM

Yes, my original patch fixes some things in fetch-build-rpms.sh but then also changes the build_container_image.sh scripts to not try to copy things out of target/rpms/....  I guess this is mostly a documentation issue, though, because it hadn't occurred to me that locally I could just do the docker build command without using the scripts, I assumed they were setting things up that might be needed/wanted by the tests. Looking closer I see they're just setting some variables for CircleCI for the most part.

Anyway, thanks for the note. I've changed it to just print a bit about running the simple "docker build" command when the fetch script finishes, rather than messing with the build_container_image.sh scripts.

Ronny Trommer September 11, 2019 at 1:56 PM

Just as information: There is already a fetch-build-rpms.sh script inside the opennms-container directory. It works for bamboo build artifacts and accepts a specific Bamboo build URL like this:

The rpms are fetched from Bamboo and dropped into the container build rpms directories for horizon, minion and sentinel. The container images can be built with the simple docker build command:

The build args have reasonable defaults and just need to be overwritten if necessary.

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

PagerDuty

Created September 10, 2019 at 3:08 AM
Updated September 17, 2019 at 1:52 PM
Resolved September 17, 2019 at 1:52 PM