Skip to content

Commit

Permalink
Upgraded to be used with redmine 6
Browse files Browse the repository at this point in the history
  • Loading branch information
jperelli committed Jan 10, 2025
1 parent c17c73d commit fa4ee5e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +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
FROM redmine:6.0-bookworm

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

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

ENTRYPOINT [ "" ]

CMD [ "rails", "server", "-e", "development", "-b", "0.0.0.0" ]
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ If you cannot migrate to a newer version and still need support, you can hire me
<td>3.x</td>
<td>4.x</td>
<td>5.x</td>
<td>6.x</td>
</tr>
<tr>
<td>main</td>
Expand All @@ -31,6 +32,7 @@ If you cannot migrate to a newer version and still need support, you can hire me
<td>?</td>
<td>?</td>
<td>✅</td>
<td>✅</td>
</tr>
<tr>
<td>redmine4</td>
Expand All @@ -39,6 +41,7 @@ If you cannot migrate to a newer version and still need support, you can hire me
<td>✅</td>
<td>✅</td>
<td>🚫</td>
<td>🚫</td>
</tr>
<tr>
<td>redmine2</td>
Expand All @@ -47,6 +50,7 @@ If you cannot migrate to a newer version and still need support, you can hire me
<td>🚫</td>
<td>🚫</td>
<td>🚫</td>
<td>🚫</td>
</tr>
</table>

Expand Down Expand Up @@ -122,6 +126,7 @@ In order to run the "cron checker": `docker compose exec redmine bundle exec rak

- [yzzy](https://github.com/yzzy)
- [s-andy](https://github.com/s-andy)
- [tuzumkuru](https://github.com/tuzumkuru) redmine v6 support

## License

Expand Down
1 change: 0 additions & 1 deletion app/controllers/periodictask_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class PeriodictaskController < ApplicationController
unloadable

class << self
alias_method :before_action, :before_filter
Expand Down
3 changes: 2 additions & 1 deletion app/models/periodictask.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class Periodictask < ActiveRecord::Base
unloadable
include Redmine::I18n

belongs_to :project
belongs_to :assigned_to, :class_name => 'Principal', :foreign_key => 'assigned_to_id'
belongs_to :issue_category, :class_name => 'IssueCategory', :foreign_key => 'issue_category_id'
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- redmine_fix_permissions

redmine_fix_permissions:
image: redmine:5.1-bookworm
image: redmine:6.0-bookworm
volumes:
- ./.volumes/sqlite:/usr/src/redmine/sqlite
command: >
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name 'Redmine Periodictask plugin'
author 'Julian Perelli'
description 'Plugin to create a task periodically by defining an interval'
version '5.0.0'
version '6.0.0'
url 'https://github.com/jperelli/Redmine-Periodic-Task/'
author_url 'https://jperelli.com.ar/'

Expand Down
1 change: 1 addition & 0 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# run copy bundle, bundle install, all with volume

docker compose run -e REDMINE_LANG=en redmine bin/rails db:migrate

# add initial data (tracker/task types, etc) to redmine database
# this script is run after redmine is up and running, so we can use the redmine container to run sql commands
Expand Down

0 comments on commit fa4ee5e

Please sign in to comment.