forked from xebialabs-community/xl-docker-demo-xld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-slim
31 lines (23 loc) · 1.16 KB
/
Dockerfile-slim
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
FROM openjdk:jre-slim
MAINTAINER XebiaLabs "[email protected]"
RUN apt-get update && \
apt-get install -y supervisor wget && \
rm -rf /var/lib/apt/lists/*
RUN wget --progress=dot:giga -O /tmp/xl-deploy-trial-server.zip https://dist.xebialabs.com/xl-deploy-trial-server.zip && \
mkdir -p /opt/xld && \
unzip /tmp/xl-deploy-trial-server.zip -d /opt/xld && \
mv /opt/xld/xl-deploy-*-server /opt/xld/server && \
rm -rf /tmp/xl-deploy-trial-server.zip
RUN wget --progress=dot:giga -O /tmp/xl-deploy-trial-cli.zip https://dist.xebialabs.com/xl-deploy-trial-cli.zip && \
mkdir -p /opt/xld && \
unzip /tmp/xl-deploy-trial-cli.zip -d /opt/xld && \
mv /opt/xld/xl-deploy-*-cli /opt/xld/cli && \
rm -rf /tmp/xl-deploy-trial-cli.zip
COPY resources/deployit.conf /opt/xld/server/conf/deployit.conf
RUN /opt/xld/server/bin/run.sh -setup -reinitialize -force && \
rm -rf /opt/xld/server/log/* /opt/xld/server/tmp/* && \
ln -fs /license/deployit-license.lic /opt/xld/server/conf/deployit-license.lic
COPY resources/supervisord.conf /etc/supervisord.conf
COPY resources/xld.conf /etc/supervisor/conf.d/
CMD ["/usr/bin/supervisord"]
EXPOSE 4516