0.11.10-r1 release
Removes VOLUME instruction from the Dockerfile
This commit is contained in:
parent
8874614d9f
commit
6374c25415
|
|
@ -1,4 +1,4 @@
|
|||
FROM bitnami/minideb-extras:jessie-r17
|
||||
FROM bitnami/minideb-extras:jessie-r19
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
|
||||
|
|
@ -6,13 +6,13 @@ LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|||
# Install required system packages and dependencies
|
||||
RUN install_packages ghostscript imagemagick libbz2-1.0 libc6 libgcc1 libmysqlclient18 libncurses5 libreadline6 libsqlite3-0 libssl1.0.0 libstdc++6 libtinfo5 zlib1g
|
||||
RUN bitnami-pkg install node-4.8.3-0 --checksum 82ac604d6b97bd2070c8ff613de802096e5addd644d6817745ca2aa71d689aa3
|
||||
RUN bitnami-pkg install mysql-client-10.1.24-0 --checksum 3ac33998eefe09a8013036d555f2a8265fc446a707e8d61c63f8621f4a3e5dae
|
||||
RUN bitnami-pkg install mysql-client-10.1.25-0 --checksum 513ef36ab1efa5570332547c2027ae29886fe4bb56472de11ca083423a3fe366
|
||||
RUN bitnami-pkg unpack ghost-0.11.10-0 --checksum a8861781147c28e450b41ea34b3284dc04fcda79976740726a4d69e51dc82bd7
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
ENV BITNAMI_APP_NAME="ghost" \
|
||||
BITNAMI_IMAGE_VERSION="0.11.10-r0" \
|
||||
BITNAMI_IMAGE_VERSION="0.11.10-r1" \
|
||||
BLOG_TITLE="User's Blog" \
|
||||
GHOST_EMAIL="user@example.com" \
|
||||
GHOST_HOST="" \
|
||||
|
|
@ -32,7 +32,6 @@ ENV BITNAMI_APP_NAME="ghost" \
|
|||
|
||||
|
||||
|
||||
VOLUME ["/bitnami/ghost"]
|
||||
|
||||
EXPOSE 2368
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ services:
|
|||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
volumes:
|
||||
- 'mariadb_data:/bitnami/mariadb'
|
||||
- 'mariadb_data:/bitnami'
|
||||
ghost:
|
||||
image: 'bitnami/ghost:0'
|
||||
labels:
|
||||
|
|
@ -13,7 +13,7 @@ services:
|
|||
ports:
|
||||
- '80:2368'
|
||||
volumes:
|
||||
- 'ghost_data:/bitnami/ghost'
|
||||
- 'ghost_data:/bitnami'
|
||||
depends_on:
|
||||
- mariadb
|
||||
environment:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[](https://circleci.com/gh/bitnami/bitnami-docker-ghost/tree/master)
|
||||
[](http://slack.oss.bitnami.com)
|
||||
[](http://slack.oss.bitnami.com)
|
||||
[](https://raw.githubusercontent.com/bitnami/bitnami-docker-ghost/master/kubernetes.yml)
|
||||
|
||||
# What is Ghost?
|
||||
|
|
@ -13,15 +13,15 @@ https://ghost.org/
|
|||
## Docker Compose
|
||||
|
||||
```bash
|
||||
$ curl -LO https://raw.githubusercontent.com/bitnami/bitnami-docker-ghost/master/docker-compose.yml
|
||||
$ docker-compose up
|
||||
$ curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-ghost/master/docker-compose.yml > docker-compose.yml
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
## Kubernetes
|
||||
|
||||
> **WARNING:** This is a beta configuration, currently unsupported.
|
||||
|
||||
Get the raw URL pointing to the kubernetes.yml manifest and use kubectl to create the resources on your Kubernetes cluster like so:
|
||||
Get the raw URL pointing to the `kubernetes.yml` manifest and use `kubectl` to create the resources on your Kubernetes cluster like so:
|
||||
|
||||
```bash
|
||||
$ kubectl create -f https://raw.githubusercontent.com/bitnami/bitnami-docker-ghost/master/kubernetes.yml
|
||||
|
|
@ -54,13 +54,13 @@ services:
|
|||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
volumes:
|
||||
- 'mariadb_data:/bitnami/mariadb'
|
||||
- 'mariadb_data:/bitnami'
|
||||
ghost:
|
||||
image: 'bitnami/ghost:latest'
|
||||
ports:
|
||||
- '80:2368'
|
||||
volumes:
|
||||
- 'ghost_data:/bitnami/ghost'
|
||||
- 'ghost_data:/bitnami'
|
||||
depends_on:
|
||||
- mariadb
|
||||
volumes:
|
||||
|
|
@ -83,7 +83,9 @@ If you want to run the application manually instead of using docker-compose, the
|
|||
2. Start a MariaDB database in the network generated:
|
||||
|
||||
```bash
|
||||
$ docker run -d --name mariadb -e ALLOW_EMPTY_PASSWORD=yes --net=ghost-tier bitnami/mariadb
|
||||
$ docker run -d --name mariadb --net=ghost-tier \
|
||||
-e ALLOW_EMPTY_PASSWORD=yes \
|
||||
bitnami/mariadb
|
||||
```
|
||||
|
||||
*Note:* You need to give the container a name in order to Ghost to resolve the host
|
||||
|
|
@ -96,22 +98,22 @@ If you want to run the application manually instead of using docker-compose, the
|
|||
|
||||
Then you can access your application at http://your-ip/
|
||||
|
||||
> **Note!** If you want to access your application from a public IP or hostname you need to properly configured Ghost . You can handle it adjusting the configuration of the instance by setting the environment variable "GHOST_HOST" to your public IP or hostname.
|
||||
> **Note!** If you want to access your application from a public IP or hostname you need to properly configured Ghost . You can handle it adjusting the configuration of the instance by setting the environment variable `GHOST_HOST` to your public IP or hostname.
|
||||
|
||||
## Persisting your application
|
||||
|
||||
If you remove every container and volume 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 remove the container all your data and configurations will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.
|
||||
|
||||
For persistence of the Ghost deployment, the above examples define docker volumes namely `mariadb_data` and `ghost_data`. The Ghost application state will persist as long as these volumes are not removed.
|
||||
For persistence you should mount a volume at the `/bitnami` path. Additionally you should mount a volume for [persistence of the MariaDB data](https://github.com/bitnami/bitnami-docker-mariadb#persisting-your-database).
|
||||
|
||||
The above examples define docker volumes namely `mariadb_data` and `ghost_data`. The Ghost application state will persist as long as these volumes are not removed.
|
||||
|
||||
To avoid inadvertent removal of these volumes you can [mount host directories as data volumes](https://docs.docker.com/engine/tutorials/dockervolumes/). Alternatively you can make use of volume plugins to host the volume data.
|
||||
|
||||
|
||||
> **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.
|
||||
|
||||
### Mount host directories as data volumes with Docker Compose
|
||||
|
||||
This requires a minor change to the `docker-compose.yml` template previously shown:
|
||||
|
||||
```yaml
|
||||
version: '2'
|
||||
|
||||
|
|
@ -121,7 +123,7 @@ services:
|
|||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
volumes:
|
||||
- /path/to/mariadb-persistence:/bitnami/mariadb
|
||||
- /path/to/mariadb-persistence:/bitnami
|
||||
ghost:
|
||||
image: bitnami/ghost:latest
|
||||
depends_on:
|
||||
|
|
@ -129,7 +131,7 @@ services:
|
|||
ports:
|
||||
- '80:2368'
|
||||
volumes:
|
||||
- '/path/to/ghost-persistence:/bitnami/ghost'
|
||||
- '/path/to/ghost-persistence:/bitnami'
|
||||
```
|
||||
|
||||
### Mount host directories as data volumes using the Docker command line
|
||||
|
|
@ -145,9 +147,9 @@ In this case you need to specify the directories to mount on the run command. Th
|
|||
2. Create a MariaDB container with host volume:
|
||||
|
||||
```bash
|
||||
$ docker run -d --name mariadb -e ALLOW_EMPTY_PASSWORD=yes \
|
||||
--net ghost-tier \
|
||||
--volume /path/to/mariadb-persistence:/bitnami/mariadb \
|
||||
$ docker run -d --name mariadb --net ghost-tier \
|
||||
-e ALLOW_EMPTY_PASSWORD=yes \
|
||||
--volume /path/to/mariadb-persistence:/bitnami \
|
||||
bitnami/mariadb:latest
|
||||
```
|
||||
|
||||
|
|
@ -156,9 +158,8 @@ In this case you need to specify the directories to mount on the run command. Th
|
|||
3. Create the Ghost container with host volumes:
|
||||
|
||||
```bash
|
||||
$ docker run -d --name ghost -p 80:2368 \
|
||||
--net ghost-tier \
|
||||
--volume /path/to/ghost-persistence:/bitnami/ghost \
|
||||
$ docker run -d --name ghost -p 80:2368 --net ghost-tier \
|
||||
--volume /path/to/ghost-persistence:/bitnami \
|
||||
bitnami/ghost:latest
|
||||
```
|
||||
|
||||
|
|
@ -177,7 +178,15 @@ Bitnami provides up-to-date versions of MariaDB and Ghost, including security pa
|
|||
* For docker-compose: `$ docker-compose stop ghost`
|
||||
* For manual execution: `$ docker stop ghost`
|
||||
|
||||
3. (For non-compose execution only) Create a [backup](#backing-up-your-application) if you have not mounted the ghost folder in the host.
|
||||
3. Take a snapshot of the application state
|
||||
|
||||
```bash
|
||||
$ rsync -a /path/to/ghost-persistence /path/to/ghost-persistence.bkp.$(date +%Y%m%d-%H.%M.%S)
|
||||
```
|
||||
|
||||
Additionally, [snapshot the MariaDB data](https://github.com/bitnami/bitnami-docker-mariadb#step-2-stop-and-backup-the-currently-running-container)
|
||||
|
||||
You can use these snapshots to restore the application state should the upgrade fail.
|
||||
|
||||
4. Remove the currently running container
|
||||
|
||||
|
|
@ -190,10 +199,13 @@ Bitnami provides up-to-date versions of MariaDB and Ghost, including security pa
|
|||
* For manual execution ([mount](#mount-persistent-folders-manually) the directories if needed): `docker run --name ghost bitnami/ghost:latest`
|
||||
|
||||
# Configuration
|
||||
|
||||
## Environment variables
|
||||
When you start the ghost image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the docker run command line. If you want to add a new environment variable:
|
||||
|
||||
When you start the ghost image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the docker run command line. If you want to add a new environment variable:
|
||||
|
||||
* For docker-compose add the variable name and value under the application section:
|
||||
|
||||
```yaml
|
||||
ghost:
|
||||
image: bitnami/ghost:latest
|
||||
|
|
@ -206,7 +218,10 @@ ghost:
|
|||
* For manual execution add a `-e` option with each variable and value:
|
||||
|
||||
```bash
|
||||
$ docker run -d -e GHOST_PASSWORD=my_password -p 80:2368 --name ghost -v /your/local/path/bitnami/ghost:/bitnami/ghost --network=ghost-tier bitnami/ghost
|
||||
$ docker run -d -p 80:2368 --name ghost --network=ghost-tier \
|
||||
-e GHOST_PASSWORD=my_password \
|
||||
-v /your/local/path/bitnami/ghost:/bitnami \
|
||||
bitnami/ghost
|
||||
```
|
||||
|
||||
Available variables:
|
||||
|
|
@ -249,46 +264,28 @@ This would be an example of SMTP configuration using a GMail account:
|
|||
* For manual execution:
|
||||
|
||||
```bash
|
||||
$ docker run -d -e SMTP_HOST=smtp.gmail.com -e SMTP_SERVICE=GMail -e SMTP_USER=your_email@gmail.com -e SMTP_PASSWORD=your_password -p 80:2368 --name ghost -v /your/local/path/bitnami/ghost:/bitnami/ghost --network=ghost-tier bitnami/ghost
|
||||
$ docker run -d -p 80:2368 --name ghost --network=ghost-tier \
|
||||
-e SMTP_HOST=smtp.gmail.com \
|
||||
-e SMTP_SERVICE=GMail \
|
||||
-e SMTP_USER=your_email@gmail.com \
|
||||
-e SMTP_PASSWORD=your_password \
|
||||
-v /your/local/path/bitnami/ghost:/bitnami \
|
||||
bitnami/ghost
|
||||
```
|
||||
|
||||
# Backing up your application
|
||||
|
||||
To backup your application data follow these steps:
|
||||
|
||||
1. Stop the running container:
|
||||
|
||||
* For docker-compose: `$ docker-compose stop ghost`
|
||||
* For manual execution: `$ docker stop ghost`
|
||||
|
||||
2. Copy the Ghost data folder in the host:
|
||||
|
||||
```bash
|
||||
$ docker cp /your/local/path/bitnami:/bitnami/ghost
|
||||
```
|
||||
|
||||
# Restoring a backup
|
||||
|
||||
To restore your application using backed up data simply mount the folder with Ghost 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/bitnami-docker-ghost/issues), or submit a
|
||||
[pull request](https://github.com/bitnami/bitnami-docker-ghost/pulls) with your contribution.
|
||||
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-ghost/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-ghost/pulls) with your contribution.
|
||||
|
||||
# Issues
|
||||
|
||||
If you encountered a problem running this container, you can file an
|
||||
[issue](https://github.com/bitnami/bitnami-docker-ghost/issues). For us to provide better support,
|
||||
be sure to include the following information in your issue:
|
||||
If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/bitnami-docker-ghost/issues). For us to provide better support, be sure to include the following information in your issue:
|
||||
|
||||
- Host OS and version
|
||||
- Docker version (`docker version`)
|
||||
- Output of `docker info`
|
||||
- Version of this container (`echo $BITNAMI_IMAGE_VERSION` inside the container)
|
||||
- The command you used to run the container, and any relevant output you saw (masking any sensitive
|
||||
information)
|
||||
- The command you used to run the container, and any relevant output you saw (masking any sensitive information)
|
||||
|
||||
# Community
|
||||
|
||||
|
|
@ -298,7 +295,7 @@ Discussions are archived at [bitnami-oss.slackarchive.io](https://bitnami-oss.sl
|
|||
|
||||
# License
|
||||
|
||||
Copyright 2016 Bitnami
|
||||
Copyright 2016-2017 Bitnami
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
Loading…
Reference in New Issue