Changes between Version 34 and Version 35 of DevWikiDockerTesting
- Timestamp:
- 01/30/23 21:06:49 (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevWikiDockerTesting
v34 v35 152 152 docker run -d \ 153 153 --name postgis-build-env \ 154 - -mount type=bind,source="$(pwd)/projects",target=/projects \154 -v ~/projects/:/projects \ 155 155 postgis/postgis-build-env:latest tail -f /dev/null 156 156 … … 162 162 #once started you can attach to it 163 163 docker exec -it postgis-build-env /bin/bash 164 165 # in container 166 BUILDDIR=/src/postgis/ 167 SRCDIR=/projects/postgis 168 cd ${SRCDIR} 169 sh autogen.sh 170 # todo, figure out how to allow postgres acocunt to read and write, without 777 171 sudo chmod -R 777 $SRCDIR 172 mkdir -p "${BUILDDIR}" 173 cd "${BUILDDIR}" 174 175 ${SRCDIR}/configure --without-interrupt-tests --enable-lto 176 make -j 4 164 177 165 178 # in the postgis-buildenv container, you should be able to do 166 179 # below copied from https://git.osgeo.org/gitea/postgis/postgis/src/branch/master/ci/github/run_coverage.sh 167 180 cd /projects/postgis 168 # Flags for coverage build169 CFLAGS_COV="-g -O0 --coverage"170 LDFLAGS_COV="--coverage"171 181 172 182 #TODO fix this, container starts up using postgres, and so these fail if mounting an external source folder 173 183 # using sudo makes paths not work 174 184 /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 185 make -j 4 186 make check 187 181 188 182 189 #any changes you make to your local folder projects/postgis, will show in the container /projects/postgis 183 190 184 #in the container185 191 186 192 # To stop it do