Changes between Version 34 and Version 35 of DevWikiDockerTesting


Ignore:
Timestamp:
01/30/23 21:06:49 (21 months ago)
Author:
robe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevWikiDockerTesting

    v34 v35  
    152152docker run -d \
    153153  --name postgis-build-env \
    154   --mount type=bind,source="$(pwd)/projects",target=/projects \
     154  -v ~/projects/:/projects \
    155155  postgis/postgis-build-env:latest  tail -f /dev/null
    156156
     
    162162#once started you can attach to it
    163163docker exec -it postgis-build-env /bin/bash
     164
     165# in container
     166BUILDDIR=/src/postgis/
     167SRCDIR=/projects/postgis
     168cd ${SRCDIR}
     169sh autogen.sh
     170# todo, figure out how to allow postgres acocunt to read and write, without 777
     171sudo chmod -R 777 $SRCDIR
     172mkdir -p "${BUILDDIR}"
     173cd "${BUILDDIR}"
     174
     175${SRCDIR}/configure --without-interrupt-tests --enable-lto
     176make -j 4
    164177
    165178# in the postgis-buildenv container, you should be able to do
    166179# below copied from https://git.osgeo.org/gitea/postgis/postgis/src/branch/master/ci/github/run_coverage.sh
    167180cd /projects/postgis
    168 # Flags for coverage build
    169 CFLAGS_COV="-g -O0 --coverage"
    170 LDFLAGS_COV="--coverage"
    171181
    172182#TODO fix this, container starts up using postgres, and so these fail if mounting an external source folder
    173183# using sudo makes paths not work
    174184/usr/local/pgsql/bin/pg_ctl -c -l /tmp/logfile -o '-F' start
    175 sudo ./autogen.sh
    176 sudo ldconfig /usr/local/pgsql/lib
    177 sudo ./configure CFLAGS="${CFLAGS_COV}" LDFLAGS="${LDFLAGS_COV}" --enable-debug
    178 sudo make -j 4
    179 sudo make check
    180 sudo make install
     185make -j 4
     186make check
     187
    181188
    182189#any changes you make to your local folder projects/postgis, will show in the container /projects/postgis
    183190
    184 #in the container
    185191
    186192# To stop it do