Create and run the ghost-themes container with the volume from your Ghost data container:
docker run --rm --volumes-from <your-data-container> bennetimo/ghost-themer
<your-data-container> is where your ghost themes live (your Ghost container or separate data container)
This will run a container that will install the default Casper theme into the
/var/lib/ghost/themes directory (or update it if it exists).
N.B. If a theme already exists that was not installed via Git, then it will be ignored.
Additional themes can be passed as arguments, in the form 'themename:githubrepo'.
For example to explicitly specify the Casper theme:
docker run --volumes-from <your-data-container> bennetimo/ghost-themer casper:TryGhost/Casper
You can list as many themes as you want, space separated. For example:
docker run --volumes-from <your-data-container> bennetimo/ghost-themer casper:TryGhost/Casper casper-copy:TryGhost/Casper
Would install two copies of Casper, one as 'casper' and one 'casper-copy'
The container only retrieves and extracts the theme files, so if there is additional post-installation setup needed for a particular theme then you still need to do that
ghost-themer will check for the existence of any themes specified, and if they exist already they will be updated instead by doing a
git pull origin master on the themes Github repo. So to update all of the themes, just run ghost-themer again.
The default theme directory is
/var/lib/ghost/themes. You can override this by setting the
THEMES_LOCATION environment variable when you start the container.
docker run --volumes-from <your-data-container> -e THEMES_LOCATION="/my/theme/directory" bennetimo/ghost-themer