summaryrefslogtreecommitdiff
path: root/continuous_integration
diff options
context:
space:
mode:
Diffstat (limited to 'continuous_integration')
-rw-r--r--continuous_integration/freebsd_setup.mdwn75
-rw-r--r--continuous_integration/openbsd_setup.mdwn127
2 files changed, 181 insertions, 21 deletions
diff --git a/continuous_integration/freebsd_setup.mdwn b/continuous_integration/freebsd_setup.mdwn
index d2bde05..41a2731 100644
--- a/continuous_integration/freebsd_setup.mdwn
+++ b/continuous_integration/freebsd_setup.mdwn
@@ -5,6 +5,41 @@
[[!toc]]
+Manual setup of FreeBSD 11.1
+----------------------------
+
+as per 10.1
+
+login as jenkins user
+
+download slave jar
+
+ curl -o slave.jar http://ci.netsurf-browser.org/jenkins/jnlpJars/slave.jar
+
+create jenkins slave script
+
+ cat << EOF > jenkins-slave.sh
+ #!/bin/sh
+
+ PATH=$PATH:/usr/local/jdk-1.8.0/bin/
+
+ export PATH
+
+ java -Djava.awt.headless=true -jar slave.jar -jnlpUrl http://ci.netsurf-browser.org/jenkins/computer/ciworker6/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@ciworker6.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 FreeBSD 10.1
----------------------------
@@ -17,12 +52,12 @@ mouse did work but a CI slave does not need it.
enable serial console
-`echo 'console="comconsole"' >> /boot/loader.conf`
+ echo 'console="comconsole"' >> /boot/loader.conf
ensure pkg-config is replaced by the freebsd equivalent
-`pkg set -o devel/pkg-config:devel/pkgconf`
-`pkg install -f devel/pkgconf`
+ pkg set -o devel/pkg-config:devel/pkgconf
+ pkg install -f devel/pkgconf
### required packages
@@ -30,28 +65,28 @@ Ensure all ports were added in the install or mess with ports as needed
The first run of the pkg command will prompt you to install it.
-`pkg install curl`
+ pkg install curl
is a good starting place.
Required packages:
-`git`
-`gmake`
-`bash`
-`ccache`
-`flex`
-`bison`
-`png`
-`jpeg`
-`wget `
-`gtk2`
-`openssl`
-`p5-HTML-Parser`
-`screen`
-`gperf`
-`rsync`
-`openjdk`
+ git
+ gmake
+ bash
+ ccache
+ flex
+ bison
+ png
+ jpeg
+ wget
+ gtk2
+ openssl
+ p5-HTML-Parser
+ screen
+ gperf
+ rsync
+ openjdk
### config
diff --git a/continuous_integration/openbsd_setup.mdwn b/continuous_integration/openbsd_setup.mdwn
index 6057e69..e8dd5ef 100644
--- a/continuous_integration/openbsd_setup.mdwn
+++ b/continuous_integration/openbsd_setup.mdwn
@@ -1,10 +1,135 @@
[[!meta title="Continuous Integration OpenBSD Setup"]]
[[!meta author="Kyllikki"]]
-[[!meta date="2015-05-03T07:53:24Z"]]
+[[!meta date="2017-09-18T07:53:24Z"]]
[[!toc]]
+Manual setup of OpenBSD 6.1
+---------------------------
+
+### system prep
+
+get iso from [mirror](https://www.mirrorservice.org/pub/OpenBSD/)
+
+setup VM on phoenix
+
+at the welcome prompt choose I to install
+
+default keyboard layout
+
+system name is nsciworker6 or similar
+
+use default re0 for network interface
+
+use dhcp to configure ipv4
+
+use none for ipv6
+
+do not configure any more interfaces
+
+setup root account
+
+start sshd by default
+
+disable x window system
+
+do not run default console on com0
+
+setup netsurf user
+
+do not allow root ssh login
+
+GMT timezone
+
+select wd0 as available disc
+
+select whole disc
+
+Edit the auto layout
+
+resize home to be smaller and var to be larger with the "R" command
+
+write label to disc with w and exit with x
+
+location of sets http
+
+proxy is none
+
+accept default server and directory
+
+file sets
+
+use -game61.tgz to remove game set
+
+same for xfont and xserv
+
+select done and sets will be installed
+
+select doen for location of sets
+
+reboot into new system
+
+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.8.0.121p1v0 screen-4.0.3p6 ccache-3.3.4 gcc-4.9.4p4
+ pkg_add -v rsync-3.1.2p0-iconv git check doxygen
+ pkg_add -v gperf flex bison gtk+2 png jpeg
+ pkg_add -v wget curl bash gmake p5-HTML-Parser
+
+for historical reasons link gflex to flex in /usr/bin
+
+### config
+
+Add node on jenkins master CI instance
+
+ Name cislave6
+ Description OpenBSD 6.1 worker
+ # of executors 1
+ Remote FS root /var/lib/jenkins
+ Labels amd64-unknown-openbsd6.1
+
+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
+
+create jenkins slave script
+
+ cat << EOF > jenkins-slave.sh
+ #!/bin/sh
+
+ PATH=$PATH:/usr/local/jdk-1.8.0/bin/
+
+ export PATH
+
+ java -Djava.awt.headless=true -jar slave.jar -jnlpUrl http://ci.netsurf-browser.org/jenkins/computer/ciworker6/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@ciworker6.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.7
---------------------------