obs-portal: add README

This commit is contained in:
teutat3s 2022-11-28 21:23:04 +01:00
parent d78c4afe04
commit 2feb393cc1
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 29 additions and 0 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@
terraform.tfstate*
*.plan
result
.env

View file

@ -0,0 +1,28 @@
0. Get [tritonshell](https://git.greenbaum.cloud/dev/tritonshell)
Initial setup:
```
# Enter a tritonshell for DC lev-1, account pub_solar
ttp set lev-1-pub_solar
docker-compose --project-name obs create
docker-compose --project-name obs run portal bash
# In portal container:
# Follow steps starting here https://github.com/openbikesensor/portal/tree/main/deployment#download-openstreetmap-maps
mkdir /pbf
wget https://download.geofabrik.de/europe/germany/nordrhein-westfalen.html --directory-prefix=/pbf
tools/upgrade.py
# Fix postgresql URL in the script below
tools/osm2pgsql.sh
exit
docker-compose --project-name obs up --detach
```
Adjust config / update deployment:
```
docker pull registry.greenbaum.cloud/library/openbikesensor-portal:c1ccec9-pub-solar-config
docker build -t registry.greenbaum.cloud/library/openbikesensor-portal:c1ccec9-pub-solar-config .
docker push registry.greenbaum.cloud/library/openbikesensor-portal:c1ccec9-pub-solar-config .
docker-compose --project-name obs up --detach
```