Bump Pandora to newer commit on Alpine 3.12, add update script
This commit is contained in:
parent
9a83b97d33
commit
0f89b0ae4b
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.0.1-200621",
|
||||
"version": "0.0.1-201021",
|
||||
"meta": {
|
||||
"title": "Pan.do/ra",
|
||||
"desc-cs": "Archiv medií",
|
||||
@ -8,7 +8,7 @@
|
||||
},
|
||||
"containers": {
|
||||
"pandora": {
|
||||
"image": "pandora_0.0.1-200621",
|
||||
"image": "pandora_0.0.1-201021",
|
||||
"depends": [
|
||||
"pandora-postgres",
|
||||
"pandora-rabbitmq"
|
||||
@ -19,13 +19,13 @@
|
||||
}
|
||||
},
|
||||
"pandora-postgres": {
|
||||
"image": "postgres_12.2.0-200621",
|
||||
"image": "postgres_12.4.0-201021",
|
||||
"mounts": {
|
||||
"pandora/postgres_data": "var/lib/postgresql"
|
||||
}
|
||||
},
|
||||
"pandora-rabbitmq": {
|
||||
"image": "rabbitmq_3.8.9-201013",
|
||||
"image": "rabbitmq_3.8.9-201021",
|
||||
"mounts": {
|
||||
"pandora/rabbitmq_data": "var/lib/rabbitmq/mnesia"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
IMAGE pandora_0.0.1-200621
|
||||
FROM alpine3.11-python3.8_3.8.2-200621
|
||||
IMAGE pandora_0.0.1-201021
|
||||
FROM alpine3.12-python3.8_3.8.5-201021
|
||||
|
||||
RUN EOF
|
||||
# Install runtime dependencies
|
||||
|
16
lxc-apps/pandora/update.sh
Executable file
16
lxc-apps/pandora/update.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user