Skip to content

Commit fa4ee5e

Browse files
committed
Upgraded to be used with redmine 6
1 parent c17c73d commit fa4ee5e

File tree

7 files changed

+15
-9
lines changed

7 files changed

+15
-9
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM redmine:5.1-bookworm
2-
3-
RUN apt update && apt install -y gcc make
4-
COPY ./Gemfile /usr/src/redmine/plugins/periodictask/Gemfile
5-
RUN bundle install --with=development
1+
FROM redmine:6.0-bookworm
62

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

7+
RUN apt update && apt install -y gcc make
8+
COPY ./Gemfile /usr/src/redmine/plugins/periodictask/Gemfile
9+
RUN bundle install --with=development
10+
1111
ENTRYPOINT [ "" ]
1212

1313
CMD [ "rails", "server", "-e", "development", "-b", "0.0.0.0" ]

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ If you cannot migrate to a newer version and still need support, you can hire me
2323
<td>3.x</td>
2424
<td>4.x</td>
2525
<td>5.x</td>
26+
<td>6.x</td>
2627
</tr>
2728
<tr>
2829
<td>main</td>
@@ -31,6 +32,7 @@ If you cannot migrate to a newer version and still need support, you can hire me
3132
<td>?</td>
3233
<td>?</td>
3334
<td>✅</td>
35+
<td>✅</td>
3436
</tr>
3537
<tr>
3638
<td>redmine4</td>
@@ -39,6 +41,7 @@ If you cannot migrate to a newer version and still need support, you can hire me
3941
<td>✅</td>
4042
<td>✅</td>
4143
<td>🚫</td>
44+
<td>🚫</td>
4245
</tr>
4346
<tr>
4447
<td>redmine2</td>
@@ -47,6 +50,7 @@ If you cannot migrate to a newer version and still need support, you can hire me
4750
<td>🚫</td>
4851
<td>🚫</td>
4952
<td>🚫</td>
53+
<td>🚫</td>
5054
</tr>
5155
</table>
5256

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

123127
- [yzzy](https://github.com/yzzy)
124128
- [s-andy](https://github.com/s-andy)
129+
- [tuzumkuru](https://github.com/tuzumkuru) redmine v6 support
125130

126131
## License
127132

app/controllers/periodictask_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
class PeriodictaskController < ApplicationController
2-
unloadable
32

43
class << self
54
alias_method :before_action, :before_filter

app/models/periodictask.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class Periodictask < ActiveRecord::Base
2-
unloadable
2+
include Redmine::I18n
3+
34
belongs_to :project
45
belongs_to :assigned_to, :class_name => 'Principal', :foreign_key => 'assigned_to_id'
56
belongs_to :issue_category, :class_name => 'IssueCategory', :foreign_key => 'issue_category_id'

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
- redmine_fix_permissions
1919

2020
redmine_fix_permissions:
21-
image: redmine:5.1-bookworm
21+
image: redmine:6.0-bookworm
2222
volumes:
2323
- ./.volumes/sqlite:/usr/src/redmine/sqlite
2424
command: >

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
name 'Redmine Periodictask plugin'
1111
author 'Julian Perelli'
1212
description 'Plugin to create a task periodically by defining an interval'
13-
version '5.0.0'
13+
version '6.0.0'
1414
url 'https://github.com/jperelli/Redmine-Periodic-Task/'
1515
author_url 'https://jperelli.com.ar/'
1616

provision.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# run copy bundle, bundle install, all with volume
44

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

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

0 commit comments

Comments
 (0)