Skip to content

Commit

Permalink
Upgraded to be used with redmine 5
Browse files Browse the repository at this point in the history
  • Loading branch information
jperelli committed Apr 24, 2024
1 parent a8fbd3c commit c17c73d
Show file tree
Hide file tree
Showing 21 changed files with 235 additions and 982 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/Gemfile.lock
.volumes
7 changes: 0 additions & 7 deletions .travis-database.yml

This file was deleted.

121 changes: 0 additions & 121 deletions .travis-init.sh

This file was deleted.

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM redmine:5.1-bookworm

RUN apt update && apt install -y gcc make
COPY ./Gemfile /usr/src/redmine/plugins/periodictask/Gemfile
RUN bundle install --with=development

RUN echo "development:\n adapter: sqlite3\n database: /usr/src/redmine/sqlite/redmine.db" > /usr/src/redmine/config/database.yml
RUN mkdir -p /usr/src/redmine/sqlite
RUN chown -R 999:999 /usr/src/redmine/sqlite

ENTRYPOINT [ "" ]

CMD [ "rails", "server", "-e", "development", "-b", "0.0.0.0" ]
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gem 'business_time', '>= 0.7.6'
gem 'business_time', '= 0.13.0'

rails_gem = Bundler.rubygems.find_name('rails').first
rails_version = rails_gem.version unless rails_gem.nil?
Expand Down
Loading

0 comments on commit c17c73d

Please sign in to comment.