mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 18:06:36 +02:00
add apacheds
This commit is contained in:
parent
70c4e53571
commit
7758b2240f
@ -70,6 +70,7 @@ A collection of delicious docker recipes.
|
||||
## Daemon
|
||||
|
||||
- [x] alpine-arm :+1:
|
||||
- [x] apacheds
|
||||
- [x] aria2 :+1:
|
||||
- [x] audiowaveform
|
||||
- [x] cadvisor
|
||||
|
40
apacheds/Dockerfile
Normal file
40
apacheds/Dockerfile
Normal file
@ -0,0 +1,40 @@
|
||||
#
|
||||
# Dockerfile for apacheds
|
||||
#
|
||||
|
||||
FROM debian:buster
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV GOSU_VERSION=1.11
|
||||
ENV GOSU_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64
|
||||
|
||||
ENV APACHEDS_VERSION=2.0.0.AM25
|
||||
ENV APACHEDS_FILE=apacheds-${APACHEDS_VERSION}-amd64.deb
|
||||
ENV APACHEDS_URL=http://mirrors.advancedhosters.com/apache/directory/apacheds/dist/${APACHEDS_VERSION}/${APACHEDS_FILE}
|
||||
ENV APACHEDS_USER=apacheds
|
||||
ENV APACHEDS_GROUP=apacheds
|
||||
ENV APACHEDS_DATA=/var/lib/apacheds
|
||||
ENV APACHEDS_INSTANCE=default
|
||||
ENV APACHEDS_INSTANCE_DIR=${APACHEDS_DATA}/${APACHEDS_INSTANCE}
|
||||
|
||||
RUN set -xe \
|
||||
&& apt update \
|
||||
&& apt install -y \
|
||||
apt-utils \
|
||||
curl \
|
||||
ldap-utils \
|
||||
openjdk-11-jre-headless \
|
||||
procps \
|
||||
&& curl -sSL ${GOSU_URL} > /usr/local/bin/gosu \
|
||||
&& chmod +x /usr/local/bin/gosu \
|
||||
&& gosu nobody true \
|
||||
&& curl -sSL ${APACHEDS_URL} > ${APACHEDS_FILE} \
|
||||
&& dpkg -i ${APACHEDS_FILE} \
|
||||
&& sed -i "/INSTANCES_DIRECTORY/s/-${APACHEDS_VERSION}//" /opt/apacheds-${APACHEDS_VERSION}/bin/apacheds \
|
||||
&& rm -rf ${APACHEDS_FILE} /var/lib/apt/lists/*
|
||||
|
||||
EXPOSE 10389 10636
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
13
apacheds/README.md
Normal file
13
apacheds/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
apacheds
|
||||
========
|
||||
|
||||
```yaml
|
||||
apacheds:
|
||||
image: vimagick/apacheds
|
||||
ports:
|
||||
- "10389:10389"
|
||||
- "10636:10636"
|
||||
volumes:
|
||||
- ./data:/var/lib/apacheds
|
||||
restart: unless-stopped
|
||||
```
|
8
apacheds/docker-compose.yml
Normal file
8
apacheds/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
apacheds:
|
||||
image: vimagick/apacheds
|
||||
ports:
|
||||
- "10389:10389"
|
||||
- "10636:10636"
|
||||
volumes:
|
||||
- ./data:/var/lib/apacheds
|
||||
restart: unless-stopped
|
12
apacheds/docker-entrypoint.sh
Executable file
12
apacheds/docker-entrypoint.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if ! [ -d ${APACHEDS_INSTANCE_DIR} ]; then
|
||||
cp -r ${APACHEDS_DATA}-${APACHEDS_VERSION}/default ${APACHEDS_INSTANCE_DIR}
|
||||
chown -R ${APACHEDS_USER}:${APACHEDS_GROUP} ${APACHEDS_INSTANCE_DIR}
|
||||
fi
|
||||
|
||||
gosu ${APACHEDS_USER} /opt/apacheds-${APACHEDS_VERSION}/bin/apacheds start ${APACHEDS_INSTANCE}
|
||||
|
||||
tail -n 0 -f ${APACHEDS_INSTANCE_DIR}/log/apacheds.log
|
Loading…
Reference in New Issue
Block a user