File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2020-2023 Ryan Lambert
3+ Copyright (c) 2020-2024 Ryan Lambert
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -49,14 +49,18 @@ logic, an post-processing steps required. Features include:
4949
5050This section outlines a typical import using Docker to run PgOSM Flex.
5151
52- Create directory for the ` .osm.pbf ` file, output ` .sql ` file, log output, and
53- the osm2pgsql command ran.
52+ ### Prepare
53+
54+ Create directory for the ` .osm.pbf ` file and output ` .sql ` file. These files
55+ are automatically created by PgOSM Flex.
5456
5557
5658``` bash
5759mkdir ~ /pgosm-data
5860```
5961
62+ ### Run
63+
6064Set environment variables for the temporary Postgres connection in Docker.
6165These are required for the Docker container to run.
6266
@@ -77,6 +81,21 @@ docker run --name pgosm -d --rm \
7781 -p 5433:5432 -d rustprooflabs/pgosm-flex
7882```
7983
84+ ### Check Docker container running
85+
86+ It is worth verifying the Docker container is successfully running with ` docker ps -a ` .
87+ Check for a ` STATUS ` similar to ` Up 4 seconds ` shown in the example output below.
88+
89+ ``` bash
90+ $ docker ps -a
91+
92+ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
93+ e7f80926a823 rustprooflabs/pgosm-flex " docker-entrypoint.s…" 5 seconds ago Up 4 seconds 0.0.0.0:5433-> 5432/tcp, :::5433-> 5432/tcp pgosm
94+ ```
95+
96+
97+ ### Execute PgOSM Flex
98+
8099Use ` docker exec ` to run the processing for the Washington D.C subregion.
81100This example uses three (3) parameters to specify the total system RAM (8 GB)
82101along with a region/subregion.
You can’t perform that action at this time.
0 commit comments