Skip to content

Commit bd6de90

Browse files
author
Rub21
committed
Update dosc and env vars for taginfo
1 parent 0e6ca0a commit bd6de90

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

envs/.env.taginfo.example

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#######################################
2+
# Environment variables for taginfo database
3+
#######################################
4+
URL_PLANET_FILE_STATE=https://planet.openhistoricalmap.org.s3.amazonaws.com/planet/state.txt
5+
URL_HISTORY_PLANET_FILE_STATE=https://planet.openhistoricalmap.org.s3.amazonaws.com/planet/full-history/state.txt
6+
URL_PLANET_FILE=https://planet.openhistoricalmap.org.s3.amazonaws.com/planet/planet-200526_0000.osm.pbf
7+
URL_HISTORY_PLANET_FILE=https://planet.openhistoricalmap.org.s3.amazonaws.com/planet/full-history/history-200526_0000.osh.pbf
8+
INSTANCE_URL=http://localhost:4567
9+
INSTANCE_NAME="OHM Taginfo"
10+
INSTANCE_DESCRIPTION="This is a <b>taginfo test instance</b>. Change this text in your <tt>taginfo-config.json</tt>."
11+
INSTANCE_ICON=https://www.openhistoricalmap.org/assets/ohm_logo-2d97749faddd5bd051d846ed1be0544aa7c92422b673eb43d2fd6edf3428986d.svg
12+
INSTANCE_CONTACT= "Anonymous"
13+
TAGINFO_PROJECT_REPO=https://github.com/OpenHistoricalMap/taginfo-projects.git
14+
DOWNLOAD_DB='languages wiki'
15+
CREATE_DB='db projects chronology'

images/taginfo/README.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ We build a docker container for taginfo software, the container will start the w
44

55
## Environment Variables
66

7-
All environment variables are located at [`.env-taginfo.example`](https://github.com/developmentseed/osm-seed/blob/develop/.env-taginfo.example), make a copy and name it as `.env-tagninfo` to use in osm-seed.
7+
All environment variables are located at [`.env.taginfo.example`](./../../envs/.env.taginfo.example), make a copy and name it as `.env.tagninfo` to use in osm-seed.
88

99
- `URL_PLANET_FILE_STATE`: Url to the state file, that contains the URL for the latest planet PBF file. e.g [`state.txt`](https://planet.openhistoricalmap.org.s3.amazonaws.com/planet/state.txt), This is no required in case you set the `URL_PLANET_FILE` env var
1010

@@ -25,3 +25,17 @@ The following env vars are required in the instance to update the values at: htt
2525
- Value `db` require to pass `URL_PLANET_FILE` or `URL_PLANET_FILE_STATE`
2626
- Value `projects` require to pass `TAGINFO_PROJECT_REPO`
2727
- Value `chronology` require to pass `URL_PLANET_FILE` or `URL_HISTORY_PLANET_FILE`
28+
29+
#### Running taginfo container
30+
31+
```sh
32+
# Docker compose
33+
docker-compose run taginfo
34+
35+
# Docker
36+
docker run \
37+
--env-file ./envs/.env.taginfo \
38+
-v ${PWD}/data/taginfo-data:/apps/data/ \
39+
--network osm-seed_default \
40+
-it osmseed-taginfo:v1
41+
```

0 commit comments

Comments
 (0)