Sign inSign up

lusis/opendj

By lusis

Updated almost 11 years ago

OpenDJ

Image
0

424

lusis/opendj repository overview

Properties file used

hostname 			                  = ldap.local
ldapPort 			                          = 1389
generateSelfSignedCertficiate  = true
#enableStartTLS 			         = true
#ldapsPort 			                 = 1636
jmxPort 			                         = 1689
adminConnectorPort 		         = 4444
rootUserDN 			                 = cn=Directory Manager
rootUserPassword 		         = ldappass
baseDN 				                 = dc=myldap
skipPortCheck 			          = true
doNotStart 			                 = true
#usePkcs11Keystore 		         = true
#keyStorePassword 		         = password

You can download OpenDJ from here:

http://download.forgerock.org/downloads/opendj/20140426020002/index.html

The admin control panel can be used to point to the admin port in the container.

Dockerfile contents:

FROM phusion/baseimage:0.9.9
MAINTAINER John E. Vincent
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y openssh-client
RUN apt-get install -y openjdk-6-jre
RUN apt-get install -y curl
RUN apt-get install -y unzip
ADD http://download.forgerock.org/downloads/opendj/20140426020002/OpenDJ-2.7.0-20140426.zip /
RUN useradd -d /var/lib/opendj -m -s /bin/bash opendj
RUN chown opendj:opendj /OpenDJ-2.7.0-20140426.zip
RUN su -s /bin/bash opendj -c "unzip /OpenDJ-2.7.0-20140426.zip -d /var/lib/"
ADD opendj.properties /var/lib/opendj/opendj.properties
RUN su -s /bin/bash opendj -c "cd /var/lib/opendj;./setup -n -i --propertiesFilePath opendj.properties"
RUN /usr/sbin/enable_insecure_key
RUN mkdir /etc/service/opendj
ADD opendj.sh /etc/service/opendj/run
EXPOSE 1389 1686 1689 8080
CMD ["/sbin/my_init"]

runit run script:

#!/bin/sh
ulimit -n 10240
# Source function library
cd /var/lib/opendj

exec /sbin/setuser opendj bin/start-ds -N

Tag summary

Content type

Image

Digest

sha256:c4a57f960

Size

285.9 MB

Last updated

almost 11 years ago

docker pull lusis/opendj