- Install Docker
- sudo snap install docker (my preferred method on my Linux system)
- https://hub.docker.com/editions/community/docker-ce-desktop-windows/
- https://hub.docker.com/editions/community/docker-ce-desktop-mac/
- Download this repository
- If you git installed, the easiest way to download it is with the following terminal command:
git clone https://github.com/chikaj/exspda_setup.git
- If you do not have git (consider getting it, or...), go to https://github.com/chikaj/exspda_setup, click the
Code
button and selectDownload ZIP
.
- If you git installed, the easiest way to download it is with the following terminal command:
- Build and run the software stack by doing the following:
- Open a terminal, navigate to the downloaded respistory, and run the following Docker command:
docker-compose up --build -d
- The above command could be split into 2 commands (
docker-compose build
anddocker-compose up -d
). The -d flag runs the software stack in the background as a daemon - The above command will run the software stack that we will mainly use in the Exploring Spatial Databases course: PostgreSQL with the PostGIS extension, pgAdmin4, pg_featureserv and pg_tileserv
- The above command could be split into 2 commands (
- Open a terminal, navigate to the downloaded respistory, and run the following Docker command:
- Stop the software stack by doing the following:
- In a terminal, navigate to the downloaded repository, and run the following Docker command:
docker-compose stop
- The above command will stop the software stack.
- Your user data is stored persistently, including database connection parameters, database tables, etc.
- In a terminal, navigate to the downloaded repository, and run the following Docker command:
- The next time you want to run (and then stop) the software stack, open a terminal, navigate to the downloaded repository, and execute the following commands:
docker-compose up -d
- Notice that there is no --build included in the above statement. This starts the software stack.
docker-compose stop
- This stops the software stack.