forked from svscorp/adop-nexus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (28 loc) · 949 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM sonatype/nexus:2.11.2-06
MAINTAINER Robert Northard, <robert.a.northard>
ENV LDAP_ENABLED=true \
CONTEXT_PATH=/nexus \
NEXUS_HOME=/sonatype-work/ \
DEBUG_LOGGING=false \
LDAP_SEARCH_BASE="" \
LDAP_URL="" \
LDAP_PORT=389 \
LDAP_AUTH_PROTOCOL=ldap \
LDAP_USER_EMAIL_ATTRIBUTE=mail \
LDAP_GROUPS_AS_ROLES=true \
LDAP_GROUP_BASE_DN=ou=groups \
LDAP_GROUP_ID_ATTRIBUTE=cn \
LDAP_GROUP_MEMBER_ATTRIBUTE=uniqueMember \
LDAP_GROUP_OBJECT_CLASS=groupOfUniqueNames \
LDAP_PREFERRED_PASSWORD_ENCODING=crypt \
LDAP_USER_ID_ATTRIBUTE=uid \
LDAP_USER_PASSWORD_ATTRIBUTE=userPassword \
LDAP_USER_OBJECT_CLASS=inetOrgPerson \
LDAP_USER_BASE_DN=ou-people \
LDAP_USER_REAL_NAME_ATTRIBUTE=cn \
LDAP_GROUP_MEMBER_FORMAT=dn
USER root
COPY resources/nexus.sh /usr/local/bin/
COPY resources/ /resources/
RUN chmod u+x /usr/local/bin/nexus.sh
ENTRYPOINT ["/usr/local/bin/nexus.sh"]