[postgis-tickets] [SCM] PostGIS Buildbots; Jenkins jobs and instructions for setting up winnie and debbie bots. branch master updated. 863c8e7d09f3fbdb1ff129f48392534cb88986b3

git at osgeo.org git at osgeo.org
Mon Sep 30 09:25:30 PDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS Buildbots; Jenkins jobs and instructions for setting up winnie and debbie bots.".

The branch, master has been updated
       via  863c8e7d09f3fbdb1ff129f48392534cb88986b3 (commit)
      from  5f2c48a32fa186696035408cfe3a05b0c9e2aa05 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 863c8e7d09f3fbdb1ff129f48392534cb88986b3
Author: Regina Obe <lr at pcorp.us>
Date:   Mon Sep 30 12:25:25 2019 -0400

    Updated instructions for FreeBSD 12 64/32 bit

diff --git a/freebsd/bessie32_setup.txt b/freebsd/bessie32_setup.txt
index 2720504..0681bef 100644
--- a/freebsd/bessie32_setup.txt
+++ b/freebsd/bessie32_setup.txt
@@ -1,4 +1,6 @@
-Bessie32 currently setup on winnie's virtual box - ssh port 51023
+Bessie32-12 currently setup on winnie's virtual box - ssh port 51023
+Built from: https://download.freebsd.org/ftp/releases/VM-IMAGES/12.0-RELEASE/i386/Latest/FreeBSD-12.0-RELEASE-i386.vmdk.xz(date DEC 2018)
+
 Built from: https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/i386/Latest/FreeBSD-11.1-RELEASE-i386.vmdk.xz (date July 2017)
 
 (to do admin stuff)
@@ -18,21 +20,29 @@ vi /etc/rc.conf
 
 add a lines:
 
-hostname="bessie32"
+hostname="bessie32-12"
 sshd_enable="YES"
-pw groupadd sshusers
 
 #then edit the sshd_config
 vi /etc/ssh/sshd_config and a line
-AllowGroup wheel sshusers
+AllowGroup wheel
 
 Then run:
-service sshd restart
+service sshd start
 
 To add a user user robe
-
+#install keys for each and add to wheel
 adduser robe
+su robe 
+cd ~/
+mkdir .ssh
+#install keys
+#repeat process for each user
 adduser komzpa
+adduser pramsey
+adduser strk
+adduser cvvergara
+adduser jenkins
 
 repeat for all users (make sure to add admin users to wheel group)
 
@@ -50,18 +60,21 @@ without password.
 
 #pkg install jed tcpdump
 pkg install wget git proj geos gdal json-c
-pkg install cunit libxml2 bison libxslt imagemagick
+pkg install cunit libxml2 bison libxslt #imagemagick only needed for doco
 pkg install gmake gdb subversion
-pkg install automake autoconf libtool curl 
-pkg install openjdk8
-pkg install protobuf protobuf-c #needed for building mvt
+pkg install automake autoconf libtool curl bison #needed for configure/lex
+pkg install pkgconf #needed for PostGIS 3.0 which now using pkg-config
+pkg install protobuf protobuf-c  #needed for building mvt
+pkg install sfcgal #for sfcgal will also install cgal
+
+pkg install openjdk11 #for jenkins
 
 #add following lines to /etc/fstab
 fdesc   /dev/fd         fdescfs         rw      0       0
 proc    /proc           procfs          rw      0       0
 
 
-pkg install postgresql10-server
+pkg install postgresql11-server
 
 #didn't install this yet
 #pkg install iconv
@@ -75,6 +88,7 @@ service postgresql initdb
 service postgresql start
 psql -U postgres
 create user jenkins; 
+\q
 
 pkg update #update available list
 pkg upgrade #upgrades all packages
@@ -95,9 +109,9 @@ sudo gmake installcheck PGUSER=postgres
 sudo cpan TAP::Parser::SourceHandler::pgTAP
 
 
-##upgrade to 11.2
+##upgrade to 12.1 (not yet done)
 sudo -i
-freebsd-update upgrade -r 11.2-RELEASE
+freebsd-update upgrade -r 12.1-RELEASE
 freebsd-update install
 
 #reboot
diff --git a/freebsd/bessie_setup.txt b/freebsd/bessie_setup.txt
index 0f5ee6c..572f772 100644
--- a/freebsd/bessie_setup.txt
+++ b/freebsd/bessie_setup.txt
@@ -1,10 +1,11 @@
 Bessie currently setup on winnie's virtual box - ssh port 51022
-Built from https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz (dated Jul 21st 2017)
+Built from https://download.freebsd.org/ftp/releases/VM-IMAGES/12.0-RELEASE/amd64/Latest/FreeBSD-12.0-RELEASE-amd64.vmdk.xz dated (Dec 2018)
+
 vi /etc/rc.conf
 
 add to file
 
