Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrade: Container does not start, if plugins are installed with native extensions #331

Closed
carstencodes opened this issue May 14, 2024 · 2 comments

Comments

@carstencodes
Copy link

Hi,

after updating to a new version (redmine 5.1.2, bookworm), the container keeps restarting because one of the plugins I installed requires the bigdecimal gem. This is a native extension and hence must be compiled in the container.

My current workaround is:

  • Replace the entrypoint with the following script:
#!/bin/sh

set -e

apt-get update && apt-get install -y --no-install recommends build-essential

/docker-entypoint.sh rails server -b 0.0.0.0

Is it possible to add build-essential to the standard image?

Regards

Carsten

@tianon
Copy link
Member

tianon commented May 14, 2024

Unfortunately, we have no intention of adding build tools to the standard images (primarily because they are not necessary for running Redmine itself, and if we add them, users who do not need them have no way to remove them).

I would suggest making yourself a very small Dockerfile which pre-installs the dependencies you need (including gem install, which will speed up your container runtime), and either automating rebuilds of that or using docker compose's functionality to build from a Dockerfile instead of deploying an image directly.

@carstencodes
Copy link
Author

Thanks for the quick reply.

I am using a notification client (watchttower), that looks for new revisions of the image. I would loose this feature, as building a new image would remove the reference to this image.

My workaround is fine and working, but the other thing would be more comfortable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants