garethgeorge / backrest

Backrest is a web UI and orchestrator for restic backup.
GNU General Public License v3.0
1.7k stars 48 forks source link

rclone version (docker) #276

Open lakemike opened 6 months ago

lakemike commented 6 months ago

I noted that the rclone version in the docker container is outdated (v1.65-DEV). As an enhancement for the docker container, it would be great if the build process always pulls the latest stable rclone version.

garethgeorge commented 6 months ago

Hey, backrest bumps the rclone version with each new release (and uses the latest from the rclone apk on alpine Linux).

I haven’t cut a release in a bit so we’re lagging a bit behind but this is expected state; I aim to do releases infrequently (ideally monthly patch releases) in the fullness of time as backup software should aim to be stable without too much version churn.

If you need a specific rclone version I’d recommend a custom docker image on top of the published release

lakemike commented 6 months ago

Hi, no worries, I can push an updated binary into the docker container. But alpine may have been the issue in the build process. rclone v1.65-DEV is from 6 months ago and there have been plenty of updates afterwards, that didn't make it into the backrest docker container.

garethgeorge commented 6 months ago

just shipped another version of backrest which should be using the latest from alpine, I think I'm going to resolve this as works as intended as the docker image aims to use alpine packages for all deps. Happy to switch to a more up to date alpine package though if there is one.

lakemike commented 6 months ago

Hi, I pulled the 1.0.0 docker image for backrest and rclone is still at "v1.65.0-DEV". At the same time, pkgs.alpinelinux.org (https://pkgs.alpinelinux.org/packages?name=rclone&branch=edge&repo=&arch=&maintainer=) shows "1.66.0-r2". I'm not sure I've done that right because I have too little experience with alpine and it's branches etc.

For the time being, I am happy adding the binary manually:

#!/bin/bash
docker compose up -d
DOCKERID=`docker ps | grep backrest | awk '{print $1}'`
# Execute commands inside the Docker container
docker exec $DOCKERID sh -c "cd /root && \
  wget -O rclone.zip https://github.com/rclone/rclone/releases/download/v1.66.0/rclone-v1.66.0-linux-amd64.zip && \
  unzip -j -o rclone.zip && \
  ln -sf /root/rclone /usr/bin/rclone"