Reputation: 169
I'm trying to configure Redmine on an ECS Cluster using the redmine-alpine
image, but I'm encountering an issue with plugin installation.
I have configured an EFS volume for the plugins
and files
directories, and this setup works as expected but problems arise when I try to add a plugin named Redmine_oauth (https://www.redmine.org/plugins/redmine_oauth)
Here are the steps I follow to install the plugin. I execute these commands inside the container.
cd plugins
git clone https://github.com/kontron/redmine_oauth.git
chown -R www-data:www-data redmine_oauth
cd ..
apk add build-base
bundle install
This works temporarily, but if the container restarts for any reason, the plugin installation doesn't persist.
To make this work on ECS, I modified the container's start command in my task definition to include:
apk add build-base && rails server -b 0.0.0.0
(I'm using Terraform for the task definition so it's exactly that code) :
entryPoint: ["/docker-entrypoint.sh"],
command = ["sh", "-c", "apk add build-base && rails server -b 0.0.0.0"]
But the container continue to fail. I've got these errors (the same configuration works just before the plugins was installed)
Please configure your config/database.yml first
/usr/local/lib/ruby/3.3.0/bundler/resolver.rb:354:in `raise_not_found!': Could not find gem 'jwt' in locally installed gems. (Bundler::GemNotFound)
How can I ensure that the plugin installation persists even after the container restarts? Is there a better way to handle this situation while using an ECS Cluster and the redmine-alpine image?
Upvotes: 0
Views: 28