Skip to content

Commit

Permalink
Add a QGIS server service and test WMS against that
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Nov 27, 2024
1 parent 9143414 commit 3755620
Show file tree
Hide file tree
Showing 6 changed files with 1,421 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ jobs:
PROJ_LIB: ${{ github.workspace }}/build/vcpkg_installed/x64-linux/share/proj
run: |
pip install -r "${{ github.workspace }}/test/spix/requirements.txt"
docker compose -f "${{ github.workspace }}/test/postgis_docker/docker-compose.yaml" up -d
docker compose -f "${{ github.workspace }}/test/docker-compose.yaml" up -d
cd build
xvfb-run --server-args="-screen 0 640x480x24" ctest --output-on-failure -C ${{ env.BUILD_TYPE }}
docker compose -f "${{ github.workspace }}/test/postgis_docker/docker-compose.yaml" down
docker compose -f "${{ github.workspace }}/test/docker-compose.yaml" down
- name: 📑 Upload package logs
uses: actions/upload-artifact@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
services:
db:
build:
dockerfile: Dockerfile
context: ./postgis_docker
dockerfile: ./Dockerfile
volumes:
- ./setupdata.sql:/docker-entrypoint-initdb.d/setup-db.sql
- ./postgis_docker/setupdata.sql:/docker-entrypoint-initdb.d/setup-db.sql
environment:
- POSTGRES_DB=gis
- POSTGRES_USER=docker
Expand All @@ -20,3 +21,10 @@ services:
restart: on-failure
healthcheck:
test: "PGPASSWORD=docker pg_isready -h 127.0.0.1 -U docker -d gis"

qgis-server:
image: qgis/qgis-server:ltr
volumes:
- ./qgis_server_docker/data/:/io/data
ports:
- "8010:80"
Loading

0 comments on commit 3755620

Please sign in to comment.