initial
This commit is contained in:
32
Dockerfile
Normal file
32
Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
FROM mariadb:latest
|
||||
|
||||
LABEL Maintainer="Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>"
|
||||
LABEL ImageName="registry.gitlab.com/wolutator/mariadb-with-ldap-pam"
|
||||
LABEL AlternativeImageName="wollud1969/mariadb-with-ldap-pam"
|
||||
|
||||
ENV LDAPBASE "DC=hottis,DC=de"
|
||||
ENV LDAPURI "ldap://ldap.hottis.de:389"
|
||||
ENV LDAPBINDDB ""
|
||||
ENV LDAPBINDPW ""
|
||||
|
||||
RUN \
|
||||
apt-get update && \
|
||||
env DEBIAN_FRONTEND=noninteractive apt-get -yq install libpam-ldap && \
|
||||
env DEBIAN_FRONTEND=noninteractive apt-get -yq install pamtester
|
||||
|
||||
COPY docker-entrypoint.sh-head /usr/local/bin
|
||||
COPY pam.conf-tail /etc/pam.conf-tail
|
||||
COPY ldap.conf-tmpl /etc/ldap.conf-tmpl
|
||||
|
||||
RUN \
|
||||
cd /usr/local/bin && \
|
||||
tail -n +2 docker-entrypoint.sh > docker-entrypoint.sh-tail && \
|
||||
cat docker-entrypoint.sh-head docker-entrypoint.sh-tail > docker-entrypoint.sh && \
|
||||
cd /etc && \
|
||||
cat pam.conf-tail >> pam.conf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user