Merge branch 'master' into updateOwncloud911

Conflicts:
	Dockerfile
	rootfs/app-entrypoint.sh
This commit is contained in:
Juan Ariza
2016-10-07 14:14:44 +02:00
4 changed files with 9 additions and 5 deletions

View File

@@ -23,4 +23,4 @@ EXPOSE 80 443
ENTRYPOINT ["/app-entrypoint.sh"] ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["harpoon", "start", "--foreground", "apache"] CMD ["nami", "start", "--foreground", "apache"]

View File

@@ -1,3 +1,5 @@
[![Docker Hub Automated Build](http://container.checkforupdates.com/badges/bitnami/owncloud)](https://hub.docker.com/r/bitnami/owncloud/)
# What is ownCloud? # What is ownCloud?
ownCloud is a file sharing server that puts the control and security of your own data back into your hands. ownCloud is a file sharing server that puts the control and security of your own data back into your hands.

View File

@@ -15,6 +15,8 @@ services:
- 'php_data:/bitnami/php' - 'php_data:/bitnami/php'
depends_on: depends_on:
- mariadb - mariadb
environment:
- OWNCLOUD_HOST=localhost
volumes: volumes:
mariadb_data: mariadb_data:
driver: local driver: local

View File

@@ -3,14 +3,14 @@ set -e
function initialize { function initialize {
# Package can be "installed" or "unpacked" # Package can be "installed" or "unpacked"
status=`harpoon inspect $1` status=`nami inspect $1`
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
# Clean up inputs # Clean up inputs
inputs="" inputs=""
if [[ -f /$1-inputs.json ]]; then if [[ -f /$1-inputs.json ]]; then
inputs=--inputs-file=/$1-inputs.json inputs=--inputs-file=/$1-inputs.json
fi fi
harpoon initialize $1 $inputs nami initialize $1 $inputs
fi fi
} }
@@ -26,8 +26,8 @@ export MARIADB_PORT=${MARIADB_PORT:-"3306"}
if [[ "$1" == "harpoon" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
for module in php apache owncloud; do for module in apache php owncloud; do
initialize $module initialize $module
done done
echo "Starting application ..." echo "Starting application ..."