forked from cfsworkload/data-analytics-transportation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 829 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (26 loc) · 829 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
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:15.10
ENV SCALA_VERSION="2.10.4"
ENV JAVA_VERSION="7"
#install sudo
RUN apt-get update && \
apt-get -y --force-yes install \
sudo
#install vim
RUN apt-get -y --force-yes install \
vim
# secor ENV variables
ENV BUILD_DEPS git openjdk-7-jdk maven
ENV RUNTIME_DEPS openjdk-7-jre-headless
RUN apt-get install -y $BUILD_DEPS $RUNTIME_DEPS --no-install-recommends
#supervisor
RUN apt-get install -y openssh-server apache2 supervisor
# secor setup
COPY ./secor/DataServices/SECOR_INSTALL_DIR /opt/secor
WORKDIR /opt/secor
RUN chmod +x /opt/secor/secor_start.sh
RUN chmod +x /opt/secor/scripts/run_kafka_class.sh
# Supervisor config
ADD secor/DataServices/SECOR_INSTALL_DIR/supervisor/secor.conf /etc/supervisor/conf.d/secor.conf
# 2181 is for zookeeper, 9092 is for kafka
EXPOSE 2181
CMD ["supervisord", "-n"]