Ghost Storage Rokka
A rokka Ghost storage adapter.
Installation
Install from source
- Go into Ghost root directory
yarn add rokka@2cd core/server/adapters/storagegit checkout https://github.com/rokka-io/ghost-adapter-rokka.git rokka
Install from Yarn (not yet working)
- Go into Ghost root directory
- Download the adapter:
yarn add ghost-storage-rokkamv node_modules/ghost-storage-rokka core/server/adapters/storage
- Done, go configure
Install on Docker
Here's an example of using this adapter with a containerized Ghost:
FROM ghost:3-alpine as rokkaWORKDIR $GHOST_INSTALL/currentRUN su-exec node yarn add ghost-storage-rokka@2 FROM ghost:3-alpineCOPY --chown=node:node --from=rokka $GHOST_INSTALL/current/node_modules $GHOST_INSTALL/current/node_modulesCOPY --chown=node:node --from=rokka $GHOST_INSTALL/current/node_modules/ghost-storage-rokka $GHOST_INSTALL/current/core/server/adapters/storage/ghost-storage-rokkaRUN set -ex; \ su-exec node ghost config storage.active ghost-storage-rokka; \ su-exec node ghost config storage.ghost-storage-rokka.key ABCEHJFZ; \ su-exec node ghost config storage.ghost-storage-rokka.organization yourorganization; \
Here, we use the Ghost CLI to set some pre-defined values.
Configuration
Check out configuration.json.dist for a complete example.
- Ensure to disable Ghost Image Optimisation
- You ned to replace the
key
andorganization
with your values.
Recommended configuration
defaultStack = somestack
you can define some default rokka stack for the important images
Development
To enable debug logs, set the following environment variable:
DEBUG=ghost:ghost:ghost-storage-rokka