-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
76 lines (61 loc) · 3.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM redmine:5.1.3-bookworm
LABEL maintainer="<[email protected]>"
ENV REDMINE_PATH=/usr/src/redmine \
REDMINE_LOCAL_PATH=/var/local/redmine
# Install dependencies and plugins
RUN apt-get update -q \
&& apt-get install -y --no-install-recommends apt-utils cron unzip netcat-traditional vim curl python3-pip build-essential python3-dev python3-wheel python3-setuptools imagemagick\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# RUN pip3 install PyYAML "ruamel.yaml<0.18.0"
RUN pip install PyYAML --break-system-packages
COPY plugins/* ${REDMINE_LOCAL_PATH}/plugins/
RUN mkdir -p ${REDMINE_LOCAL_PATH}/github \
&& mkdir -p ${REDMINE_LOCAL_PATH}/scripts \
&& mkdir -p ${REDMINE_LOCAL_PATH}/backup \
&& cd ${REDMINE_PATH}/plugins \
&& git clone https://github.com/agileware-jp/redmine_banner.git \
&& git clone https://github.com/readyredmine/redmine_silencer \
&& git clone https://github.com/rgtk/redmine_impersonate.git \
&& git clone https://github.com/rgtk/redmine_editauthor.git \
&& git clone -b 5.0.x https://github.com/Loriowar/redmine_issues_tree.git \
&& git clone https://github.com/jkraemer/stopwatch.git \
&& git clone https://github.com/two-pack/redmine_xlsx_format_issue_exporter.git \
&& git clone https://github.com/mikitex70/redmine_drawio.git \
&& git clone https://github.com/alphanodes/redmine_lightbox \
&& git clone -b 5.1-extended_watchers https://github.com/maxrossello/redmine_extended_watchers.git \
&& git clone http://github.com:/jperelli/Redmine-Periodic-Task.git periodictask \
&& unzip -d ${REDMINE_PATH}/plugins -o ${REDMINE_LOCAL_PATH}/plugins/redmine_agile-1_6_9-light.zip \
# && unzip -d ${REDMINE_PATH}/plugins -o ${REDMINE_LOCAL_PATH}/plugins/redmine_people-1_6_6-light.zip \
# redmine_people conflicts with redmine_extended_watchers
&& unzip -d ${REDMINE_PATH}/plugins -o ${REDMINE_LOCAL_PATH}/plugins/redmine_checklists-3_1_25-light.zip \
&& unzip -d ${REDMINE_PATH}/plugins -o ${REDMINE_LOCAL_PATH}/plugins/redminex-resources-1-2-1.zip \
&& cd ${REDMINE_PATH} \
&& chown -R redmine:redmine ${REDMINE_PATH} ${REDMINE_LOCAL_PATH} \
&& unzip -d ${REDMINE_PATH}/public/themes -o ${REDMINE_LOCAL_PATH}/plugins/edw-theme.zip
COPY entrypoint.sh \
scripts/receive_imap.sh \
scripts/update-repositories.sh \
scripts/update_configuration.py \
scripts/send_reminders.sh \
scripts/check_periodictasks.sh \
${REDMINE_LOCAL_PATH}/scripts/
COPY crontab ${REDMINE_LOCAL_PATH}/
COPY Gemfile.local $REDMINE_PATH/
COPY scripts/email_oauth.rake $REDMINE_PATH/lib/tasks/
WORKDIR $REDMINE_PATH
ADD patches/imap_scan_multiple_folders.patch \
patches/more_project_from_receiver_addresses.patch \
patches/subprojects_query_filter_fix.patch \
patches/notification_prefs_higher_prio.diff \
# https://www.redmine.org/issues/29321
patches/move_watchers_to_issues_content_area.diff \
${REDMINE_PATH}/
RUN patch -p0 < imap_scan_multiple_folders.patch \
&& patch -p0 < more_project_from_receiver_addresses.patch \
&& patch -p0 < subprojects_query_filter_fix.patch \
&& patch -p0 < move_watchers_to_issues_content_area.diff \
&& patch -p1 < notification_prefs_higher_prio.diff
RUN gosu redmine bundle install
ENTRYPOINT ["/var/local/redmine/scripts/entrypoint.sh"]
CMD []