mirror of
https://github.com/kopia/kopia.git
synced 2026-09-08 11:26:03 -04:00
build(ci): added rclone 1.57.0 to Docker container images (#1718)
* build(ci): added rclone 1.57.0 to Docker container images /bin/rclone is configured to use config in /app/rclone/rclone.conf so the user can pass -v ~/.config/rclone:/app/rclone * pr feedback
This commit is contained in:
1 parent
e56cf3ce50
commit
d3edab594e
8 files changed
+32
-10
No files matched your search
@@ -1,11 +1,14 @@
|
||||
FROM gcr.io/distroless/static:nonroot
|
||||
ARG TARGETARCH
|
||||
|
||||
# allow users to mount /app/config, /app/logs and /app/cache respectively
|
||||
# allow users to mount /app/config, /app/logs and /app/cache, /app/rclone respectively
|
||||
ENV KOPIA_CONFIG_PATH=/app/config/repository.config
|
||||
ENV KOPIA_LOG_DIR=/app/logs
|
||||
ENV KOPIA_CACHE_DIRECTORY=/app/cache
|
||||
|
||||
# allow user to mount ~/.config/rclone to /app/rclone
|
||||
ENV RCLONE_CONFIG=/app/rclone/rclone.conf
|
||||
|
||||
# this requires repository password to be passed via KOPIA_PASSWORD environment.
|
||||
ENV KOPIA_PERSIST_CREDENTIALS_ON_CONNECT=false
|
||||
ENV KOPIA_CHECK_FOR_UPDATES=false
|
||||
@@ -13,6 +16,9 @@ ENV KOPIA_CHECK_FOR_UPDATES=false
|
||||
# this creates directories writable by the current user
|
||||
WORKDIR /app
|
||||
|
||||
ENV PATH=/bin
|
||||
|
||||
COPY bin-${TARGETARCH}/kopia .
|
||||
COPY bin-${TARGETARCH}/rclone /bin/rclone
|
||||
|
||||
ENTRYPOINT ["/app/kopia"]
|
||||
Reference in new issue
Block a user