-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
29 lines (23 loc) · 1.02 KB
/
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
25
26
27
28
29
FROM ubuntu:trusty
MAINTAINER mtunique <oatgnem@gmail.com>
# environment variables
ARG JSTORM_VERSION=2.1.1
ARG JSTORM_FILE=jstorm-${JSTORM_VERSION}.zip
ARG JSTORM_URL=https://github.com/alibaba/jstorm/releases/download/${JSTORM_VERSION}/${JSTORM_FILE}
ARG JSTORM_INSTALL_PATH=/opt
ENV JSTORM_HOME $JSTORM_INSTALL_PATH/jstorm
ENV PATH $PATH:$JSTORM_HOME/bin
RUN apt-get update && \
apt-get install -y openjdk-7-jre-headless unzip wget python && \
apt-get clean && \
mkdir -p "${JSTORM_INSTALL_PATH}" && \
wget "$JSTORM_URL" -O "$JSTORM_INSTALL_PATH/$JSTORM_FILE" && \
unzip "${JSTORM_INSTALL_PATH}/jstorm-${JSTORM_VERSION}.zip" -d "${JSTORM_INSTALL_PATH}" && \
mv "${JSTORM_INSTALL_PATH}/jstorm-${JSTORM_VERSION}" "${JSTORM_HOME}" && \
mv "${JSTORM_HOME}/conf/storm.yaml" "${JSTORM_HOME}/conf/storm.yaml.template" && \
chmod +x "$JSTORM_HOME/bin/jstorm" && \
rm "$JSTORM_INSTALL_PATH/$JSTORM_FILE"
WORKDIR $JSTORM_HOME
# USER $JSTORM_USER
ADD docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]