Dockerized OwnCloud CLI Client
Work in progress!
docker build -t toughiq/owncloud-client .
docker run -d \
--name occlient \
-e OC_USER=owncloud_username \
-e OC_PASS=owncloud_password \
-e OC_SERVER=myowncloud.com \
-v ${PWD}/ocdata:/ocdata \
toughiq/owncloud-client
I also added a docker-compose.yml file with all available parameters, so its easier to setup your proper environment.
Run a docker logs -f <YourContainerID> to see what is happening.
Username to connect to OwnCloud
Password or App-Token for Owncloud User. I recommend using an App-Token. This can be created in your Personal settings in OwnCloud Webinterface. Its called App passwords.
Defaults to https. If you know what you are doing, you could change it to http. Not recommended!
OwnCloud Server URL. eg. myowncloud.com
Since this is used for .netrc creation and CLI URL, just give the servername here. The protocol and path information is added by other variables.
Use this parameter to add a path to your OwnCloud instance. Like https://myserver.com__/owncloud__. In this case the value would be /owncloud/.
This variable is fixed with most OwnCloud installations, so it might not be changed in normal usecases. It defaults to remote.php/webdav
You can append a filepath, so the client will only sync from this path and below. eg. /Photos will only sync everything in the Photos directory of your OwnCloud.
This specifies the interval in seconds at which the client will run and check for changes.
This is needed to ensure, that the data written to the mounted directory, is written as your user and not as root. There will be a user with this exact UID created within the container and owncloudcmd is executed as that user.
Defaults to UID 1000 which is the common UID for desktop linux users. You can find your current UID by id -u on the commandline.
Content type
Image
Digest
Size
95.9 MB
Last updated
over 8 years ago
docker pull toughiq/owncloud-client