-hostname="bessie"
+hostname="bessie12"
 sshd_enable="YES"
 
 #then edit the sshd_config
@@ -14,11 +15,20 @@ Add line
 AllowGroups wheel
 and add to AllowUsers list
 
+vi /etc/ssh/sshd_config #:g/AllowUsers/, :g/PermitRootLogin #change to yes so can configure - can change later to no
+
+#Make sure jenkins is in AllowUsers list of /sshd_config
+cat /etc/ssh/sshd_config | grep AllowUsers #if jenkins not listed add
+
+
 
 Then run:
 service sshd restart
 
-To add a user user robe
+#if get host keys not found run
+ssh-keygen -A
+
+To create and add a user robe (repeat for jenkins, pramsey, strk, komzpa, cvvergara) and install relevant ssh keys in homedirs
 
 adduser robe wheel
 
@@ -41,10 +51,6 @@ portsnap extract
 portsnap fetch
 portsnap update
 
-#I did this
-cd /usr/ports/security/sudo/ && make install clean
-
-#but could have saved some time by installing from binary
 pkg install sudo
 
 #choose LDAP protocol support in addition to default selected
@@ -53,26 +59,26 @@ Then run:
 
 visudo
 
-and uncomment line allowing wheel to use sudo without password.
+and uncomment line wheel nopasswd allowing wheel to use sudo without password.
 
-pkg install jed bash tcpdump
-pkg install wget git proj geos
+pkg install jed bash tcpdump wget git proj geos
 #had these installed, didn't work but worked with openjdk8
-#pkg install openjdk openjdk6
+pkg install openjdk11
+
+mount -t fdescfs fdesc /dev/fd
+mount -t procfs proc /proc
+
 
 #add following lines to /etc/fstab
 fdesc   /dev/fd         fdescfs         rw      0       0
 proc    /proc           procfs          rw      0       0
 
-pkg install gmake gdb subversion
-pkg install autoconf libtool curl
-pkg install automake 
-pkg install expect openjdk8
-pkg install libxslt imagemagick
-pkg install libxml2 bison
-pkg install proj gdal geos
+pkg install gmake gdb subversion autoconf libtool curl automake expect
+pkg install libxslt libxml2 bison
+pkg install imagemagick #if not found try imagemagick7 (was required for FreeBSD 12)
+pkg install gdal geos proj
 pkg install sfcgal json-c
-pkg install cunit
+pkg install cunit iconv
 pkg install protobuf protobuf-c  #needed for building mvt
 
 #was going to install postgresql in jail but got lost quickly
@@ -90,8 +96,8 @@ jail_sysvipc_allow="YES"
 #Enter your jail and install Postgres.
 
 
-pkg install postgresql10-server
-pkg install iconv
+pkg install postgresql11-server
+service postgresql initdb #create data cluster
 
 edit the /etc/rc.conf 
 
@@ -105,7 +111,7 @@ pkg info proj  #get details of proj
 pkg install cmake #install needed for building pgrouting and sfcgal in future
 
 #for code coverage testing
-sudo pkg install lcov
+pkg install lcov
 
 #for pgtap tests needed for pgrouting
 git clone https://github.com/theory/pgtap.git
@@ -116,12 +122,23 @@ sudo gmake installcheck PGUSER=postgres
 sudo cpan TAP::Parser::SourceHandler::pgTAP
 
 
+#installing from ports
+#installed latest proj from ports by doing https://www.freebsd.org/doc/handbook/ports-using.html
+portsnap fetch #only needs to be done once
+portsnap extract #only needs to be done once
+portsnap fetch update #to keep up to date
+cd /usr/ports/graphics/proj
+make install
+#note you might be asked remove gdal and libgeotiff go ahead
+cd /usr/ports/graphics/gdal
+make install
+
 
-##upgrade to 11.2
+##upgrade to 12.1 - not done
 sudo -i
 freebsd-update fetch
 freebsd-update install
-freebsd-update upgrade -r 11.2-RELEASE
+freebsd-update upgrade -r 12.1-RELEASE
 freebsd-update install
 
 #check version running

-----------------------------------------------------------------------

Summary of changes:
 freebsd/bessie32_setup.txt | 40 ++++++++++++++++++----------
 freebsd/bessie_setup.txt   | 65 +++++++++++++++++++++++++++++-----------------
 2 files changed, 68 insertions(+), 37 deletions(-)


hooks/post-receive
-- 
PostGIS Buildbots; Jenkins jobs and instructions for setting up winnie and debbie bots.


More information about the postgis-tickets mailing list