Bump Pandora to newer commit on Alpine 3.12, add update script

This commit is contained in:
Disassembler 2020-10-22 23:01:33 +02:00
parent 9a83b97d33
commit 0f89b0ae4b
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 22 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "0.0.1-200621", "version": "0.0.1-201021",
"meta": { "meta": {
"title": "Pan.do/ra", "title": "Pan.do/ra",
"desc-cs": "Archiv medií", "desc-cs": "Archiv medií",
@ -8,7 +8,7 @@
}, },
"containers": { "containers": {
"pandora": { "pandora": {
"image": "pandora_0.0.1-200621", "image": "pandora_0.0.1-201021",
"depends": [ "depends": [
"pandora-postgres", "pandora-postgres",
"pandora-rabbitmq" "pandora-rabbitmq"
@ -19,13 +19,13 @@
} }
}, },
"pandora-postgres": { "pandora-postgres": {
"image": "postgres_12.2.0-200621", "image": "postgres_12.4.0-201021",
"mounts": { "mounts": {
"pandora/postgres_data": "var/lib/postgresql" "pandora/postgres_data": "var/lib/postgresql"
} }
}, },
"pandora-rabbitmq": { "pandora-rabbitmq": {
"image": "rabbitmq_3.8.9-201013", "image": "rabbitmq_3.8.9-201021",
"mounts": { "mounts": {
"pandora/rabbitmq_data": "var/lib/rabbitmq/mnesia" "pandora/rabbitmq_data": "var/lib/rabbitmq/mnesia"
} }

View File

@ -1,5 +1,5 @@
IMAGE pandora_0.0.1-200621 IMAGE pandora_0.0.1-201021
FROM alpine3.11-python3.8_3.8.2-200621 FROM alpine3.12-python3.8_3.8.5-201021
RUN EOF RUN EOF
# Install runtime dependencies # Install runtime dependencies

16
lxc-apps/pandora/update.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
set -ev
# Start service containers
spoc-container start pandora-postgres
spoc-container start pandora-rabbitmq
# Run database migration
spoc-container exec pandora -- /srv/pandora/pandora/manage.py migrate --noinput
spoc-container exec pandora -- /srv/pandora/pandora/manage.py sqlfindindex
spoc-container exec pandora -- /srv/pandora/pandora/manage.py sync_itemsort
spoc-container exec pandora -- /srv/pandora/pandora/manage.py sync_documentsort
# Stop service containers
spoc-container stop pandora-rabbitmq
spoc-container stop pandora-postgres