From a6f45d9a7d3d1add516a6bef01c1d0b1e085ab9a Mon Sep 17 00:00:00 2001 From: Yuya Takeyama Date: Sun, 8 Apr 2018 17:58:21 +0900 Subject: [PATCH 1/2] Align the path of config file with the book In the book, the config file is registered like below: $ kubectl create cm --from-file ghost-config.js ghost-config --- 14-4-ghost.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14-4-ghost.yaml b/14-4-ghost.yaml index 6e534ce..15c297f 100644 --- a/14-4-ghost.yaml +++ b/14-4-ghost.yaml @@ -18,7 +18,7 @@ spec: command: - sh - -c - - cp /ghost-config/config.js /var/lib/ghost/config.js + - cp /ghost-config/ghost-config.js /var/lib/ghost/config.js && /entrypoint.sh npm start volumeMounts: - mountPath: /ghost-config From e027be679b87b7cbd625fca7da5b2a2a2de7f40b Mon Sep 17 00:00:00 2001 From: Yuya Takeyama Date: Sun, 8 Apr 2018 18:09:48 +0900 Subject: [PATCH 2/2] Align the Docker image of Ghost 1.22.1 --- 14-4-ghost.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14-4-ghost.yaml b/14-4-ghost.yaml index 15c297f..f553ac0 100644 --- a/14-4-ghost.yaml +++ b/14-4-ghost.yaml @@ -19,7 +19,7 @@ spec: - sh - -c - cp /ghost-config/ghost-config.js /var/lib/ghost/config.js - && /entrypoint.sh npm start + && docker-entrypoint.sh node current/index.js volumeMounts: - mountPath: /ghost-config name: config