-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 885 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM java:8
MAINTAINER Jay Johnson [email protected]
ENV XD_BUILD RELEASE
ENV XD_VERSION 1.3.0.${XD_BUILD}
RUN groupadd -r springxd && useradd -r -g springxd springxd
RUN apt-get update && apt-get install -y net-tools curl rsync wget unzip zip
RUN wget http://repo.spring.io/libs-release/org/springframework/xd/spring-xd/${XD_VERSION}/spring-xd-${XD_VERSION}-dist.zip \
-O /opt/spring-xd-${XD_VERSION}-dist.zip \
&& unzip /opt/spring-xd-${XD_VERSION}-dist.zip -d /opt/ \
&& rm /opt/spring-xd-${XD_VERSION}-dist.zip \
&& /opt/spring-xd-${XD_VERSION}/zookeeper/bin/install-zookeeper \
&& chown -R springxd:springxd /opt/spring-xd-${XD_VERSION} \
&& ln -s /opt/spring-xd-${XD_VERSION} /opt/spring-xd
USER springxd
RUN mkdir /opt/spring-xd-${XD_VERSION}/xd/data \
&& mkdir /opt/spring-xd-${XD_VERSION}/xd/custom-modules
WORKDIR /opt/spring-xd