forked from tysonnorris/mesos-storm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.oraclejdk8
45 lines (37 loc) · 1.38 KB
/
Dockerfile.oraclejdk8
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Dockerfile for Storm Mesos framework
#
FROM mesosphere/mesos:0.27.1-2.0.226.ubuntu1404
MAINTAINER Timothy Chen <tnachen@gmail.com>
# build packages
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -yq software-properties-common
# Install Java.
RUN \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENV MESOS_NATIVE_JAVA_LIBRARY /usr/lib/libmesos.so
# copy storm-mesos into /opt
ADD storm-mesos-0.9.5.tgz /opt
RUN ln -s /opt/apache-storm-0.9.5 /opt/storm && \
find /opt/apache-storm-0.9.5 -type d -exec chmod 755 {} \;
#setup storm user+group+directories
ENV STORM_HOME /opt/storm
RUN groupadd storm && \
useradd --gid storm --home-dir /home/storm --create-home --shell /bin/bash storm && \
chown -R storm:storm $STORM_HOME && \
mkdir /var/log/storm && \
chown -R storm:storm /var/log/storm
RUN ln -s $STORM_HOME/bin/storm /usr/bin/storm
ADD storm.yaml $STORM_HOME/conf/storm.yaml
#TEMP:
ADD bin/storm-mesos $STORM_HOME/bin/storm-mesos
#ADD cluster.xml $STORM_HOME/logback/cluster.xml
ENTRYPOINT ["/opt/storm/bin/storm-mesos"]