Redmine + MySQL + LDAP + SVN + GIT deploy automation with docker-compose
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
redmine-integration/web/Dockerfile

37 lines
997 B

FROM alpine:edge
ARG MYSQL_ROOT_PASSWORD
ENV MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
RUN set -x \
&& addgroup -g 82 -S www-data \
&& adduser -u 82 -D -S -G www-data www-data
# 82 is the standard uid/gid for "www-data" in Alpine
RUN apk update ; \
apk add -v apache2 ; \
apk add -v apache2-proxy ; \
apk add -v mod_dav_svn ; \
apk add -v perl-dbi ; \
apk add -v perl-dbd-mysql ; \
apk add -v perl-ldap ; \
apk add -v subversion ;
# --chown=www-data:www-data
ADD ./redmine.conf /etc/apache2/conf.d/redmine.conf
#Not in edge repository, use test branch
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \
apache2-mod-perl \
; \
cd /etc/apache2/conf.d/ ; \
sed -i'' "s/redminedbpassword/$MYSQL_PASSWORD/g" redmine.conf \
;
#https://www.redmine.org/projects/redmine/repository/entry/trunk/extra/svn/Redmine.pm
ADD ./Redmine.pm /usr/local/lib/perl5/site_perl/Apache/Authn/Redmine.pm
STOPSIGNAL SIGWINCH
EXPOSE 80
CMD ["httpd", "-DFOREGROUND"]