[kolla] How can I change package version when building the image?
mark at stackhpc.com
Fri Jun 28 08:13:10 UTC 2019
On Fri, 28 Jun 2019 at 02:21, Eddie Yen <missile0407 at gmail.com> wrote:
> Hi Jason, thanks for your quick reply.
> I summarized my understanding, correct me if wrong.
> Only I have to do is change the prometheus task files to use stein version's images inside kolla-ansible, then edit the launch command inside templates to stein release.
You should use globals.yml to set any variables you wish to override.
In your case:
> Jason Anderson <jasonanderson at uchicago.edu> 於 2019年6月28日 週五 上午8:53寫道：
>> Hi Eddie,
>> On 6/27/19 7:32 PM, Eddie Yen wrote:
>> I'm using stable/rocky from git now, but I want to build the prometheus images with latest version since there're few exporters that too previous that can't use most Grafana dashboards in default.
>> I already know I have to edit templates in kolla-ansible since the newer exporters has using the different launch commands. But Idk how to set the version because the document didn't say how to override the Dockerfile. Is that OK to change package version inside Dockerfile?
>> You can set the "prometheus_tag" variable to point to a different tag. It defaults to the value of "openstack_release", which in your case is probably "rocky". You can set it to "stein" to pull in Stein images for Prometheus, without affecting the versions of other components.
>> If you need to custom-build your container images, rather than using the ones pre-built and hosted on Docker Hub, then a different approach might be necessary.
>> Many thanks,
More information about the openstack-discuss