Buildbot:LXC: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
Abma (talk | contribs)
No edit summary
Line 5: Line 5:
== Setup buildslaves ==
== Setup buildslaves ==
=== Create containers ===
=== Create containers ===
<pre>
 
lxc launch ubuntu:x buildslave-x64
lxc-create -t download -n buildslave-x64   --  -d ubuntu -r xenial -a amd64
lxc launch ubuntu:x buildslave-win32
lxc-create -t download -n buildslave-win32 --  -d ubuntu -r xenial -a amd64
lxc launch ubuntu:x/i386 buildslave-i686
lxc-create -t download -n buildslave-i686   --  -d ubuntu -r xenial -a i386
</pre>
 


experimental:
experimental:
<pre>
 
lxc launch images:debian/9 buildslave-debian-x64
lxc launch images:debian/9 buildslave-debian-x64
</pre>
 


=== Configure Buildslaves ===
=== Configure Buildslaves ===
<pre>
git clone https://github.com/spring/spring-lxc
cd spring-lxc/scripts
./setup-buildslaves.sh
</pre>


== Shell inside container ==
git clone https://github.com/spring/spring-lxc
<pre>
cd spring-lxc/scripts
lxc exec buildslave-x64 /bin/bash
./setup-buildslaves.sh
</pre>




=LXC on debian=
== Shell inside container ==


  lxc-create -t download -n buildslave-x64   --  -d ubuntu -r xenial -a amd64
  lxc exec buildslave-x64 /bin/bash
lxc-create -t download -n buildslave-win32 --  -d ubuntu -r xenial -a amd64
lxc-create -t download -n buildslave-i686  --  -d ubuntu -r xenial -a i386


[[Category:Buildbot]]
[[Category:Buildbot]]

Revision as of 23:11, 22 October 2018

https://springrts.com/mantis/view.php?id=5294

https://github.com/spring/spring-lxc

Setup buildslaves

Create containers

lxc-create -t download -n buildslave-x64   --  -d ubuntu -r xenial -a amd64
lxc-create -t download -n buildslave-win32 --  -d ubuntu -r xenial -a amd64
lxc-create -t download -n buildslave-i686   --  -d ubuntu -r xenial -a i386


experimental:

lxc launch images:debian/9 buildslave-debian-x64


Configure Buildslaves

git clone https://github.com/spring/spring-lxc
cd spring-lxc/scripts
./setup-buildslaves.sh


Shell inside container

lxc exec buildslave-x64 /bin/bash