From 2feb393cc1f35b11ce993d24b51b8e7fb2d9edf4 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Mon, 28 Nov 2022 21:23:04 +0100 Subject: [PATCH] obs-portal: add README --- .gitignore | 1 + openbikesensor-portal/README.md | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 openbikesensor-portal/README.md diff --git a/.gitignore b/.gitignore index 86b5f85..f0fa803 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ terraform.tfstate* *.plan result +.env diff --git a/openbikesensor-portal/README.md b/openbikesensor-portal/README.md new file mode 100644 index 0000000..c874d6a --- /dev/null +++ b/openbikesensor-portal/README.md @@ -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 +```