Add django_ldap_auth

In the ldap.Dockerfile the django_ldap_auth module is installed to
enable authentication againt LDAP servers.
This commit is contained in:
Tobias Genannt 2018-02-22 14:49:38 +01:00
parent 3af803f481
commit 6a01a3379d
7 changed files with 108 additions and 1 deletions

View file

@ -38,8 +38,13 @@ URL_DOCKERHUB_TAG="https://registry.hub.docker.com/v2/${DOCKERHUB_REPO}/tags/lis
AUTHORIZATION_HEADER="Authorization: Bearer ${BEARER_TOKEN}"
ALREADY_BUILT="$($CURL -H "${AUTHORIZATION_HEADER}" "${URL_DOCKERHUB_TAG}" | jq -e ".tags | any(.==\"${VERSION}\")")"
VARIANTS=( "ldap" )
if [ "$ALREADY_BUILT" == "false" ]; then
./build.sh "${VERSION}" $@
for var in "${VARIANTS[@]}" ; do
VARIANT=$var ./build.sh "${VERSION}" $@
done
else
echo "${VERSION} already exists on https://hub.docker.com/r/${DOCKERHUB_REPO}"
fi