summaryrefslogtreecommitdiff
path: root/continuous_integration/haiku_slave_setup.mdwn
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-02-14 09:36:24 +0000
committerVincent Sanders <vince@kyllikki.org>2017-02-14 09:36:24 +0000
commit90a93ee16d3374309dd36842f75a034706ce40e8 (patch)
tree768da9da87f00470b33264f44425508db79dd8a6 /continuous_integration/haiku_slave_setup.mdwn
parentb791a470cb8156fbd00b3e8a738a188b4fe997d4 (diff)
downloadnetsurf-wiki-90a93ee16d3374309dd36842f75a034706ce40e8.tar.gz
netsurf-wiki-90a93ee16d3374309dd36842f75a034706ce40e8.tar.bz2
move CI section to subdirectory
Diffstat (limited to 'continuous_integration/haiku_slave_setup.mdwn')
-rw-r--r--continuous_integration/haiku_slave_setup.mdwn83
1 files changed, 83 insertions, 0 deletions
diff --git a/continuous_integration/haiku_slave_setup.mdwn b/continuous_integration/haiku_slave_setup.mdwn
new file mode 100644
index 0000000..cde58e8
--- /dev/null
+++ b/continuous_integration/haiku_slave_setup.mdwn
@@ -0,0 +1,83 @@
+[[!meta title="Continuous Integration Haiku Slave Setup"]]
+[[!meta author="Kyllikki"]]
+[[!meta date="2014-11-21T12:14:02Z"]]
+
+
+[[!toc]] install nightly x86 GCC 2
+Hybrid (http://download.haiku-os.org/nightly-images/x86\_gcc2\_hybrid/)
+
+once installed
+
+enable sshd with
+
+`useradd sshd`
+
+default user is "user"
+
+set default password with passwd
+
+` shutdown -r`
+
+restart system
+
+install build deps (possibly some already present)
+
+`pkgman install git curl_devel libpng_devel jpeg_devel openssl_devel libiconv_devel expat_devel gperf html_parser devel:libiconv_x86 devel:libssl_x86 devel:libexpat_x86 cmd:pkg_config_x86 ccache`
+
+ssh keys
+--------
+
+create ssh keypair (accept defaults - no password)
+
+`ssh-keygen -t rsa -C "netsurf@cislave0.netsurf-browser.org"`
+
+copy /boot/home/config/settings/ssh/id\_rsa.pub from slave to jenkins
+master node and append to /home/netsurf/.ssh/authorized\_keys
+
+`scp /boot/home/config/settings/ssh/id_rsa.pub foo@ci.netsurf-browser.org:cislave3.id_rsa.pub`
+
+copy .ssh/id\_rsa.pub from master node to slave and append to
+/boot/home/config/settings/ssh/authorized\_keys
+
+`scp ci.netsurf-browser.org:.ssh/id_rsa.pub id_rsa.pub`
+`cat id_rsa.pub >> /boot/home/config/settings/ssh/authorized_keys`
+
+jenkins slave setup
+-------------------
+
+install java\_x86
+
+`pkgman install openjdk`
+
+edit shell profile /etc/profile.d/openjdk.sh
+
+`` JAVA_CONFIG=`which java-config || which java-config-x86` ``
+`` JAVA_HOME=`$JAVA_CONFIG -H` ``
+`export JAVA_HOME`
+
+create jenkins-slave.sh
+
+`#!/bin/bash`
+
+`# use gcc4 in preference to gcc2 as some libraries use c99 constructs`
+`export PATH=/system/bin/x86:$PATH`
+
+`nohup java -Djava.awt.headless=true -jar slave.jar -jnlpUrl `[`http://ci.netsurf-browser.org/jenkins/computer/cislave3/slave-agent.jnlp`](http://ci.netsurf-browser.org/jenkins/computer/cislave3/slave-agent.jnlp)` -secret 1234 >jenkins-slave.output &`
+
+copy the script to /boot/home/config/settings/boot/launch/ to make it
+start on boot
+
+system can be manually restarted with
+
+`shutdown -r`
+
+current issues
+--------------
+
+As of 24th June 2014 we have some persistant kernel crashes on the
+active CI slave. Bugs are:
+
+<https://dev.haiku-os.org/ticket/10975>
+
+<https://dev.haiku-os.org/ticket/10977>
+