Re: Running slave in a chroot

2013-05-10 Thread felix schwitzer
That's indeed a big drawback in my approach because some of my tests 
uses system global semaphores.

So I have to rethink my approach :-(
Thanks for your hint.

Felix

On 2013-05-08 22:15, Dean Yu wrote:
When I was working at Yahoo!, and we started working with 
Hudson/Jenkins, we originally went down this path. The issue we had 
was that by running the slave inside the chroot, multiple slaves would 
be contending for the same resources and capacity. We ultimately took 
the approach of running the slave outside the chroots, and wrote a 
BuildWrapper that intercepted each process launch to launch the 
process within a designated root.


  -- Dean



--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Running slave in a chroot

2013-05-08 Thread Dean Yu
When I was working at Yahoo!, and we started working with Hudson/Jenkins, 
we originally went down this path. The issue we had was that by running the 
slave inside the chroot, multiple slaves would be contending for the same 
resources and capacity. We ultimately took the approach of running the 
slave outside the chroots, and wrote a BuildWrapper that intercepted each 
process launch to launch the process within a designated root.

  -- Dean

On Monday, April 22, 2013 11:52:53 AM UTC-7, flx wrote:
>
>  Hi Stephen
>
> Thanks for the hint, the second one looks good but I have to check this 
> with the
> admin of the buildserver.
> In the meanwhile I launch the slave via command on master. The master 
> ssh-s to the
> slave and starts the slave.jar in the chroot via a script. Seems to work 
> properly...
>  
>
> On 04/19/2013 10:42 AM, Stephen Connolly wrote:
>  
> Can you run a ssh-server in the chroot environment? or better yet, can you 
> create a user on the build slave that is always logged in within the chroot 
> environment? 
>
>  With the former you just connect to the chroot's ssh-server port. With 
> the latter you just connect as the chroot'ed user
>  
>
> On 18 April 2013 19:57, felix schwitzer >wrote:
>
>> I have a buildserver (ubuntu 12.04) and need to run a jenkins slave on 
>> that server
>> in a (s)chroot environment.
>>
>> Question: How can I set up a slave that runs directly in the 
>> chroot-environment on that
>> buildserver?
>> I mean, who can I achieve that jenkins master connects directly into the 
>> chroot?
>>
>> Background:
>> My jenkins project is a multiconfiguration project that runs on different 
>> slaves, some slaves are
>> simple linux boxes without a chroot-environment, others need the chroot. 
>> Therefore I try to
>> avoid entering into the chroot in each build step, because the job 
>> configuration becomes really
>> complex; If I enter the chroot in the build steps, I have to change into 
>> the chroot conditionally,
>> depending on the slave that builds the job.
>>
>> Thanks
>> Felix
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>  
>  -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Running slave in a chroot

2013-04-22 Thread felix schwitzer

Hi Stephen

Thanks for the hint, the second one looks good but I have to check this 
with the

admin of the buildserver.
In the meanwhile I launch the slave via command on master. The master 
ssh-s to the
slave and starts the slave.jar in the chroot via a script. Seems to work 
properly...



On 04/19/2013 10:42 AM, Stephen Connolly wrote:
Can you run a ssh-server in the chroot environment? or better yet, can 
you create a user on the build slave that is always logged in within 
the chroot environment?


With the former you just connect to the chroot's ssh-server port. With 
the latter you just connect as the chroot'ed user



On 18 April 2013 19:57, felix schwitzer > wrote:


I have a buildserver (ubuntu 12.04) and need to run a jenkins
slave on that server
in a (s)chroot environment.

Question: How can I set up a slave that runs directly in the
chroot-environment on that
buildserver?
I mean, who can I achieve that jenkins master connects directly
into the chroot?

Background:
My jenkins project is a multiconfiguration project that runs on
different slaves, some slaves are
simple linux boxes without a chroot-environment, others need the
chroot. Therefore I try to
avoid entering into the chroot in each build step, because the job
configuration becomes really
complex; If I enter the chroot in the build steps, I have to
change into the chroot conditionally,
depending on the slave that builds the job.

Thanks
Felix

-- 
You received this message because you are subscribed to the Google

Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to jenkinsci-users+unsubscr...@googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google 
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to jenkinsci-users+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.




--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Running slave in a chroot

2013-04-19 Thread Stephen Connolly
Can you run a ssh-server in the chroot environment? or better yet, can you
create a user on the build slave that is always logged in within the chroot
environment?

With the former you just connect to the chroot's ssh-server port. With the
latter you just connect as the chroot'ed user


On 18 April 2013 19:57, felix schwitzer  wrote:

> I have a buildserver (ubuntu 12.04) and need to run a jenkins slave on
> that server
> in a (s)chroot environment.
>
> Question: How can I set up a slave that runs directly in the
> chroot-environment on that
> buildserver?
> I mean, who can I achieve that jenkins master connects directly into the
> chroot?
>
> Background:
> My jenkins project is a multiconfiguration project that runs on different
> slaves, some slaves are
> simple linux boxes without a chroot-environment, others need the chroot.
> Therefore I try to
> avoid entering into the chroot in each build step, because the job
> configuration becomes really
> complex; If I enter the chroot in the build steps, I have to change into
> the chroot conditionally,
> depending on the slave that builds the job.
>
> Thanks
> Felix
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> jenkinsci-users+unsubscribe@**googlegroups.com
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Running slave in a chroot

2013-04-18 Thread felix schwitzer
I have a buildserver (ubuntu 12.04) and need to run a jenkins slave on 
that server

in a (s)chroot environment.

Question: How can I set up a slave that runs directly in the 
chroot-environment on that

buildserver?
I mean, who can I achieve that jenkins master connects directly into the 
chroot?


Background:
My jenkins project is a multiconfiguration project that runs on 
different slaves, some slaves are
simple linux boxes without a chroot-environment, others need the chroot. 
Therefore I try to
avoid entering into the chroot in each build step, because the job 
configuration becomes really
complex; If I enter the chroot in the build steps, I have to change into 
the chroot conditionally,

depending on the slave that builds the job.

Thanks
Felix

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.