chore: clean foodsoft docs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Philipp Rothmann 2022-12-20 16:16:13 +01:00
parent 607a602df4
commit 9d9c0cd0e7
2 changed files with 15 additions and 27 deletions

View file

@ -3,5 +3,6 @@ nav:
- Single-Sign-On: authentik.md - Single-Sign-On: authentik.md
- Tools: - Tools:
- BigBlueButton: bigbluebutton.md - BigBlueButton: bigbluebutton.md
- Foodsoft: foodsoft.md
- TODO: - TODO:
- ... - ...

View file

@ -1,38 +1,29 @@
# Foodsoft Foodsoft
--------
## Installation https://github.com/foodcoops/foodsoft
### General
```
abra app new foodsoft
abra app config APP-NAME
abra app deploy APP-NAME
```
### Installation
[Coop-Cloud Recipe](https://git.coopcloud.tech/coop-cloud/foodsoft)
### Migration ### Migration
1. Neue instanz aufsetzen 1. Neue instanz aufsetzen
2. Backup aus alter instanz erstellen 2. Backup aus alter instanz erstellen
```bash
```
docker exec foodcoops_mariadb_1 bash -c "mysqldump -ufoodsoft -p${DB_PASSWORD} foodsoft_demo" > 2022-02-27.sql docker exec foodcoops_mariadb_1 bash -c "mysqldump -ufoodsoft -p${DB_PASSWORD} foodsoft_demo" > 2022-02-27.sql
``` ```
3. Backup einspielen 3. Backup einspielen
``` ```bash
➜ docker cp 2022-01-04.sql wandelgut-foodsoft_db.1.b1nspplwa49o55pwj5ddcnn0r:/tmp/ ➜ docker cp 2022-01-04.sql wandelgut-foodsoft_db.1.b1nspplwa49o55pwj5ddcnn0r:/tmp/
➜ docker exec -it wandelgut-foodsoft_db.1.b1nspplwa49o55pwj5ddcnn0r bash ➜ docker exec -it wandelgut-foodsoft_db.1.b1nspplwa49o55pwj5ddcnn0r bash
root@dcdca844b2f1:/# cd /tmp/ root@dcdca844b2f1:/# cd /tmp/
root@dcdca844b2f1:/tmp# mysql -p$(cat /run/secrets/db_root_password)
mysql -p$(cat /run/secrets/db_root_password)
MariaDB [(none)]> create database tantewandel; MariaDB [(none)]> create database tantewandel;
root@dcdca844b2f1:/tmp# mysql -p$(cat /run/secrets/db_root_password) tantewandel < 2022-01-04.sql root@dcdca844b2f1:/tmp# mysql -p$(cat /run/secrets/db_root_password) tantewandel < 2022-01-04.sql
root@dcdca844b2f1:/tmp# exit root@dcdca844b2f1:/tmp# exit
➜ docker exec -it wandelgut-foodsoft_app.1.zvlhnq4vvmlf4iuck7ymz96xu bash ➜ docker exec -it wandelgut-foodsoft_app.1.zvlhnq4vvmlf4iuck7ymz96xu bash
@ -42,18 +33,14 @@ nobody@22e376ecea83:/usr/src/app$ SECRET_KEY_BASE=$(cat /run/secrets/secret_key_
### Updating Group Order Invoice Fork ### Updating Group Order Invoice Fork
1. `git clone https://github.com/foodcoops/foodsoft.git` 1. `git clone https://github.com/foodcoops/foodsoft.git`
2. checkout pr 2. checkout pr
3. build image: 3. build image:
`docker -t me/mytag:v123 .` `docker -t me/mytag:v123 .`
`docker push me/mytag:v123` `docker push me/mytag:v123`
in an ideal world we could now follow this [guide](https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-release-a-new-recipe-version) to release a new version. But we are not.
4. update the image tag in the `~/.abra/apps/foodsoft/compose.groupOrderInvoice.yml` file 4. update the image tag in the `~/.abra/apps/foodsoft/compose.groupOrderInvoice.yml` file
5. run `abra app deploy --chaos foodsoft-dev` 5. run `abra app deploy --chaos foodsoft-dev`
6. check status with: 6. check status with:
`abra app ps foodsoft-dev` `abra app ps foodsoft-dev`
`abra app logs foodsoft-dev` `abra app logs foodsoft-dev`
7. if everything looks good, git commit & push 7. if everything looks good, git commit & push