mirror of
https://github.com/bitnami/containers.git
synced 2026-03-18 15:27:52 +08:00
Updated ownCloud to 9.1.1
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
FROM gcr.io/stacksmith-images/ubuntu:14.04-r8
|
||||
FROM gcr.io/stacksmith-images/ubuntu:14.04-r10
|
||||
|
||||
MAINTAINER Bitnami <containers@bitnami.com>
|
||||
|
||||
ENV BITNAMI_APP_NAME=owncloud \
|
||||
BITNAMI_IMAGE_VERSION=9.1.0-r0 \
|
||||
BITNAMI_IMAGE_VERSION=9.1.1-r0 \
|
||||
PATH=/opt/bitnami/php/bin:/opt/bitnami/mysql/bin/:$PATH
|
||||
|
||||
# Additional modules required
|
||||
RUN bitnami-pkg unpack apache-2.4.20-0 --checksum ec415b0938e6df70327055c5be50f80b1307b785fa5bbd04c94a4077519e5dba
|
||||
RUN bitnami-pkg install mysql-client-10.1.13-1 --checksum e16c0ace5cb779b486e52af83a56367f26af16a25b4ab92d8f4293f1bf307107
|
||||
RUN bitnami-pkg install libphp-5.6.21-0 --checksum 8c1f994108eb17c69b00ac38617997b8ffad7a145a83848f38361b9571aeb73e
|
||||
RUN bitnami-pkg unpack php-5.6.22-0 --checksum 2439cf0adfc7cc21f15a6136059883e749958af83a082108e63a80ff3c5290c0
|
||||
RUN bitnami-pkg unpack php-5.6.26-1 --checksum b7a72ae78f9b19352bd400dfe027465c88a8643c0e5d9753f8d12f4ebae542a2
|
||||
RUN bitnami-pkg unpack apache-2.4.23-7 --checksum bcbe93875f4017ed762caf73774a35b449e22c441e6b3f619f386294ba0a5958
|
||||
RUN bitnami-pkg install mysql-client-10.1.13-4 --checksum 14b45c91dd78b37f0f2366712cbe9bfdf2cb674769435611955191a65dbf4976
|
||||
RUN bitnami-pkg install libphp-5.6.26-1 --checksum 327d070f57727f2ed4f0246d0e3f61c5a94f6366d21a7e7e4572fe6c9c8e8c2d
|
||||
|
||||
# Install owncloud
|
||||
RUN bitnami-pkg unpack owncloud-9.1.0-0 --checksum 4326501b26b8f438fb9486ac2dd32490945df5367813329e8af5de7239e9f3fe
|
||||
|
||||
RUN bitnami-pkg unpack owncloud-9.1.1-0 --checksum abf26188608e3dae5b809130ae4ccec66c6c804a4c67ad131f652de156bda1e1
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ services:
|
||||
volumes:
|
||||
- 'owncloud_data:/bitnami/owncloud'
|
||||
- 'apache_data:/bitnami/apache'
|
||||
- 'php_data:/bitnami/php'
|
||||
- 'php-data:/bitnami/php'
|
||||
depends_on:
|
||||
- mariadb
|
||||
volumes:
|
||||
@@ -61,9 +61,9 @@ If you want to run the application manually instead of using docker-compose, the
|
||||
$ docker run -d --name mariadb --net=owncloud_network bitnami/mariadb
|
||||
```
|
||||
|
||||
*Note:* You need to give the container a name in order to ownCloud to resolve the host
|
||||
*Note:* You need to give the container a name in order to OwnCloud to resolve the host
|
||||
|
||||
3. Run the ownCloud container:
|
||||
3. Run the OwnCloud container:
|
||||
|
||||
```
|
||||
$ docker run -d -p 80:80 --name owncloud --net=owncloud_network bitnami/owncloud
|
||||
@@ -75,7 +75,7 @@ Then you can access your application at http://your-ip/
|
||||
|
||||
## Persisting your application
|
||||
|
||||
If you remove every container all your data will be lost, and the next time you run the image the application will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed. If you are using docker-compose your data will be persistent as long as you don't remove `mariadb_data` and `application_data` containers. Those are data volume containers (See https://docs.docker.com/engine/userguide/containers/dockervolumes/ for more information). If you have run the containers manually or you want to mount the folders with persistent data in your host follow the next steps:
|
||||
If you remove every container all your data will be lost, and the next time you run the image the application will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed. If you are using docker-compose your data will be persistent as long as you don't remove `apache_data`, `php_data`, `mariadb_data` and `application_data` volumes.
|
||||
|
||||
> **Note!** If you have already started using your application, follow the steps on [backing](#backing-up-your-application) up to pull the data from your running container down to your host.
|
||||
|
||||
@@ -119,9 +119,9 @@ In this case you need to specify the directories to mount on the run command. Th
|
||||
$ docker run -d --name mariadb -v /your/local/path/bitnami/mariadb/data:/bitnami/mariadb/data -v /your/local/path/bitnami/mariadb/conf:/bitnami/mariadb/conf --network=owncloud_network bitnami/mariadb
|
||||
```
|
||||
|
||||
*Note:* You need to give the container a name in order to ownCloud to resolve the host
|
||||
*Note:* You need to give the container a name in order to OwnCloud to resolve the host
|
||||
|
||||
3. Run the ownCloud container:
|
||||
3. Run the OwnCloud container:
|
||||
|
||||
```
|
||||
$ docker run -d -p 80:80 --name owncloud -v /your/local/path/bitnami/owncloud:/bitnami/owncloud --network=owncloud_network bitnami/owncloud
|
||||
@@ -129,7 +129,7 @@ In this case you need to specify the directories to mount on the run command. Th
|
||||
|
||||
# Upgrade this application
|
||||
|
||||
Bitnami provides up-to-date versions of MariaDB and ownCloud, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container. We will cover here the upgrade of the ownCloud container. For the MariaDB upgrade see https://github.com/bitnami/bitnami-docker-mariadb/blob/master/README.md#upgrade-this-image
|
||||
Bitnami provides up-to-date versions of MariaDB and OwnCloud, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container. We will cover here the upgrade of the OwnCloud container. For the MariaDB upgrade see https://github.com/bitnami/bitnami-docker-mariadb/blob/master/README.md#upgrade-this-image
|
||||
|
||||
1. Get the updated images:
|
||||
|
||||
@@ -181,10 +181,12 @@ application:
|
||||
|
||||
Available variables:
|
||||
|
||||
- `OWNCLOUD_USERNAME`: ownCloud application username. Default: **user**
|
||||
- `OWNCLOUD_PASSWORD`: ownCloud application password. Default: **bitnami**
|
||||
- `OWNCLOUD_EMAIL`: ownCloud application email. Default: **user@example.com**
|
||||
- `OWNCLOUD_HOST`: ownCloud host to create application URLs. It can be either an IP or a domain. If left empty, it will be resolved to the machine IP.
|
||||
- `APACHE_HTTP_PORT`: Port used by Apache for HTTP. Default: **80**
|
||||
- `APACHE_HTTPS_PORT`: Port used by Apache for HTTPS. Default: **443**
|
||||
- `OWNCLOUD_USERNAME`: Owncloud application username. Default: **user**
|
||||
- `OWNCLOUD_PASSWORD`: Owncloud application password. Default: **bitnami**
|
||||
- `OWNCLOUD_EMAIL`: Owncloud application email. Default: **user@example.com**
|
||||
- `OWNCLOUD_WEB_SERVER_HOST`: Owncloud Host Server.
|
||||
- `MARIADB_PASSWORD`: Root password for the MariaDB.
|
||||
- `MARIADB_HOST`: Hostname for MariaDB server. Default: **mariadb**
|
||||
- `MARIADB_PORT`: Port used by MariaDB server. Default: **3306**
|
||||
@@ -198,7 +200,7 @@ To backup your application data follow these steps:
|
||||
* For docker-compose: `$ docker-compose stop owncloud`
|
||||
* For manual execution: `$ docker stop owncloud`
|
||||
|
||||
2. Copy the ownCloud data folder in the host:
|
||||
2. Copy the Owncloud data folder in the host:
|
||||
|
||||
```
|
||||
$ docker cp /your/local/path/bitnami:/bitnami/owncloud
|
||||
@@ -206,18 +208,18 @@ $ docker cp /your/local/path/bitnami:/bitnami/owncloud
|
||||
|
||||
# Restoring a backup
|
||||
|
||||
To restore your application using backed up data simply mount the folder with ownCloud data in the container. See [persisting your application](#persisting-your-application) section for more info.
|
||||
To restore your application using backed up data simply mount the folder with Owncloud data in the container. See [persisting your application](#persisting-your-application) section for more info.
|
||||
|
||||
# Contributing
|
||||
|
||||
We'd love for you to contribute to this container. You can request new features by creating an
|
||||
[issue](https://github.com/bitnami/owncloud/issues), or submit a
|
||||
[pull request](https://github.com/bitnami/owncloud/pulls) with your contribution.
|
||||
[issue](https://github.com/bitnami/bitnami-docker-owncloud/issues), or submit a
|
||||
[pull request](https://github.com/bitnami/bitnami-docker-owncloud/pulls) with your contribution.
|
||||
|
||||
# Issues
|
||||
|
||||
If you encountered a problem running this container, you can file an
|
||||
[issue](https://github.com/bitnami/owncloud/issues). For us to provide better support,
|
||||
[issue](https://github.com/bitnami/bitnami-docker-owncloud/issues). For us to provide better support,
|
||||
be sure to include the following information in your issue:
|
||||
|
||||
- Host OS and version
|
||||
@@ -229,7 +231,7 @@ information)
|
||||
|
||||
# License
|
||||
|
||||
Copyright (c) 2016 Bitnami
|
||||
Copyright 2016 Bitnami
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -5,6 +5,8 @@ function initialize {
|
||||
# Package can be "installed" or "unpacked"
|
||||
status=`harpoon inspect $1`
|
||||
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
|
||||
# Clean up inputs
|
||||
inputs=""
|
||||
if [[ -f /$1-inputs.json ]]; then
|
||||
inputs=--inputs-file=/$1-inputs.json
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user