-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (13 loc) · 794 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (13 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# sudo docker build -t onedrive-nextcloud-sync --build-arg pass='Nextcloud PASSWORD' --build-arg token='{Token (get with rclone authorize "onedrive")}' --build-arg drive_id='OneDrive ID' .
FROM ubuntu:20.04
LABEL version="0.1"
LABEL name="OneDriveNextcloudSync"
RUN apt-get --fix-missing update
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install apt-utils
RUN apt-get -y install git rclone cron
ARG pass=''
ARG token=''
ARG drive_id=''
RUN rclone config create OneDriveSync onedrive config_refresh_token false token $token drive_id $drive_id drive_type business
RUN rclone config create NextcloudSync webdav url https://www.gisijoalma.de/owncloud/remote.php/dav/files/jonas/ vendor "nextcloud" user "jonas" pass $pass
CMD rclone sync OneDriveSync:GoodNotes NextcloudSync:GoodNotes