Closed Zian502 closed 10 months ago
requirements=( 'sentry-auth-ldap>=23.6.0'
)
apt-get update apt-get install -y --no-install-recommends build-essential libldap2-dev libsasl2-dev
pip install ${requirements[@]}
apt-get purge -y --auto-remove build-essential rm -rf /var/lib/apt/lists/*
mkdir -p /etc/ldap && echo "TLS_CACERT /etc/ssl/certs/ca-certificates.crt" > /etc/ldap/ldap.conf
有上传到 https://pypi.org/ 吗?
Please see the README
!/bin/bash
requirements=( 'sentry-auth-ldap>=23.6.0'
You can add other packages here, just like requirements.txt
)
Install the dependencies of ldap
apt-get update apt-get install -y --no-install-recommends build-essential libldap2-dev libsasl2-dev
pip install ${requirements[@]}
Clean up to shrink the image size
apt-get purge -y --auto-remove build-essential rm -rf /var/lib/apt/lists/*
Support ldap over tls (ldaps://) protocol
mkdir -p /etc/ldap && echo "TLS_CACERT /etc/ssl/certs/ca-certificates.crt" > /etc/ldap/ldap.conf