upgrade ttrss to 61be0b215db850395ef2746a5b7499f39db30662

This commit is contained in:
Mathieu Bruyen
2020-03-21 10:18:13 +01:00
parent 1133660b9f
commit 5a7a39eeb8
2 changed files with 10 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
FROM nginx:1.17.8-alpine FROM nginx:1.17.9-alpine
RUN \ RUN \
apk add --no-cache \ apk add --no-cache \
@@ -29,7 +29,7 @@ EXPOSE 80 443
RUN \ RUN \
git clone https://git.tt-rss.org/fox/tt-rss.git /var/lib/tt-rss && \ git clone https://git.tt-rss.org/fox/tt-rss.git /var/lib/tt-rss && \
cd /var/lib/tt-rss && \ cd /var/lib/tt-rss && \
git checkout 076c5382fafcaf5ffd2bd41752e8e3c3b20e6af0 git checkout 61be0b215db850395ef2746a5b7499f39db30662
WORKDIR /app WORKDIR /app
COPY CHECKS /app/CHECKS COPY CHECKS /app/CHECKS

View File

@@ -9,8 +9,8 @@ dokku plugin:install https://github.com/dokku/dokku-postgres.git
dokku apps:create ttrss dokku apps:create ttrss
dokku ps:scale ttrss web=0 dokku ps:scale ttrss web=0
dokku postgres:create ttrssdb_11_2 dokku postgres:create ttrss-postgres-12_2 --image-version 12.2
dokku postgres:link ttrssdb_11_2 ttrss dokku postgres:link ttrss-postgres-12_2 ttrss
dokku config:set ttrss SELF_URL_PATH=http://ttrss.example.com/ dokku config:set ttrss SELF_URL_PATH=http://ttrss.example.com/
git remote add dokku dokku@example.com:ttrrs git remote add dokku dokku@example.com:ttrrs
@@ -58,15 +58,13 @@ rm ttrss.db
### Database ### Database
```bash ```bash
# upgrade from Postgres 10.2 to 11.4 # upgrade from Postgres 11.6 to 12.2
dokku plugins:upgrade postgres dokku plugins:upgrade postgres
dokku postgres:create ttrssdb_11_4 dokku postgres:clone ttrss-postgres-11_6 ttrss-postgres-12_2 --image-version 12.2
dokku postgres:export ttrssdb_10_2 > ttrss.db dokku postgres:link ttrss-postgres-12_2 ttrss
dokku postgres:import ttrssdb_11_4 < ttrss.db dokku postgres:promote ttrss-postgres-12_2 ttrss
dokku postgres:link ttrssdb_11_4 ttrss
dokku postgres:promote ttrssdb_11_4 ttrss
# check app is working, then delete old database # check app is working, then delete old database
dokku postgres:unlink ttrssdb_10_2 ttrss dokku postgres:unlink ttrss-postgres-11_6 ttrss
dokku postgres:destroy ttrssdb_10_2 dokku postgres:destroy ttrss-postgres-11_6
``` ```