Buildbot:LXC: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
No edit summary
Abma (talk | contribs)
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:


https://github.com/spring/spring-lxc
https://github.com/spring/spring-lxc
== Setup the Host System for lxc ==
(atm debian 10 / buster is used)


== Setup buildslaves ==
  apt install lxc wine-binfmt
=== Create containers ===


lxc-create -t download -n buildslave-x64  --  -d ubuntu -r xenial -a amd64
/etc/lxc/default.conf
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


  lxc.net.0.type = veth
  lxc.net.0.link = lxcbr0
  lxc.net.0.flags = up
  lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
  lxc.apparmor.profile = generated
  lxc.apparmor.allow_nesting = 1


experimental:
== Setup buildslaves ==
 
=== Create containers ===
lxc launch images:debian/9 buildslave-debian-x64


  lxc-create -t download -n buildslave-x64 -- --no-validate -d debian -r bullseye -a amd64
  lxc-create -t download -n buildslave-win64 -- --no-validate -d debian -r bullseye -a amd64


=== Configure Buildslaves ===
=== Configure Buildslaves ===
Line 21: Line 27:
  cd spring-lxc/scripts
  cd spring-lxc/scripts
  ./setup-buildslaves.sh
  ./setup-buildslaves.sh


== Shell inside container ==
== Shell inside container ==


  lxc exec buildslave-x64 /bin/bash
  lxc-attach buildslave-x64 /bin/bash


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

Latest revision as of 00:40, 20 December 2020

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

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

Setup the Host System for lxc

(atm debian 10 / buster is used)

 apt install lxc wine-binfmt

/etc/lxc/default.conf

  lxc.net.0.type = veth
  lxc.net.0.link = lxcbr0
  lxc.net.0.flags = up
  lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
  lxc.apparmor.profile = generated
  lxc.apparmor.allow_nesting = 1

Setup buildslaves

Create containers

 lxc-create -t download -n buildslave-x64 -- --no-validate -d debian -r bullseye -a amd64
 lxc-create -t download -n buildslave-win64 -- --no-validate -d debian -r bullseye -a amd64

Configure Buildslaves

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

Shell inside container

lxc-attach buildslave-x64 /bin/bash