Skip to content

Commit

Permalink
Add PostGIS 3.4 with PostgreSQL 16
Browse files Browse the repository at this point in the history
  • Loading branch information
d-stefanovic committed May 8, 2024
1 parent 9c23b3c commit 2b60acc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sem-service
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sem_services['postgres']="9.4.26 9.4 9.5.15 9.5.23 9.5 9.6.6 9.6.11 9.6.18 9.6.1
sem_services['rabbitmq']="3.6.16 3.6 3.8.2 3.8.9 3.8.14 3.8 3"
sem_services['cassandra']="3.11.3 3.11.8 3.11 3"
sem_services['rethinkdb']="2.3.6 2.3 2.4.1 2.4 2"
sem_services['postgis']="9.5-2.5 9.5-3.0 9.6-2.5 9.6-3.0 10-2.5 10-3.0 11-2.5 11-3.0 12-2.5 12-3.0 13-3.0 14-3.1 15-3.3 15-3.4"
sem_services['postgis']="9.5-2.5 9.5-3.0 9.6-2.5 9.6-3.0 10-2.5 10-3.0 11-2.5 11-3.0 12-2.5 12-3.0 13-3.0 14-3.1 15-3.3 15-3.4 16-3.4"
sem_services['opensearch']="1.3.9 1 2.6.0 2.7.0 2"

service::pull_image_retry() {
Expand Down
15 changes: 14 additions & 1 deletion tests/sem_service/postgis
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,45 @@ psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 9.6
psql -U postgres -h localhost -c 'SELECT * FROM pg_extension' | grep -i postgis
sem-service status postgis
sem-service stop postgis

sem-service start postgis 11-2.5
psql -U postgres -h localhost -c 'SELECT * FROM pg_extension' | grep -i postgis
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 11
sem-service status postgis
sem-service stop postgis

sem-service start postgis 11-3.0 --username=xxx --password=xxx --db=xxx --garbage else
psql -U xxx -h localhost -c 'SELECT * FROM pg_extension' | grep -i postgis
createdb -U xxx -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U xxx -c "\l"
psql -U xxx -c "SELECT version()" | grep 11
sem-service status postgis
sem-service stop postgis

sem-service start postgis 14-3.1
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 14
psql -U postgres -h localhost -c 'SELECT * FROM pg_extension' | grep -i postgis
sem-service status postgis
sem-service stop postgis

sem-service start postgis 15-3.3
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 15
psql -U postgres -h localhost -c 'SELECT * FROM pg_extension' | grep -i postgis
sem-service status postgis
sem-service stop postgis
cat /tmp/toolbox_semservice

sem-service start postgis 16-3.4
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 16
psql -U postgres -h localhost -c 'SELECT * FROM pg_extension' | grep -i postgis
sem-service status postgis
sem-service stop postgis

cat /tmp/toolbox_semservice
11 changes: 7 additions & 4 deletions tests/sem_service/postgres
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,47 @@ psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 9.6
sem-service status postgres
sem-service stop postgres

sem-service start postgres 11
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 11
sem-service status postgres
sem-service stop postgres

sem-service start postgres 11 --username=xxx --password=xxx --db=xxx --garbage else
createdb -U xxx -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U xxx -c "\l"
psql -U xxx -c "SELECT version()" | grep 11
sem-service status postgres
sem-service stop postgres

sem-service start postgres 14
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 14
sem-service status postgres

sem-service stop postgres

sem-service start postgres 15.1
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 15.1
sem-service status postgres

sem-service stop postgres

sem-service start postgres 15
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 15
sem-service status postgres

sem-service stop postgres

sem-service start postgres 16
createdb -U postgres -h 0.0.0.0 fooo
psql -h 0.0.0.0 -U postgres -c "\l" | grep fooo
psql -h 0.0.0.0 -U postgres -c "SELECT version()" | grep 16
sem-service status postgres

sem-service stop postgres

cat /tmp/toolbox_semservice

0 comments on commit 2b60acc

Please sign in to comment.