Skip to content

Instantly share code, notes, and snippets.

@pbredenberg
Created April 25, 2017 00:58
Show Gist options
  • Save pbredenberg/f05e5b3a6c03fbbe5c479e6b655d06c3 to your computer and use it in GitHub Desktop.
Save pbredenberg/f05e5b3a6c03fbbe5c479e6b655d06c3 to your computer and use it in GitHub Desktop.
Workaround bash script to add a theme to the bitnami redmine-docker image (tested on macOS)
#!/bin/bash
REDMINE=$(docker-compose ps | grep redminedocker_redmine | awk '{ print $1 }')
echo -n "Enter your theme name: "
read THEME
if [ "$THEME" != "" ]; then
echo $THEME
docker exec -it $REDMINE ln -sf /bitnami/redmine/public/themes/$THEME /opt/bitnami/redmine/public/themes/
else
echo "Please enter a theme name."
fi
@pbredenberg
Copy link
Author

Instructions:

Place your theme folder in /path/to/docker/project/redmine_data/public/themes/your_theme_directory

Put the script in the same directory as your docker project.

Make script executable:
chmod +x /path/to/add-theme.sh

Run the script:
./add-theme.sh

Follow the prompt and enter the name of your theme. If you have problems, check that the name of your image matches the grep in the script. In this gist that is named redminedocker_redmine

This has been tested on:
macOS 10.12.4,
Docker Community Version 17.03.1-ce-mac5 (16048)
Bitnami Docker Redmine 3.3.3-r0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment