Skip to content

mrstanwell/rpi-owncloud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FORK WARNING

This is a fork of the jchaney owncloud docker image. It has been altered to build ontop of an unofficial Raspbian container, for the RaspberryPi. Non-sqlite is not yet working. Perhaps with ARG in Docker 1.9 the FROM can be parameterized and this fork will be unecessary. Additionally SPDY support has been disabled, as it was exhausting the RAM on the RPi.

docker-owncloud

Docker image for ownCloud with security in mind.

The build instructions are tracked on GitHub. Automated builds are hosted on Docker Hub.

Why using this image

Getting the image

You have two options to get the image:

  1. Build it yourself with make build.
  2. Download it via docker pull jchaney/owncloud (automated build).

ownCloud up and running

Checkout the Makefile for an example or just run make owncloud which will setup a ownCloud container instance (called "owncloud"). After that, just head over to http://localhost/ and give it a try. You can now create an admin account. For testing purposes you can use SQLite (but remember to use a real database in production).

Running ownCloud in production

Setup a separate container running your database server and link it to the ownCloud container. For running in production, you need to provide a TLS key and certificate. The Makefile defaults to /etc/ssl/private/ssl-cert-snakeoil.key and /etc/ssl/certs/ssl-cert-snakeoil.pem. Make sure those files exist or extend the Makefile (you can include this Makefile and overwrite some variables in your own Makefile). To generate self signed once you can run the following command:

make-ssl-cert generate-default-snakeoil

To setup ownCloud with MariaDB as backend, just run:

make owncloud-production

In the initial ownCloud setup, you need to supply the database user, password, database name and database host which you can look up via:

make owncloud-mariadb-get-pw

That should be it 😄

Installing 3party apps

Just write the command(s) needed to install apps in a configuration file, mount it in the container and run

oc-install-3party-apps /owncloud/path/to/your/config /var/www/owncloud/apps_persistent

in your container. Checkout the example configuration and the script which does the work for details.

Related projects

Maintainer

The current maintainer is Robin ypid Schneider.

List of previous maintainers:

  1. Josh Chaney
  2. silvio

License

This project is distributed under GNU Affero General Public License, Version 3.

About

docker image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 52.5%
  • Nginx 23.6%
  • Shell 18.6%
  • PHP 5.3%