diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c39da1d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM java:8 + +MAINTAINER tormakris + +ENV ADS_VERSION=2.0.0.AM26 + +ADD http://xenia.sote.hu/ftp/mirrors/www.apache.org//directory/apacheds/dist/ADS_VERSION/apacheds-ADS_VERSION.tar.gz /tmp/apacheds.tgz + +RUN tar -C /opt -xf /tmp/apacheds.tgz && rm /tmp/apacheds.tgz + +ENV ADS_INSTANCES=/ads \ + ADS_HOME=/opt/apacheds-${ADS_VERSION} + +# The default ports as described at http://directory.apache.org/apacheds/advanced-ug/1.2-network.html +EXPOSE 10389 10636 60088 60464 8080 8443 + +WORKDIR $ADS_HOME +RUN mkdir $ADS_INSTANCES && cp -r instances/default $ADS_INSTANCES + +VOLUME ["/ads"] + +ENTRYPOINT ["bin/apacheds.sh","run"] \ No newline at end of file