From 0c71bea93ee92a2cc474de9252abf07f8b573159 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sun, 21 Nov 2021 21:10:32 +0100 Subject: [PATCH] use own docker image --- CHANGELOG.md | 6 ++++++ internal/backend.go | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b5d899..1fac099 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.5.1] - 2021-11-21 + +### Changed + +- use official docker image instead of installing rclone every time docker is used. + ## [1.5.0] - 2021-11-20 ### Added diff --git a/internal/backend.go b/internal/backend.go index 0eb8773..089b48c 100644 --- a/internal/backend.go +++ b/internal/backend.go @@ -194,15 +194,13 @@ func (b Backend) ExecDocker(l Location, args []string) (string, error) { splitted := strings.Split(strings.TrimSpace(configFile), "\n") configFilePath := splitted[len(splitted)-1] docker = append(docker, "--volume", configFilePath+":"+"/root/.config/rclone/rclone.conf:ro") - // Install rclone in the container - args = append([]string{"apk", "add", "rclone", "&&"}, args...) default: return "", fmt.Errorf("Backend type \"%s\" is not supported as volume endpoint", b.Type) } for key, value := range env { docker = append(docker, "--env", key+"="+value) } - docker = append(docker, "restic/restic", "-c", strings.Join(args, " ")) + docker = append(docker, "cupcakearmy/autorestic", "-c", strings.Join(args, " ")) out, err := ExecuteCommand(options, docker...) return out, err }