diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-12-21 20:10:12 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-12-21 20:10:12 +0000 |
commit | da0510b2c6a1e9a1910a4ec7b8bbb7d5feb7dfde (patch) | |
tree | fea3b6fb5b86d898a040d02635c001809d8d6402 /continuous_integration/debian_stretch_setup.mdwn | |
parent | 6f50fa1169888494aca906918be866a6de490943 (diff) | |
download | netsurf-wiki-da0510b2c6a1e9a1910a4ec7b8bbb7d5feb7dfde.tar.gz netsurf-wiki-da0510b2c6a1e9a1910a4ec7b8bbb7d5feb7dfde.tar.bz2 |
add buster ci install page
Diffstat (limited to 'continuous_integration/debian_stretch_setup.mdwn')
-rw-r--r-- | continuous_integration/debian_stretch_setup.mdwn | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/continuous_integration/debian_stretch_setup.mdwn b/continuous_integration/debian_stretch_setup.mdwn index 2333455..557472e 100644 --- a/continuous_integration/debian_stretch_setup.mdwn +++ b/continuous_integration/debian_stretch_setup.mdwn @@ -309,10 +309,10 @@ Add CI server repo to slave apt sources update repos - apt-getupdate + apt-get update install ci worker package. accept the large package list and the - unsigned package install for gcovr and ns-ci-slave + unsigned package install for ns-ci-slave apt-get install ns-ci-worker @@ -361,9 +361,9 @@ create /etc/sudoers.d/pbuilder `visudo` and alter Defaults -`Defaults env_reset,env_keep="DIST ARCH"` + Defaults env_reset,env_keep="DIST ARCH" -replace /etc/pbuilderrc +replace `/etc/pbuilderrc` # this is your configuration file for pbuilder. # the file in /usr/share/pbuilder/pbuilderrc is the default template. @@ -417,7 +417,7 @@ replace /etc/pbuilderrc The architecture is assumed to be the native one from -`dpkg --print-architecture` + dpkg --print-architecture This can be set by passing ARCH to pbuilder (useful for i386 maybe?) @@ -431,11 +431,11 @@ create pbuilder result directory and set ownership permissions become jenkins user -`su -s/bin/bash - jenkins` + su -s/bin/bash - jenkins create pbuilder base for distribution -`sudo DIST=stretch pbuilder create` + sudo DIST=stretch pbuilder create if desired additional packages and config can be made to the base with @@ -455,18 +455,18 @@ accessed by doing the following: Add CI server repo to worker apt sources -`echo "deb `[`http://ci.netsurf-browser.org/builds/debian/`](http://ci.netsurf-browser.org/builds/debian/)` stretch/amd64/" >> /etc/apt/sources.list` + echo "deb https://ci.netsurf-browser.org/builds/debian/ stretch/amd64/" >> /etc/apt/sources.list update repos -`apt-get update` + apt-get update use apt to install these packages: -`build-essential` -`gcc` -`clang` -`distcc` + build-essential + gcc + clang + distcc edit /etc/default/distcc @@ -477,7 +477,7 @@ edit /etc/default/distcc start the service -`service distcc start` + service distcc start ensure the client has hosts set to use the new worker @@ -492,13 +492,13 @@ Caution these instructions may not be up to date. The Netsurf repository has necessary updated packages in it and can be accessed by doing the following: -- Add CI server repo to slave apt sources +Add CI server repo to slave apt sources `echo "deb `[`http://ci.netsurf-browser.org/builds/debian/`](http://ci.netsurf-browser.org/builds/debian/)` stretch/amd64/" >> /etc/apt/sources.list` -- update repos +update repos -`apt-get update` + apt-get update use apt to install these packages: @@ -542,33 +542,33 @@ use apt to install these packages: - run screen - create jenkins-slave.sh -`#!/bin/bash` - -`java -Djava.awt.headless=true -jar slave.jar -jnlpUrl `[`http://ci.netsurf-browser.org/jenkins/computer/chimera/slave-agent.jnlp`](http://ci.netsurf-browser.org/jenkins/computer/chimera/slave-agent.jnlp)` -secret 0123456789abcdef01234567890abcdef` + #!/bin/bash + + java -Djava.awt.headless=true -jar slave.jar -jnlpUrl https://ci.netsurf-browser.org/jenkins/computer/chimera/slave-agent.jnlp -secret 0123456789abcdef01234567890abcdef -- - run jenkins-slave.sh + - run jenkins-slave.sh - create new screen tab - create ssh keypair (accept defaults - no password) -`ssh-keygen -t rsa -C "netsurf@cislave0.netsurf-browser.org"` + ssh-keygen -t rsa -C "netsurf@cislave0.netsurf-browser.org" - - copy .ssh/id\_rsa.pub from slave to jenkins master node and append to /home/netsurf/.ssh/authorized\_keys -`scp ci.netsurf-browser.org:.ssh/id_rsa.pub .id_rsa.pub` -`cat id_rsa.pub >> .ssh/authorized_keys` + scp ci.netsurf-browser.org:.ssh/id_rsa.pub .id_rsa.pub + cat id_rsa.pub >> .ssh/authorized_keys - - copy .ssh/id\_rsa.pub from master node to slave and append to /home/netsurf/.ssh/authorized\_keys - create reverse-ssh.sh (change tunnel port number!) -`#!/bin/sh` - -`ssh -R 22224:localhost:22 netsurf@ci.netsurf-browser.org 'bash -c "while true; do echo .; sleep 60; done"'` + #!/bin/sh + + ssh -R 22224:localhost:22 netsurf@ci.netsurf-browser.org 'bash -c "while true; do echo .; sleep 60; done" - - run reverse-ssh.sh - on the master create a shell script to use the ssh tunnel connection, thus firewalls etc are moot as long as the slave can connect to the master -`ssh netsurf@localhost -p 22223` + ssh netsurf@localhost -p 22223 |