Skip to content

Instantly share code, notes, and snippets.

@uilianries
Last active February 5, 2018 00:22
Show Gist options
  • Save uilianries/7c9fce7386742ca6268c3f3c5a156eb0 to your computer and use it in GitHub Desktop.
Save uilianries/7c9fce7386742ca6268c3f3c5a156eb0 to your computer and use it in GitHub Desktop.
CentOS6 + Conan + LDAP Authentication
FROM centos:6
ENV LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64/
ENV PATH=/opt/rh/python27/root/usr/bin:${PATH}
RUN yum update -y \
&& yum install -y centos-release-scl epel-release \
&& yum install -y python27 openssl-devel openldap-devel libgsasl-devel \
&& yum groupinstall -y "Development tools"
RUN alias python=/opt/rh/python27/root/usr/bin/python2.7 \
&& alias pip=/opt/rh/python27/root/usr/bin/pip2.7
RUN pip install -U pip \
&& pip install conan==1.0.1 \
&& conan user
RUN timeout 2s conan_server || true
RUN pip install conan-ldap-authentication==0.2.0
RUN sed -i 's/# custom_authenticator: my_authenticator/custom_authenticator: ldap_authentication/g' ${HOME}/.conan_server/server.conf
CMD ["conan_server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment