www-builds mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jun aoki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BUILDS-25) please consider providing Docker on Jenkins slaves
Date Sun, 05 Oct 2014 05:13:33 GMT

    [ https://issues.apache.org/jira/browse/BUILDS-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14159432#comment-14159432
] 

jun aoki commented on BUILDS-25:
--------------------------------

+1 I'd be excited to see this happen 

Currently, it has been painful to find where JDK is, and ambari requires certain version of
nodejs and its libraries etc to configure Ambari build on builds.a.o.
In my use case, if a docker binary is provided and docker server run on slaves, things will
be much easier.

e.g. 
I have a Dockerfile for ambari project. This has been useful for me to build ambari with different
given patches. 
https://github.com/jaoki/ambari-build-docker


{code}
sudo docker build -t ambari/build https://github.com/jaoki/ambari-build-docker/blob/master/Dockerfile
{code}

Then all required settings and libraries are all set with the one docker command!
It takes some time for the very first time but from the second time it is within milliseconds
and get the cleanest environment for Ambari builds.

[~gkesavan], Please let me know if you want me to write down more details.

> please consider providing Docker on Jenkins slaves
> --------------------------------------------------
>
>                 Key: BUILDS-25
>                 URL: https://issues.apache.org/jira/browse/BUILDS-25
>             Project: Infra Build Platform
>          Issue Type: New Feature
>          Components: Jenkins
>            Reporter: Roman Shaposhnik
>
> Docker (https://www.docker.com/) provides a very powerful set of tools around extremely
lightweight container environments. This is extremely useful in situations where builds need
to be performed in presence of certain system-level build dependencies and on different flavors
of Linux.
> With Docker, one can simply execute the following command as an entry point into a build
script:
> {noformat}
> docker run -v `pwd`:/ws $DOCKER_IMAGE bash -c 'cd /ws ; make foo'
> {noformat}
> and not require pollution of Jenkins slaves with system dependencies and installation
of new slaves. E.g. DOCKER_IMAGE=fedora would give you the latest fedora build environment.
> It would be extremely useful to provide Docker service on ASF build slaves. Please let
me know how can I help.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message