fix: remove .git directories and enforce with_advisory_lock installation
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
47181d3298
commit
21359f1c58
@ -41,7 +41,7 @@ RUN echo 'gem "sqlite3", "~>1.7.0", :require => true' >> Gemfile.local
|
||||
RUN echo 'gem "mysql2", "~> 0.5.0", :require => true' >> Gemfile.local
|
||||
RUN echo 'gem "pg", :require => true' >> Gemfile.local
|
||||
RUN echo 'gem "puma", :require => true' >> Gemfile.local
|
||||
|
||||
RUN echo 'gem "with_advisory_lock", :require => true' >> Gemfile.local
|
||||
RUN gem install --user-install bundler
|
||||
|
||||
#
|
||||
@ -91,6 +91,9 @@ RUN bundle config set --local without 'development test'
|
||||
RUN bundle config set --local path '/home/redmine/.local/share/gem'
|
||||
RUN bundle install
|
||||
|
||||
# clean up all .git directories
|
||||
RUN find -name '.git' -exec rm -rf "{}" \; || true
|
||||
|
||||
FROM docker.io/ruby:3.3-bookworm
|
||||
|
||||
RUN apt-get -qy update && apt-get -qy upgrade
|
||||
|
22
README.md
22
README.md
@ -1,6 +1,3 @@
|
||||
---
|
||||
lang: EN_US
|
||||
---
|
||||
|
||||
# Redmine Container Image
|
||||
|
||||
@ -8,6 +5,25 @@ lang: EN_US
|
||||
|
||||
This repository contains the Containerfile and associated scripts for a container image that runs [Redmine](https://www.redmine.org/).
|
||||
|
||||
The 5.1 Container image, at the moment still available under the :latest tag, is deprecated and only basic updates for redmine and operating system will be provided
|
||||
as long as my own kubernetes cluster is running.
|
||||
|
||||
Future work will only go into the Version 6 Container Image.
|
||||
|
||||
The new Container Image (all tags starting with 6) is **not** based on the original Redmine Docker Image anymore.
|
||||
I created the Container file from scratch using the ruby:3.3-bookworm image as a base.
|
||||
|
||||
The Design goals for the Image are:
|
||||
|
||||
- no root user, everything runs under a non-root user (default to redmine user)
|
||||
- root filesystem can be mounted read-only (in kubernetes environment)
|
||||
- reproduceable restarts (no updates during start of the container, except database migrations)
|
||||
- easy integration with sidekiq and redis
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
This Container Image is at the moment based on the original [Redmine Dockerfile](https://hub.docker.com/_/redmine)
|
||||
|
||||
This image includes the following additional plugins:
|
||||
|
Loading…
Reference in New Issue
Block a user