Buildbot:LXC: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
Abma (talk | contribs)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
https://springrts.com/mantis/view.php?id=5294
https://springrts.com/mantis/view.php?id=5294


== Create containers ==
https://github.com/spring/spring-lxc
<pre>
== Setup the Host System for lxc ==
lxc launch ubuntu:x buildslave-x64
(atm debian 10 / buster is used)
lxc launch ubuntu:x/i386 buildslave-i386
</pre>


== Shell inside container ==
  apt install lxc wine-binfmt
<pre>
 
lxc exec buildslave-x64 /bin/bash
/etc/lxc/default.conf
</pre>
 
  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


== Install requirements ==
== Setup buildslaves ==
=== Create containers ===


<pre>
  lxc-create -t download -n buildslave-x64 -- --no-validate -d debian -r bullseye -a amd64
apt update
  lxc-create -t download -n buildslave-win64 -- --no-validate -d debian -r bullseye -a amd64
apt install g++ make cmake p7zip-full ninja-build
apt install libxmu-dev libxi-dev default-jre default-jdk \
        libcurl4-gnutls-dev libssl-dev libopenal-dev libvorbis-dev \
        libogg-dev libsdl2-dev libfreetype6-dev libfontconfig1-dev


# needed for building libILU.so in DevIL, which isn't really needed
=== Configure Buildslaves ===
apt install freeglut3-dev


# required by spring, not actually used in DevIL
git clone https://github.com/spring/spring-lxc
apt install libgif-dev
cd spring-lxc/scripts
</pre>
./setup-buildslaves.sh


<pre>
== Shell inside container ==
git clone https://github.com/spring/spring
spring/tools/scripts/make_static_libs.sh
</pre>


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