-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 1.25 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
FROM redmine:4.1.1-passenger
LABEL MAINTAINERS="Lars Möllendorf <[email protected]>"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
# gitolite dependencies
apt-get install -yq build-essential libssh2-1 libssh2-1-dev cmake libgpg-error-dev \
pkg-config gitolite3 sudo locales
COPY sudoers.d.redmine /etc/sudoers.d/redmine
RUN chmod 644 /etc/sudoers.d/redmine && \
adduser --system --shell /bin/bash --group --disabled-password --home /home/git git
# supervisor installation &&
# create directory for child images to store configuration in
RUN apt-get -y install supervisor && \
mkdir -p /var/log/supervisor && \
mkdir -p /etc/supervisor/conf.d && \
mkdir -p /var/run/supervisor
# supervisor base configuration
COPY supervisor.conf /etc/supervisor.conf
COPY ssh.conf /etc/supervisor/conf.d/ssh.conf
COPY passenger.conf /etc/supervisor/conf.d/passenger.conf
# sshd setup
RUN mkdir /run/sshd
# Set the locale
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# default command
CMD ["supervisord", "-c", "/etc/supervisor.conf"]