New Ghost 0.9.0 version
This commit is contained in:
parent
beea541a98
commit
4fa19de5c4
|
|
@ -3,7 +3,7 @@ FROM gcr.io/stacksmith-images/ubuntu:14.04-r8
|
||||||
MAINTAINER Bitnami <containers@bitnami.com>
|
MAINTAINER Bitnami <containers@bitnami.com>
|
||||||
|
|
||||||
ENV BITNAMI_APP_NAME=ghost \
|
ENV BITNAMI_APP_NAME=ghost \
|
||||||
BITNAMI_IMAGE_VERSION=0.7.9-r2 \
|
BITNAMI_IMAGE_VERSION=0.9.0-r0 \
|
||||||
PATH=/opt/bitnami/node/bin:/opt/bitnami/mysql/bin:$PATH
|
PATH=/opt/bitnami/node/bin:/opt/bitnami/mysql/bin:$PATH
|
||||||
|
|
||||||
# Additional modules required
|
# Additional modules required
|
||||||
|
|
@ -11,7 +11,7 @@ RUN bitnami-pkg install node-4.4.5-1 --checksum 650b85fb3f78ee0662be107b582c17dd
|
||||||
RUN bitnami-pkg install mysql-client-10.1.13-4 --checksum 14b45c91dd78b37f0f2366712cbe9bfdf2cb674769435611955191a65dbf4976
|
RUN bitnami-pkg install mysql-client-10.1.13-4 --checksum 14b45c91dd78b37f0f2366712cbe9bfdf2cb674769435611955191a65dbf4976
|
||||||
|
|
||||||
# Install ghost
|
# Install ghost
|
||||||
RUN bitnami-pkg unpack ghost-0.7.9-2 --checksum 43895a7ed0489f8dc59c6b0b7111ad56ed7ea9aa95c073bc405a3f5c3d843189
|
RUN bitnami-pkg unpack ghost-0.9.0-0 --checksum 31483b690d8f688d53f55e3702d37a2abd3c486207b4e6d923de24826ed6d80b
|
||||||
|
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,8 @@ If you want to run the application manually instead of using docker-compose, the
|
||||||
|
|
||||||
Then you can access your application at http://your-ip/
|
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.
|
||||||
|
|
||||||
## Persisting your application
|
## 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 are using docker-compose your data will be persistent as long as you don't remove `application_data` data volume. 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 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 are using docker-compose your data will be persistent as long as you don't remove `application_data` data volume. If you have run the containers manually or you want to mount the folders with persistent data in your host follow the next steps:
|
||||||
|
|
||||||
|
|
@ -151,7 +153,7 @@ application:
|
||||||
ports:
|
ports:
|
||||||
- 80:2368
|
- 80:2368
|
||||||
environment:
|
environment:
|
||||||
- GHOST_PASSWORD=my_password
|
- GHOST_HOST=my_host
|
||||||
```
|
```
|
||||||
|
|
||||||
* For manual execution add a `-e` option with each variable and value:
|
* For manual execution add a `-e` option with each variable and value:
|
||||||
|
|
@ -161,11 +163,12 @@ application:
|
||||||
```
|
```
|
||||||
|
|
||||||
Available variables:
|
Available variables:
|
||||||
|
- `GHOST_HOST`: Hostname for Ghost.
|
||||||
|
- `GHOST_PORT`: Ghost application port. Default: **80**
|
||||||
- `GHOST_USERNAME`: Ghost application username. Default: **user**
|
- `GHOST_USERNAME`: Ghost application username. Default: **user**
|
||||||
- `GHOST_PASSWORD`: Ghost application password. Default: **bitnami1**
|
- `GHOST_PASSWORD`: Ghost application password. Default: **bitnami1**
|
||||||
- `GHOST_EMAIL`: Ghost application email. Default: **user@example.com**
|
- `GHOST_EMAIL`: Ghost application email. Default: **user@example.com**
|
||||||
- `BLOG_TITLE`: Ghost blog title. Default: **User's Blog**
|
- `BLOG_TITLE`: Ghost blog title. Default: **User's Blog**
|
||||||
- `GHOST_HOSTPORT`: Ghost application port. Default: **80**
|
|
||||||
- `MARIADB_USER`: Root password for the MariaDB.
|
- `MARIADB_USER`: Root password for the MariaDB.
|
||||||
- `MARIADB_HOST`: Hostname for MariaDB server. Default: **mariadb**
|
- `MARIADB_HOST`: Hostname for MariaDB server. Default: **mariadb**
|
||||||
- `MARIADB_PORT`: Port used by MariaDB server. Default: **3306**
|
- `MARIADB_PORT`: Port used by MariaDB server. Default: **3306**
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ function initialize {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set default values
|
# Set default values
|
||||||
|
export GHOST_PORT=${GHOST_PORT:-"80"}
|
||||||
export GHOST_USERNAME=${GHOST_USERNAME:-"user"}
|
export GHOST_USERNAME=${GHOST_USERNAME:-"user"}
|
||||||
export GHOST_PASSWORD=${GHOST_PASSWORD:-"bitnami1"}
|
export GHOST_PASSWORD=${GHOST_PASSWORD:-"bitnami1"}
|
||||||
export GHOST_EMAIL=${GHOST_EMAIL:-"user@example.com"}
|
export GHOST_EMAIL=${GHOST_EMAIL:-"user@example.com"}
|
||||||
export BLOG_TITLE=${BLOG_TITLE:-"User's Blog"}
|
export BLOG_TITLE=${BLOG_TITLE:-"User's Blog"}
|
||||||
export GHOST_HOSTPORT=${GHOST_HOSTPORT:-"80"}
|
|
||||||
export MARIADB_USER=${MARIADB_USER:-"root"}
|
export MARIADB_USER=${MARIADB_USER:-"root"}
|
||||||
export MARIADB_HOST=${MARIADB_HOST:-"mariadb"}
|
export MARIADB_HOST=${MARIADB_HOST:-"mariadb"}
|
||||||
export MARIADB_PORT=${MARIADB_PORT:-"3306"}
|
export MARIADB_PORT=${MARIADB_PORT:-"3306"}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"email": "{{$global.env.GHOST_EMAIL}}",
|
"email": "{{$global.env.GHOST_EMAIL}}",
|
||||||
"blogTitle": "{{$global.env.BLOG_TITLE}}",
|
"blogTitle": "{{$global.env.BLOG_TITLE}}",
|
||||||
"host": "{{$global.env.GHOST_HOST}}",
|
"host": "{{$global.env.GHOST_HOST}}",
|
||||||
"hostPort": "{{$global.env.GHOST_HOSTPORT}}",
|
"port": "{{$global.env.GHOST_PORT}}",
|
||||||
"databaseAdminUser": "{{$global.env.MARIADB_USER}}",
|
"databaseAdminUser": "{{$global.env.MARIADB_USER}}",
|
||||||
"databaseAdminPassword": "{{$global.env.MARIADB_PASSWORD}}",
|
"databaseAdminPassword": "{{$global.env.MARIADB_PASSWORD}}",
|
||||||
"databaseServerHost": "{{$global.env.MARIADB_HOST}}",
|
"databaseServerHost": "{{$global.env.MARIADB_HOST}}",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue