You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Peter Kovacs <pe...@apache.org> on 2021/11/13 09:24:20 UTC

[Infra as code] A docker build environment for AOO

Hello all,


I have created a dockerfile that creates an Image to build AOO on.

Recently Arrigo tried it, and it did work for him too. I would like to 
query where you think it would be a good place to put this?

The dockerfile depends on centos7 image, with Java 1.8 and an outdated 
ant. So probably small fixes are needed.

I would maybe add a mwiki page next to our build guides, and have that 
explored there. Is this fine or someone has a better idea?


All the best

Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [Infra as code] A docker build environment for AOO

Posted by Arrigo Marchiori <ar...@yahoo.it.INVALID>.
Hello Carl, All,

On Sat, Nov 13, 2021 at 11:26:07AM -0500, Carl Marcum wrote:

> Hi Peter,
> 
> On 11/13/21 9:47 AM, Arrigo Marchiori wrote:
> > Hello Peter, All,
> > 
> > On Sat, Nov 13, 2021 at 10:24:20AM +0100, Peter Kovacs wrote:
> > 
> > > Hello all,
> > > 
> > > I have created a dockerfile that creates an Image to build AOO on.
> > > 
> > > Recently Arrigo tried it, and it did work for him too. I would like to query
> > > where you think it would be a good place to put this?
> 
> I'd like to try it also!
> > IMHO we could put it on the SVN repository together with the build
> > scripts.
> > 
> > > The dockerfile depends on centos7 image, with Java 1.8 and an outdated ant.
> > > So probably small fixes are needed.
> I don't know if it's feasible but I use SDKMAN on my systems to easily
> switch JDK's and versions of things like Java and Ant.
> 
> It can be downloaded with curl.

If we use individual VM's or containers then this should not be
needed... but it may be useful when building on ``our own'' systems.
Thank you for the pointer!

> > I suggested adding Java 1.7 because it is currently required by the
> > build scripts for 4.2.0-Dev3.
> > 
> > Hover [1] lists Java 8 as minimum requirement for all current and
> > future releases, so... should we rather fix the build script? :-P
> > 
> > > I would maybe add a mwiki page next to our build guides, and have that
> > > explored there. Is this fine or someone has a better idea?
> > +1: the building guide on our mwiki would be IMHO the best place.
> +1 for building guide.
> 
> > 
> > [1]: https://cwiki.apache.org/confluence/display/OOOUSERS/Target+System+Requirements
> > 
> > Best regards,
> Do you think this could be used on a buildbot?

I think so!

> I don't know much about the process yet but I think there is a problem with
> building on Ubuntu and running on CentOS 7.
> I'll have another thread for that but this maybe a solution.
> 
> Let me know where I can find it.

This reply is very late, so I imagine you solved the problem in the
meantime.

For the sake of the archives, I will try to cover this topic in my
talk at next FOSDEM:
https://fosdem.org/2022/schedule/event/how_to_build_openoffice_today/

I hope this helps.

Best regards,
-- 
Arrigo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [Infra as code] A docker build environment for AOO

Posted by Arrigo Marchiori <ar...@yahoo.it.INVALID>.
Dear All,

with only two months delay... ;-)

On Sat, Nov 13, 2021 at 11:26:07AM -0500, Carl Marcum wrote:

> Hi Peter,
> 
> On 11/13/21 9:47 AM, Arrigo Marchiori wrote:
> > Hello Peter, All,
> > 
> > On Sat, Nov 13, 2021 at 10:24:20AM +0100, Peter Kovacs wrote:
> > 
> > > Hello all,
> > > 
> > > I have created a dockerfile that creates an Image to build AOO on.
> > > 
> > > Recently Arrigo tried it, and it did work for him too. I would like to query
> > > where you think it would be a good place to put this?
> 
> I'd like to try it also!
> > IMHO we could put it on the SVN repository together with the build
> > scripts.
[...]
> 
> Let me know where I can find it.

It is now in our SVN repository:
https://svn.apache.org/viewvc/openoffice/devtools/build-scripts/4.2.0/containers/linux/Dockerfile

One note about its path: I made it up from the following reasoning:

 1- this file was not yet applied to any official 4.2.0-DevX revision,
 thus the new "4.2.0" directory.

 2- there is currently no "containers" or "VM's" section in the
 devtools repository, thus the "containers" directory;

 3- if I understood correctly, the Dockerfile does not indicate 32- or
 64-bits, thus the "linux" directory (instead of unxlngi6 or
 unxlngix6).

If anyone has better ideas, please let us fix it before Tuesday 18
January because I will need its path for my FOSDEM presentation :-)

Best regards,
-- 
Arrigo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [Infra as code] A docker build environment for AOO

Posted by Carl Marcum <cm...@apache.org>.
Hi Peter,

On 11/13/21 9:47 AM, Arrigo Marchiori wrote:
> Hello Peter, All,
>
> On Sat, Nov 13, 2021 at 10:24:20AM +0100, Peter Kovacs wrote:
>
>> Hello all,
>>
>> I have created a dockerfile that creates an Image to build AOO on.
>>
>> Recently Arrigo tried it, and it did work for him too. I would like to query
>> where you think it would be a good place to put this?

I'd like to try it also!
> IMHO we could put it on the SVN repository together with the build
> scripts.
>
>> The dockerfile depends on centos7 image, with Java 1.8 and an outdated ant.
>> So probably small fixes are needed.
I don't know if it's feasible but I use SDKMAN on my systems to easily 
switch JDK's and versions of things like Java and Ant.

It can be downloaded with curl.


> I suggested adding Java 1.7 because it is currently required by the
> build scripts for 4.2.0-Dev3.
>
> Hover [1] lists Java 8 as minimum requirement for all current and
> future releases, so... should we rather fix the build script? :-P
>
>> I would maybe add a mwiki page next to our build guides, and have that
>> explored there. Is this fine or someone has a better idea?
> +1: the building guide on our mwiki would be IMHO the best place.
+1 for building guide.


>
> [1]: https://cwiki.apache.org/confluence/display/OOOUSERS/Target+System+Requirements
>
> Best regards,
Do you think this could be used on a buildbot?


I don't know much about the process yet but I think there is a problem 
with building on Ubuntu and running on CentOS 7.
I'll have another thread for that but this maybe a solution.

Let me know where I can find it.

Thanks,
Carl


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [Infra as code] A docker build environment for AOO

Posted by Arrigo Marchiori <ar...@yahoo.it.INVALID>.
Hello Peter, All,

On Sat, Nov 13, 2021 at 10:24:20AM +0100, Peter Kovacs wrote:

> Hello all,
> 
> I have created a dockerfile that creates an Image to build AOO on.
> 
> Recently Arrigo tried it, and it did work for him too. I would like to query
> where you think it would be a good place to put this?

IMHO we could put it on the SVN repository together with the build
scripts.

> The dockerfile depends on centos7 image, with Java 1.8 and an outdated ant.
> So probably small fixes are needed.

I suggested adding Java 1.7 because it is currently required by the
build scripts for 4.2.0-Dev3.

Hover [1] lists Java 8 as minimum requirement for all current and
future releases, so... should we rather fix the build script? :-P

> I would maybe add a mwiki page next to our build guides, and have that
> explored there. Is this fine or someone has a better idea?

+1: the building guide on our mwiki would be IMHO the best place.

[1]: https://cwiki.apache.org/confluence/display/OOOUSERS/Target+System+Requirements

Best regards,
-- 
Arrigo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org