Skip to content

Commit 9679523

Browse files
author
Markus M. May
committed
prepare latest version
1 parent 3037591 commit 9679523

File tree

9 files changed

+345
-7
lines changed

9 files changed

+345
-7
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[bumpversion]
2-
current_version = 3.3.1-2
2+
current_version = 3.3.1-1
33
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)-(?P<image_version>\d+)
4-
serialize =
4+
serialize =
55
{major}.{minor}.{patch}-{image_version}
66
commit = True
77
tag = True
@@ -10,4 +10,3 @@ tag_name = {new_version}
1010
[bumpversion:part:image_version]
1111

1212
[bumpversion:file:project.yml]
13-

Changelog.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
# Changelog
22

3-
**3.3.1-1**
3+
**3.3.1-3**
4+
- add plugins github_hook and SCM-creator
5+
- removed all SCM binaries except git
6+
- disabled all SCMs except git after initial install (by using settings.yml)
47
- fork to devopskube
58
- add .bumpversion.cfg and project.yml and Jenkinsfile
6-
- add plugins
9+
10+
**3.3.1-2**
11+
- this is a non released version
12+
13+
**3.3.1-1**
14+
- this is a non released version
15+
16+
**3.3.1-0**
17+
- this is a non released version
718

819
**3.3.1**
920
- redmine: upgrade to v.3.3.1

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@
5050

5151
Dockerfile to build a [Redmine](http://www.redmine.org/) container image.
5252

53+
Adds the following plugins to the base Redmine Image (which is forked):
54+
55+
* [Github Hook](https://github.com/koppen/redmine_github_hook))
56+
* [SCM Creator](http://projects.andriylesyuk.com/projects/scm-creator/wiki)
57+
58+
Furthermore we are initially installing the settings.yml, so that on an initial install, only the Git SCM is enabled (this is, so that there is no realy config required, but the SCM Creator is working as expected).
59+
5360
## Version
5461

5562
Current Version: **devopskube/redmine:3.3.1-2**
@@ -633,6 +640,11 @@ Below is the complete list of parameters that can be set using environment varia
633640
- **INCOMING_EMAIL_PRIORITY**: Name of the target priority.
634641
- **INCOMING_EMAIL_PRIVATE**: Create new issues as private.
635642
- **INCOMING_EMAIL_ALLOW_OVERRIDE**: Allow email content to override attributes specified by previous options. Value is a comma separated list of attributes. See [redmine documentation](http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails#Fetching-emails-from-an-IMAP-server) for acceptable values.
643+
- **REDMINE_SCM_DIR**: The folder, in which the Git repositories are stored (Using the [SCM Creator Plugin](http://projects.andriylesyuk.com/projects/scm-creator/wiki/Configuration)). Defaults to '/home/redmine/data/git'.
644+
- **SCM_AUTO_CREATE**: Specifies if repositories are created automatically during project creation. Defaults to 'force'. See [SCM Creator Plugin](http://projects.andriylesyuk.com/projects/scm-creator/wiki/Configuration) for details.
645+
- **SCM_FORCE_REPO**: Specifies if the Repository module should be enabled on project creation. Defaults to 'true'. See [SCM Creator Plugin](http://projects.andriylesyuk.com/projects/scm-creator/wiki/Configuration) for details.
646+
- **SCM_DENY_DELETE**: If the deny_delete option is set to true deleting repositories created automatically by redmine is not allowed anymore. Defaults to 'true'. See [SCM Creator Plugin](http://projects.andriylesyuk.com/projects/scm-creator/wiki/Configuration) for details.
647+
- **MAIL_SENDER**: Initial Configuration of the Sender of the Emails. Defaults to 'redmine@example.net'.
636648

637649
# Plugins
638650

assets/build/install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ if [[ -d ${GEM_CACHE_DIR} ]]; then
7474
chown -R ${REDMINE_USER}: ${REDMINE_INSTALL_DIR}/vendor/cache
7575
fi
7676

77+
# install redmine SCM-Creator http://projects.andriylesyuk.com/projects/scm-creator/wiki
78+
exec_as_redmine git clone https://github.com/lejmr/SCM-Creator.git ${REDMINE_INSTALL_DIR}/plugins/redmine_scm
79+
exec_as_redmine mkdir -p ${REDMINE_DATA_DIR}/git
80+
7781
# install redmine-github-hook (https://github.com/koppen/redmine_github_hook)
7882
exec_as_redmine git clone https://github.com/koppen/redmine_github_hook.git ${REDMINE_INSTALL_DIR}/plugins/redmine_github_hook
7983

@@ -191,5 +195,5 @@ stderr_logfile=${REDMINE_LOG_DIR}/supervisor/%(program_name)s.log
191195
EOF
192196

193197
# purge build dependencies and cleanup apt
194-
apt-get purge -y --auto-remove ${BUILD_DEPENDENCIES}
198+
DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove ${BUILD_DEPENDENCIES}
195199
rm -rf /var/lib/apt/lists/*

assets/runtime/config/redmine/scm.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
production:
2+
auto_create: {{SCM_AUTO_CREATE}}
3+
force_repository: {{SCM_FORCE_REPO}}
4+
deny_delete: {{SCM_DENY_DELETE}}
5+
git:
6+
path: {{REDMINE_SCM_DIR}}
7+
git: /usr/bin/git
8+
options: --bare
9+
update_server_info: true
10+
git_ext: true
11+
append: .git
Lines changed: 274 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,274 @@
1+
# Redmine - project management software
2+
# Copyright (C) 2006-2016 Jean-Philippe Lang
3+
#
4+
# This program is free software; you can redistribute it and/or
5+
# modify it under the terms of the GNU General Public License
6+
# as published by the Free Software Foundation; either version 2
7+
# of the License, or (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program; if not, write to the Free Software
16+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17+
18+
19+
# DO NOT MODIFY THIS FILE !!!
20+
# Settings can be defined through the application in Admin -> Settings
21+
22+
app_title:
23+
default: Redmine
24+
app_subtitle:
25+
default: Project management
26+
welcome_text:
27+
default:
28+
login_required:
29+
default: 0
30+
security_notifications: 1
31+
self_registration:
32+
default: '2'
33+
security_notifications: 1
34+
lost_password:
35+
default: 1
36+
security_notifications: 1
37+
unsubscribe:
38+
default: 1
39+
password_min_length:
40+
format: int
41+
default: 8
42+
security_notifications: 1
43+
# Maximum password age in days
44+
password_max_age:
45+
format: int
46+
default: 0
47+
security_notifications: 1
48+
# Maximum number of additional email addresses per user
49+
max_additional_emails:
50+
format: int
51+
default: 5
52+
# Maximum lifetime of user sessions in minutes
53+
session_lifetime:
54+
format: int
55+
default: 0
56+
security_notifications: 1
57+
# User session timeout in minutes
58+
session_timeout:
59+
format: int
60+
default: 0
61+
security_notifications: 1
62+
attachment_max_size:
63+
format: int
64+
default: 5120
65+
attachment_extensions_allowed:
66+
default:
67+
attachment_extensions_denied:
68+
default:
69+
issues_export_limit:
70+
format: int
71+
default: 500
72+
activity_days_default:
73+
format: int
74+
default: 30
75+
per_page_options:
76+
default: '25,50,100'
77+
search_results_per_page:
78+
default: 10
79+
mail_from:
80+
default: {{MAIL_SENDER}}
81+
bcc_recipients:
82+
default: 1
83+
plain_text_mail:
84+
default: 0
85+
text_formatting:
86+
default: textile
87+
cache_formatted_text:
88+
default: 0
89+
wiki_compression:
90+
default: ""
91+
default_language:
92+
default: en
93+
force_default_language_for_anonymous:
94+
default: 0
95+
force_default_language_for_loggedin:
96+
default: 0
97+
host_name:
98+
default: localhost:3000
99+
protocol:
100+
default: http
101+
security_notifications: 1
102+
feeds_limit:
103+
format: int
104+
default: 15
105+
gantt_items_limit:
106+
format: int
107+
default: 500
108+
# Maximum size of files that can be displayed
109+
# inline through the file viewer (in KB)
110+
file_max_size_displayed:
111+
format: int
112+
default: 512
113+
diff_max_lines_displayed:
114+
format: int
115+
default: 1500
116+
enabled_scm:
117+
serialized: true
118+
default:
119+
- Git
120+
security_notifications: 1
121+
autofetch_changesets:
122+
default: 1
123+
sys_api_enabled:
124+
default: 0
125+
security_notifications: 1
126+
sys_api_key:
127+
default: ''
128+
security_notifications: 1
129+
commit_cross_project_ref:
130+
default: 0
131+
commit_ref_keywords:
132+
default: 'refs,references,IssueID'
133+
commit_update_keywords:
134+
serialized: true
135+
default: []
136+
commit_logtime_enabled:
137+
default: 0
138+
commit_logtime_activity_id:
139+
format: int
140+
default: 0
141+
# autologin duration in days
142+
# 0 means autologin is disabled
143+
autologin:
144+
format: int
145+
default: 0
146+
# date format
147+
date_format:
148+
default: ''
149+
time_format:
150+
default: ''
151+
user_format:
152+
default: :firstname_lastname
153+
format: symbol
154+
cross_project_issue_relations:
155+
default: 0
156+
# Enables subtasks to be in other projects
157+
cross_project_subtasks:
158+
default: 'tree'
159+
parent_issue_dates:
160+
default: 'derived'
161+
parent_issue_priority:
162+
default: 'derived'
163+
parent_issue_done_ratio:
164+
default: 'derived'
165+
link_copied_issue:
166+
default: 'ask'
167+
issue_group_assignment:
168+
default: 0
169+
default_issue_start_date_to_creation_date:
170+
default: 1
171+
notified_events:
172+
serialized: true
173+
default:
174+
- issue_added
175+
- issue_updated
176+
mail_handler_body_delimiters:
177+
default: ''
178+
mail_handler_excluded_filenames:
179+
default: ''
180+
mail_handler_api_enabled:
181+
default: 0
182+
security_notifications: 1
183+
mail_handler_api_key:
184+
default:
185+
security_notifications: 1
186+
issue_list_default_columns:
187+
serialized: true
188+
default:
189+
- tracker
190+
- status
191+
- priority
192+
- subject
193+
- assigned_to
194+
- updated_on
195+
issue_list_default_totals:
196+
serialized: true
197+
default: []
198+
display_subprojects_issues:
199+
default: 1
200+
issue_done_ratio:
201+
default: 'issue_field'
202+
default_projects_public:
203+
default: 1
204+
default_projects_modules:
205+
serialized: true
206+
default:
207+
- issue_tracking
208+
- time_tracking
209+
- news
210+
- documents
211+
- files
212+
- wiki
213+
- repository
214+
- boards
215+
- calendar
216+
- gantt
217+
default_projects_tracker_ids:
218+
serialized: true
219+
default:
220+
# Role given to a non-admin user who creates a project
221+
new_project_user_role_id:
222+
format: int
223+
default: ''
224+
sequential_project_identifiers:
225+
default: 0
226+
# encodings used to convert repository files content to UTF-8
227+
# multiple values accepted, comma separated
228+
default_users_hide_mail:
229+
default: 1
230+
repositories_encodings:
231+
default: ''
232+
# encoding used to convert commit logs to UTF-8
233+
commit_logs_encoding:
234+
default: 'UTF-8'
235+
repository_log_display_limit:
236+
format: int
237+
default: 100
238+
ui_theme:
239+
default: ''
240+
emails_footer:
241+
default: |-
242+
You have received this notification because you have either subscribed to it, or are involved in it.
243+
To change your notification preferences, please click here: http://hostname/my/account
244+
gravatar_enabled:
245+
default: 0
246+
openid:
247+
default: 0
248+
security_notifications: 1
249+
gravatar_default:
250+
default: ''
251+
start_of_week:
252+
default: ''
253+
rest_api_enabled:
254+
default: 1
255+
security_notifications: 1
256+
jsonp_enabled:
257+
default: 1
258+
security_notifications: 1
259+
default_notification_option:
260+
default: 'only_my_events'
261+
emails_header:
262+
default: ''
263+
thumbnails_enabled:
264+
default: 0
265+
thumbnails_size:
266+
format: int
267+
default: 100
268+
non_working_week_days:
269+
serialized: true
270+
default:
271+
- '6'
272+
- '7'
273+
new_item_menu_tab:
274+
default: 2

assets/runtime/env-defaults

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,12 @@ if [[ $REDMINE_HTTPS == true ]]; then
130130
else
131131
NGINX_X_FORWARDED_PROTO=${NGINX_X_FORWARDED_PROTO:-\$scheme}
132132
fi
133+
134+
## SCM CREATOR PLUGIN
135+
REDMINE_SCM_DIR=${REDMINE_SCM_DIR:-$REDMINE_DATA_DIR/git}
136+
SCM_AUTO_CREATE=${SCM_AUTO_CREATE:-force}
137+
SCM_FORCE_REPO=${SCM_FORCE_REPO:-true}
138+
SCM_DENY_DELETE=${SCM_DENY_DELETE:-true}
139+
140+
## INITIAL SETTINGS.YML SETTINGS
141+
MAIL_SENDER=${MAIL_SENDER:-redmine@example.net}

0 commit comments

Comments
 (0)