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"]
|
||||
|
||||
CMD ["harpoon", "start", "--foreground", "apache"]
|
||||
CMD ["nami", "start", "--foreground", "apache"]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
[](https://hub.docker.com/r/bitnami/owncloud/)
|
||||
|
||||
# What is ownCloud?
|
||||
|
||||
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'
|
||||
depends_on:
|
||||
- mariadb
|
||||
environment:
|
||||
- OWNCLOUD_HOST=localhost
|
||||
volumes:
|
||||
mariadb_data:
|
||||
driver: local
|
||||
|
||||
@@ -3,14 +3,14 @@ set -e
|
||||
|
||||
function initialize {
|
||||
# Package can be "installed" or "unpacked"
|
||||
status=`harpoon inspect $1`
|
||||
status=`nami inspect $1`
|
||||
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
|
||||
# Clean up inputs
|
||||
inputs=""
|
||||
if [[ -f /$1-inputs.json ]]; then
|
||||
inputs=--inputs-file=/$1-inputs.json
|
||||
fi
|
||||
harpoon initialize $1 $inputs
|
||||
nami initialize $1 $inputs
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ export MARIADB_PORT=${MARIADB_PORT:-"3306"}
|
||||
|
||||
|
||||
|
||||
if [[ "$1" == "harpoon" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
|
||||
for module in php apache owncloud; do
|
||||
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
|
||||
for module in apache php owncloud; do
|
||||
initialize $module
|
||||
done
|
||||
echo "Starting application ..."
|
||||
|
||||
Reference in New Issue
Block a user