mirror of
https://github.com/bitnami/containers.git
synced 2026-03-18 15:27:52 +08:00
Merge branch 'master' into updateOwncloud911
Conflicts: Dockerfile rootfs/app-entrypoint.sh
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
[](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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 ..."
|
||||||
|
|||||||
Reference in New Issue
Block a user