15 | | docker pull docker.osgeo.org/postgis/build-test:trisquel3 |
| 15 | mkdir projects |
| 16 | |
| 17 | #this container has no built in entry point to keep it running, |
| 18 | # create a fake one as discussed here - https://levelup.gitconnected.com/keep-docker-container-running-for-debugging-fc2dfa39472c |
| 19 | |
| 20 | #this might take a minute or so after download to start up |
| 21 | docker run -d \ |
| 22 | --name postgis-dev \ |
| 23 | --mount type=bind,source="$(pwd)/projects",target=/projects \ |
| 24 | docker.osgeo.org/postgis/build-test:trisquel3 tail -f /dev/null |
| 25 | |
| 26 | cd projects |
| 27 | git clone https://git.osgeo.org/gitea/postgis/postgis.git |
| 28 | |
| 29 | |
| 30 | |
| 31 | #once started you can attach to it |
| 32 | docker exec -it postgis-dev /bin/bash |
| 33 | |
| 34 | # in the postgis-dev container, you should be able to do |
| 35 | cd /projects/postgis |
| 36 | sh autogen.sh |
| 37 | ./configure |
| 38 | make && make install |
| 39 | #any changes you make to your projects/postgis repo, will show here |
| 40 | |
| 41 | #in the container |
| 42 | |
| 43 | # To stop it do |
| 44 | docker stop postgis-dev |
| 45 | |
| 46 | # if you need to remove the container to get a new version do |
| 47 | |
| 48 | docker rm postgis-dev |
| 49 | |