summaryrefslogtreecommitdiff
path: root/continuous_integration_openbsd_setup.mdwn
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-02-04 09:41:13 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-02-04 09:41:13 +0000
commite7366bf41f68cfe07e9ea03fc4a398baecbae651 (patch)
tree5bb9c3cbe7eab7e70ff1ebd65d9de59a694762df /continuous_integration_openbsd_setup.mdwn
downloadnetsurf-wiki-e7366bf41f68cfe07e9ea03fc4a398baecbae651.tar.gz
netsurf-wiki-e7366bf41f68cfe07e9ea03fc4a398baecbae651.tar.bz2
Initial conversion from MediaWiki, 20170204
Diffstat (limited to 'continuous_integration_openbsd_setup.mdwn')
-rw-r--r--continuous_integration_openbsd_setup.mdwn127
1 files changed, 127 insertions, 0 deletions
diff --git a/continuous_integration_openbsd_setup.mdwn b/continuous_integration_openbsd_setup.mdwn
new file mode 100644
index 0000000..6057e69
--- /dev/null
+++ b/continuous_integration_openbsd_setup.mdwn
@@ -0,0 +1,127 @@
+[[!meta title="Continuous Integration OpenBSD Setup"]]
+[[!meta author="Kyllikki"]]
+[[!meta date="2015-05-03T07:53:24Z"]]
+
+
+[[!toc]]
+
+Manual setup of OpenBSD 5.7
+---------------------------
+
+### system prep
+
+- set serial console up for VM
+ <http://www.openbsd.org/faq/faq7.html#SerCon>
+
+### required packages
+
+Ensure all ports were added in the install or mess with ports as needed
+
+`pkg_add -v jdk-1.7.0.71v0 screen-4.0.3p4 ccache gcc-4.9.2p3`
+`pkg_add -v rsync-3.1.1-iconv git check doxygen `
+`pkg_add -v gperf flex bison gtk+2 png jpeg spidermonkey-1.9.2.28p1v0`
+`pkg_add -v wget curl bash gmake p5-HTML-Parser`
+
+### config
+
+Add node on jenkins master CI instance
+
+`Name       cislave6`
+`Description    OpenBSD 5.7 worker`
+`# of executors 1`
+`Remote FS root /var/lib/jenkins`
+`Labels     amd64-unknown-openbsd5.7`
+
+take note of secret for use.
+
+add jenkins user
+
+`mkdir /var/lib`
+`adduser -home /var/lib`
+
+login as jenkins user
+
+download slave jar
+
+`curl -o slave.jar `[`http://ci.netsurf-browser.org/jenkins/jnlpJars/slave.jar`](http://ci.netsurf-browser.org/jenkins/jnlpJars/slave.jar)
+
+create jenkins slave script
+
+`cat << EOF > jenkins-slave.sh`
+`#!/bin/sh`
+
+`java -Djava.awt.headless=true -jar slave.jar -jnlpUrl `[`http://ci.netsurf-browser.org/jenkins/computer/cislave6/slave-agent.jnlp`](http://ci.netsurf-browser.org/jenkins/computer/cislave6/slave-agent.jnlp)` -secret 1234`
+`EOF`
+`chmod a+x jenkins-slave.sh`
+
+create ssh keypair (accept defaults - no password)
+
+`ssh-keygen -t rsa -C "netsurf@cislave8.netsurf-browser.org"`
+
+copy .ssh/id\_rsa.pub from slave to jenkins master node and append to
+/home/netsurf/.ssh/authorized\_keys
+
+start slave daemon in screen
+
+Manual setup of OpenBSD 5.5
+---------------------------
+
+### required packages
+
+Ensure all ports were added in the install or mess with ports as needed
+
+`pkg_add -v jdk-1.7.0.21p2v0  screen-4.0.3p4 ccache gcc-4.8.2p2`
+`pkg_add -v rsync-3.1.0-iconv git check doxygen `
+`pkg_add -v gperf flex bison gtk+2 png jpeg spidermonkey-1.9.2.28p1v0`
+`pkg_add -v wget curl bash gmake p5-HTML-Parser`
+
+### config
+
+- on master jenkins use "manage nodes" to create new node. Ensure
+ "remote fs root" is set to /var/lib/jenkins add variable
+ JENKINS\_HOME set to /var/lib/jenkins
+- As superuser on slave
+ - mkdir /var/lib
+ - create jenkins user
+
+`adduser -home /var/lib`
+
+Manual setup of OpenBSD 5.4
+---------------------------
+
+### required packages
+
+Ensure all ports were added in the install or mess with ports as needed
+
+`jdk-1.7.0.21v0`
+`screen-4.0.3p3`
+`ccache`
+`gcc-4.8.1p2`
+`rsync-3.0.9p3-iconv`
+`git`
+`check`
+`doxygen`
+`gperf`
+`flex`
+`bison`
+`gtk+2`
+`png`
+`jpeg`
+`spidermonkey-1.9.2.28p0v0`
+`wget`
+`curl`
+`bash`
+`gmake`
+`p5-HTML-Parser`
+
+### config
+
+- on master jenkins use "manage nodes" to create new node. Ensure
+ "remote fs root" is set to /var/lib/jenkins add variable
+ JENKINS\_HOME set to /var/lib/jenkins
+- As superuser on slave
+ - mkdir /var/lib
+ - create jenkins user
+
+`adduser -home /var/lib`
+