Giter Site home page Giter Site logo

pschmitt / docker-owncloud Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 12.0 60 KB

Reasonably configurable Docker image for ownCloud - Debian 8, NGINX and PHP-FPM

Home Page: https://registry.hub.docker.com/u/pschmitt/owncloud/

License: GNU General Public License v3.0

Shell 100.00%

docker-owncloud's People

Contributors

mijime avatar mikew avatar pschmitt avatar r0l1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-owncloud's Issues

DB_HOST not getting into config.php

For some reason whenever I specify the DB_HOST, this does not propagate into the config.php file. The config.php file has 'dbhost' => '', instead of 'dbhost' => 'hostname.lan',

Class 'OCA\Files_Sharing\API\Server2Server' not found

I've tried from your image pulled from dockerhub and building my own from the cloned repo.. I'm going to keep looking and did run into this issue but I'm not seeing a permission issue.. yet this log entry remains.

2015/05/21 15:56:22 [error] 29#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'OCA\Files_Sharing\API\Server2Server' not found in /var/www/owncloud/ocs/routes.php on line 86" while reading response header from upstream, client: 10.10.10.77, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "10.10.10.4:10080"

Integrity check fails due to missing signature.json

Using the latest (9.0) image, the installation works but there is an error in the admin section saying that some files have not passed the integrity check. This is because owncloud introduced code signing which requires signature.json files in all app directories and in the "core" directory. I downloaded the 9.0.0 apps from the owcloud website, which fixed the error for the apps, but the check for the core directory still fails. I tried inserting core/signature.json from owncloud-9.0.0.tar.bz2 into the container but the versions seem to mismatch, since the hashes are incorrect according to the integrity check.

Environment vailables are not reflected on config.php

Hi,
Now I forked your dockerfile and customizing for my project, and facing difficult behavior.

I set some environment variables on docker run command, like:
docker run -e 'DB_USER=someuser' -d -p 8080:80 pschmitt/owncloud
After that, it seems the values are surely listed in autoconfig.php.
However, once I access to owncloud, config.php will be auto-generated without my variables and autoconfig.php is gone.
Do you have any idea to put some settings to config.php by docker run command (or editing dockerfile) ?
Thanks.

Table prefixes

The following line obliges you to have a table prefix which might not be the case if you import your owncloud database from another installation.
DB_TABLE_PREFIX=${DB_TABLE_PREFIX:-oc_}

Except if I missed something, setting the env var DB_TABLE_PREFIX as follows
docker run .... -e var= or -e var will both result as variable being unset and then set by default to oc_ in the container or set to your client env var value.

I have test with DB_TABLE_PREFIX='' & ="" both led to prefix being set in config.php to '""' or ''''.

I suggest you do remove the default value for table prefixes or allow "" or '' to be understood as empty strings by your sed script.

Broken?

Tried to start a new owncloud instance but neither the simple way nor the full configured run command works. I get no startpage.

initializing the container /var/www/owncloud/apps

Hi, for some reason when I run the container it's doesn't start.

*-v /srv/docker/owncloud/apps:/var/www/owncloud/apps *

Ok, I solve it running first the official docker images, removing /config / data and keeping /apps

docker run -d \
--name=owncloud \
-p 80:80 \
-v /local-path:/var/www/html/apps \
-v /local-path:/var/www/html/config \
-v /local-path:/var/www/html/data \
owncloud:9-fpm

After that running normal:

docker run -d \
  --name=owncloud \
  -h owncloud.example.com \
  -p 80:80 \
  -e 'ADMIN_USER=admin' \
  -e 'ADMIN_PASS=admin' \
  -e 'TIMEZONE=Europe/Madrid' \
  -v /srv/docker/owncloud/apps:/var/www/owncloud/apps \
  -v /srv/docker/owncloud/config:/var/www/owncloud/config \
  -v /srv/docker/owncloud/data:/var/www/owncloud/data \
   pschmitt/owncloud

-e 'HTTPS_ENABLED=true' \ issue

Hi, ssl won't start... * someone know why? I'm using CoreOs*

dnf -y install openssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /media/root/srv/docker/owncloud/owncloud.key -out /media/root/srv/docker/owncloud/owncloud.crt

-p 443:443 \
-e 'HTTPS_ENABLED=true' \
-v /srv/docker/owncloud/owncloud.crt:/etc/ssl/certs/owncloud.crt \
-v /srv/docker/owncloud/owncloud.key:/etc/ssl/certs/owncloud.key \

-e 'HTTPS_ENABLED=true' \ issue

Hi, ssl won't start...
someone know why? I'm using CoreOs

dnf -y install openssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /media/root/srv/docker/owncloud/owncloud.key -out /media/root/srv/docker/owncloud/owncloud.crt

-p 443:443 \
-e 'HTTPS_ENABLED=true' \
-v /srv/docker/owncloud/owncloud.crt:/etc/ssl/certs/owncloud.crt \
-v /srv/docker/owncloud/owncloud.key:/etc/ssl/certs/owncloud.key \

ability to use custom path

it would be nice, I needed to use some ugly hacks to get it working.
the easiest way would be to link /var/www/owncloud/custompath to /var/www/owncloud/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.