diff --git a/docs/docker/Dockerfile b/docs/docker/Dockerfile index 13c93034..409ae120 100644 --- a/docs/docker/Dockerfile +++ b/docs/docker/Dockerfile @@ -1,7 +1,7 @@ FROM node:17.4-slim RUN yarn global remove gancio || true RUN yarn cache clean -RUN yarn global add --latest --production --silent https://gancio.org/latest.tgz 2> /dev/null +RUN yarn global add --latest --production --silent https://gancio.org/latest.tgz ADD entrypoint.sh / RUN chmod 755 /entrypoint.sh ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ] diff --git a/docs/install/debian.md b/docs/install/debian.md index 3209fdfe..5c69b5c2 100644 --- a/docs/install/debian.md +++ b/docs/install/debian.md @@ -50,7 +50,7 @@ sudo adduser --group --system --shell /bin/false --home /opt/gancio gancio ``` 1. Install Gancio ```bash -sudo yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null +sudo yarn global add --silent {{site.url}}/latest.tgz ``` 1. Setup systemd service and reload systemd @@ -78,6 +78,6 @@ sudo systemctl start gancio ```bash yarn global remove gancio yarn cache clean -yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null +yarn global add --silent {{site.url}}/latest.tgz sudo systemctl restart gancio ``` diff --git a/docs/install/docker.md b/docs/install/docker.md index 38c5aef9..3a514a55 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -64,20 +64,6 @@ You'll need to [setup nginx as a proxy]({% link install/nginx.md %}) then you ca > Don't be lazy and [backup]({% link install/backup.md %}) your data! -> error "Upgrade from a version < 1.0" -> Since v1.0 our docker setup is changed and a new container has to be built: -> -> 1. `cd /opt/gancio` -> 1. [Backup your data]({% link install/backup.md %}) -> 1. Download new `Dockerfile`
`wget {{site.url}}{% link /docker/Dockerfile %}` -> 1. Download new `entrypoint.sh`
`wget {{site.url}}{% link /docker/entrypoint.sh %}` -> 1. Download new `docker-compose.yml` (substitute `sqlite` with `postgres` in case):
`wget {{site.url}}{% link /docker/sqlite/docker-compose.yml %}` -> 1. Build the new container `docker-compose build` -> 1. Extract your backup into `./data`
`mkdir data; tar xvzf gancio--backup.tgz -C data` -> 1. Stop your old container `docker-compose stop` -> 1. Start your new container `docker-compose up` - - ```bash cd /opt/gancio docker-compose up -d --no-deps --build