From 7b9a9cb326b588451e9defd5fcc4fb3f2b2d64bc Mon Sep 17 00:00:00 2001 From: Nico Zigouras Date: Sat, 28 Sep 2024 22:57:28 -0400 Subject: [PATCH] fix postgis version, update backend docs --- data/Dockerfile-pg | 4 ++-- docs/SETUP/BACK_END.md | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/Dockerfile-pg b/data/Dockerfile-pg index 7ec716c8..d4d62d77 100644 --- a/data/Dockerfile-pg +++ b/data/Dockerfile-pg @@ -5,11 +5,11 @@ FROM postgres:16-bullseye LABEL maintainer="PostGIS Project - https://postgis.net" \ - org.opencontainers.image.description="PostGIS 3.4.2+dfsg-1.pgdg110+1 spatial database extension with PostgreSQL 16 bullseye" \ + org.opencontainers.image.description="PostGIS 3.4.3+dfsg-2.pgdg110+1 spatial database extension with PostgreSQL 16 bullseye" \ org.opencontainers.image.source="https://github.com/postgis/docker-postgis" ENV POSTGIS_MAJOR 3 -ENV POSTGIS_VERSION 3.4.2+dfsg-1.pgdg110+1 +ENV POSTGIS_VERSION 3.4.3+dfsg-2.pgdg110+1 RUN apt-get update \ && apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \ diff --git a/docs/SETUP/BACK_END.md b/docs/SETUP/BACK_END.md index a0fff516..9a184d1c 100644 --- a/docs/SETUP/BACK_END.md +++ b/docs/SETUP/BACK_END.md @@ -32,7 +32,7 @@ POSTGRES_PASSWORD=a-strong-password-here VACANT_LOTS_DB=postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5433/vacantlotdb ``` -All local environment variables will be passed through to docker-compose, so if you have them set up in the `.env` file, you should not need to hard-code them elsewhere. +All local environment variables will be passed through to docker compose, so if you have them set up in the `.env` file, you should not need to hard-code them elsewhere. #### Setting Environment Variables Locally @@ -45,13 +45,13 @@ export POSTGRES_PASSWORD=a-strong-password-here export VACANT_LOTS_DB=postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5433/vacantlotdb ``` -All of your local environment variables will be passed through to docker-compose, so if you have them locally, you should not have to hard-code them. +All of your local environment variables will be passed through to docker compose, so if you have them locally, you should not have to hard-code them. ### Docker Build Docker is a platform that allows you to containerize and run applications in isolated environments, making it easier to manage dependencies and ensure consistent deployments. Download the [latest version of Docker Desktop for your operating system](https://www.docker.com/products/docker-desktop/). -We use [docker compose](https://docs.docker.com/compose/) to manage the backend Docker services. The `data/docker compose.yaml` file defines the services. The only service that runs perpetually in Docker is `postgres`. The other services are one-time batch jobs to build the data sets. +We use [docker compose](https://docs.docker.com/compose/) to manage the backend Docker services. The `data/docker-compose.yaml` file defines the services. The only service that runs perpetually in Docker is `postgres`. The other services are one-time batch jobs to build the data sets. 1. The first time you set up your backend, or any time either of the two Docker files change, build the Docker services by running: @@ -84,7 +84,7 @@ All Docker commands should be run from the `data/` directory. There is one main 1. In the terminal, navigate to your repository location using `cd path/to/clean-and-green-philly`. Then run `cd data` to move into the `data` directory. 2. Run `docker compose run vacant-lots-proj`. Enter your password if requested. If you run into an error message related to "KEY_ID" or something similar, you may have to do the following: - - Hard-code your `VACANT_LOTS_DB` variable in `docker compose.yml`. + - Hard-code your `VACANT_LOTS_DB` variable in `docker-compose.yml`. The backend also works on WSL Ubuntu running Docker for Linux on Windows 10. @@ -92,7 +92,7 @@ The backend also works on WSL Ubuntu running Docker for Linux on Windows 10. #### macOS -In the terminal, use the `cd` command to navigate to your repository location, and then into the `data` directory. Run `docker compose run vacant-lots-proj`. This command starts Docker Compose and sets up your environment as defined in your `docker compose.yml` file. When you're finished and want to shut down the Docker containers, run `docker compose down`. +In the terminal, use the `cd` command to navigate to your repository location, and then into the `data` directory. Run `docker compose run vacant-lots-proj`. This command starts Docker Compose and sets up your environment as defined in your `docker-compose.yml` file. When you're finished and want to shut down the Docker containers, run `docker compose down`. ### PostgreSQL