mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
55 lines
1.8 KiB
Text
55 lines
1.8 KiB
Text
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Update/upgrade, configure LdapSaisie APT repo and install dependencies
|
|
RUN apt-get update && \
|
|
apt-get upgrade -y && \
|
|
apt-get install -y --force-yes wget gnupg lsb-release && \
|
|
wget -O - http://ldapsaisie.org/debian/ldapsaisie.gpg.key | apt-key add - && \
|
|
echo "deb http://ldapsaisie.org/debian $( lsb_release -c -s ) main" > /etc/apt/sources.list.d/ldapsaisie.list && \
|
|
apt-get update && \
|
|
apt-get install -y \
|
|
git \
|
|
slapd \
|
|
apache2 \
|
|
php-ldap \
|
|
libapache2-mod-php \
|
|
php-cli \
|
|
smarty3 \
|
|
php-net-ldap2 \
|
|
php-net-ftp \
|
|
php-mail \
|
|
php-mail-mime \
|
|
php-html2text \
|
|
php-console-table \
|
|
ldapvi \
|
|
locales \
|
|
sed \
|
|
bash-completion \
|
|
liquidprompt \
|
|
vim \
|
|
curl \
|
|
jq \
|
|
iproute2 \
|
|
net-tools \
|
|
composer \
|
|
php-cas \
|
|
php-zxcvbn \
|
|
php-phpseclib \
|
|
php-zip && \
|
|
apt-get clean && \
|
|
rm -fr rm -rf /var/lib/apt/lists/*
|
|
COPY rootfs /
|
|
# Install LdapSaisie from sources, configure slapd and load lsexample directory
|
|
RUN git clone https://gitlab.easter-eggs.com/ee/ldapsaisie.git /var/www/ldapsaisie && \
|
|
ln -s /var/www/ldapsaisie/src/bin/ldapsaisie.php /usr/local/sbin/ldapsaisie && \
|
|
ln -s /var/www/ldapsaisie/debian/ldapsaisie.bash-completion /usr/share/bash-completion/completions/ldapsaisie && \
|
|
chown www-data: -R /var/www/ldapsaisie/src/tmp/ && \
|
|
sed -i 's/^# fr_FR/fr_FR/' /etc/locale.gen && \
|
|
locale-gen && \
|
|
a2dissite 000-default && \
|
|
a2ensite ldapsaisie && \
|
|
a2enmod rewrite && \
|
|
/var/www/ldapsaisie/lsexample/restore_lsexample -v
|
|
# Install entrypoint
|
|
ENTRYPOINT /entrypoint.sh
|
|
EXPOSE 80 389
|