toughiq / docker-owncloud-client Goto Github PK
View Code? Open in Web Editor NEWDockerized OwnCloud CLI Client
License: MIT License
Dockerized OwnCloud CLI Client
License: MIT License
Hi,
Upon checking the active sesions in the Sessions tab on my instance, i notice the following client which appears 117 times per hour:
"Mozilla/5.0 (Linux) mirall/2.4.1 (build 9083)"
This only fits with a Docker container im running with this image. I would assume one session should be enough?
The docker container has not been restarting either.
I just changed RUN_INTERVAL to 3600, but i would say that it should be unnecessary?
When using a server like:
OC_SERVER=owncloud.myserver.com:8443
the docker does not authenticate, with this error
!!! OCC::LsColJob created for "https://owncloud.myserver.com/owncloud" + "" "OCC::DiscoverySingleDirectoryJob"
Stop request: Authentication failed for "https://owncloud.myservercom:8443/owncloud/remote.php/webdav/"
Investigating a bit further this seems to be due to how the .netrc file is created.
This seems to work
machine owncloud.myserver.com
login username
password mypassword
but this not:
machine owncloud.myserver.com:8443
login username
password mypassword
Hi,
It seems that there are no log entires of the owncloud-client when I want to view them with docker logs -f
In my case, is: docker logs -f docker-owncloud-client_1
This is my docker-compose.yml file:
version: "3.7"
services:
occlient_fraunhofer_iis:
image: toughiq/owncloud-client
restart: unless-stopped
volumes:
- ${PWD}/mydata :/ocdata
environment:
- OC_USER=*****
- OC_PASS=****
- OC_PROTO=https
- OC_SERVER=****
- OC_URLPATH=/
- OC_WEBDAV=remote.php/webdav
- OC_FILEPATH=/
- TRUST_SELFSIGN=0
- SYNC_HIDDEN=0
- SILENCE_OUTPUT=0
- RUN_INTERVAL=30
- RUN_UID=1000
And this my Docker-file (I had to adjust to an Ubuntu base image, because Debian was not working):
FROM ubuntu:20.04
MAINTAINER toughIQ [email protected]RUN apt-get update
&& apt-get install -y wget curl gpg
&& apt-get clean
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& rm -rf /usr/share/doc /usr/share/man /usr/share/locale /usr/share/info /usr/share/lintianRUN echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_20.04/ /' | tee /etc/apt/sources.list.d/isv:ownCloud:desktop.list
&& curl -fsSL https://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_20.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/isv:ownCloud:desktop.gpg > /dev/null
&& apt-get update
&& apt-get install -y owncloud-client
&& apt-get clean
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& rm -rf /usr/share/doc /usr/share/man /usr/share/locale /usr/share/info /usr/share/lintianCOPY *.sh /
WORKDIR /ocdataENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/run.sh"]ENV OC_USER=oc_username
OC_PASS=oc_passwordORtoken
OC_PROTO=https
OC_SERVER=yourserver.com
OC_URLPATH=/
OC_WEBDAV=remote.php/webdav
OC_FILEPATH=/
TRUST_SELFSIGN=0
SYNC_HIDDEN=0
SILENCE_OUTPUT=1
RUN_INTERVAL=30
RUN_UID=1000
Do I need to set additional environment variables?
Thank you for your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.