Steps:
- Launch Lizmap with docker-compose
# Clean previous versions (optional)
make clean
# Run the different services
make run
- Install the module and default rights
# install the module
make install-module
# Set default rights
make import-lizmap-acl
- import data
make import-data
- Open your browser at http://localhost:9090
For more information, refer to the docker-compose documentation
You can access the docker PostgreSQL test database lizmap
from your host by configuring a
service file.
The service file can be stored in your user home ~/.pg_service.conf
and should contain this section
[lizmap-pgrouting]
dbname=lizmap
host=localhost
port=9032
user=lizmap
password=lizmap1234!
Then you can use any PostgreSQL client (psql, QGIS, PgAdmin, DBeaver) and use the service
instead of the other credentials (host, port, database name, user and password).
psql service=lizmap-pgrouting
Inside the docker compose project :
docker compose run --rm pytest
To run SQL based tests, you need to call pytest
:
# In a venv, it's better, but this is out of scope
pip install -r requirements/tests.txt
cd tests/sql
pytest
pytest -s -v
POSTGRES_DB=lizmap POSTGRES_USER=lizmap POSTGRES_PASSWORD=lizmap1234! POSTGRES_PORT=9032 pytest -s -v
or
docker run --rm -e POSTGRES_PASSWORD=docker -e POSTGRES_USER=docker -e POSTGRES_DB=gis -p 127.0.0.1:35432:5432 3liz/postgis:13-2.5
cd tests/sql
POSTGRES_DB=gis POSTGRES_USER=docker POSTGRES_PASSWORD=docker POSTGRES_PORT=35432 pytest -v