-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 752 Bytes
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
FROM maven:3.6.0-jdk-8-alpine
LABEL maintainer-twitter="@coheigea"
LABEL version=2.0.0
ARG KERBY_VERSION=2.0.1
ARG KERBY_HOME=/usr/local/kerby-${KERBY_VERSION}
WORKDIR /tmp
ADD https://repo1.maven.org/maven2/org/apache/kerby/kerby-all/${KERBY_VERSION}/kerby-all-${KERBY_VERSION}-source-release.zip /tmp
RUN unzip -q *.zip \
&& cd /tmp/kerby-all-${KERBY_VERSION}/kerby-dist/kdc-dist \
&& mvn clean install -Pdist \
&& mkdir ${KERBY_HOME} && cd ${KERBY_HOME} \
&& cp -r /tmp/kerby-all-${KERBY_VERSION}/kerby-dist/kdc-dist/* . \
&& sh bin/kdcinit.sh conf kdckeytabs \
&& rm -rf /tmp/kerby-* \
&& mkdir -p runtime \
&& chmod +x bin/start-kdc.sh
WORKDIR ${KERBY_HOME}
EXPOSE 88
ENTRYPOINT ["bin/start-kdc.sh"]
CMD ["conf", "runtime"]