I think this could be done relatively easily. Starting from the
ansible-docker image, I think we would just need to add the packages
required for rpm builds. This, I believe, simply amounts to adding the
following line from the rpm-docker/Dockerfile to the
ansible-docker/Dockerfile:

RUN yum -y install asciidoc rpm-build rpm2cpio tar unzip xmlto zip rpmlint
&& yum clean all

We would then need to determine how to adjust the maven rpm build pom so
that it doesn't attempt to use docker inside of docker. That may be the
trickier part of this requiring possibly a separate profile for building
and deploying in this new unified container.

-Kyle

On Tue, Apr 18, 2017 at 9:48 AM, Otto Fowler <ottobackwa...@gmail.com>
wrote:

> I have opened METRON–857. I would like to see this workflow working again
> and updated.
>
> I think that we should have a unified build option that is basically the
> ansible image + the rpm image, where we can build and deploy the entire
> project, including the rpms.
>
> I don’t think we should require that image to be used for building all the
> time however. So we if we have a single image, we will need to be able to
> use it in both scenarios.
>
> I have not done any docker work before, so I am wondering if anyone has
> given this any thought before, or has any thoughts now?
>
> O

Reply via email to