-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
72 lines (59 loc) · 1.97 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
############################################################
# Dockerfile to build MongoDB container images
# Based on Ubuntu
############################################################
#
#
#
# Set the base image to Ubuntu
FROM ubuntu:16.04
# File Author / Maintainer
MAINTAINER Example McAuthor
WORKDIR /root
# Update the repository sources list
RUN apt-get update
ENV \
SCALA_MAJOR_VERSION=2.11 \
SBT_VERSION=0.13.8 \
KAFKA_CLIENT_VERSION=0.10.1.0
RUN \
apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:webupd8team/java \
&& apt-get update \
&& echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections \
&& apt-get install -y oracle-java8-installer \
&& apt-get install -y oracle-java8-set-default \
&& apt-get install -y curl \
&& apt-get install -y wget \
&& apt-get install -y vim \
&& apt-get install -y git \
&& apt-get install -y openssh-server \
&& apt-get install -y apache2 \
&& apt-get install -y libssl-dev \
&& apt-get install -y python3.5 \
&& apt-get install -y python3-pip
RUN \
# Maven for custom builds
apt-get install -y maven
RUN \
pip3 install pandas \
&& pip3 install flask==0.12 \
&& pip3 install Flask-Classy==0.6.10 \
&& pip3 install kafka-python==1.3.2 \
&& pip3 install bokeh==0.12.4
RUN \
# Sbt
cd ~ \
&& wget https://dl.bintray.com/sbt/native-packages/sbt/${SBT_VERSION}/sbt-${SBT_VERSION}.tgz \
&& tar xvzf sbt-${SBT_VERSION}.tgz \
&& rm sbt-${SBT_VERSION}.tgz \
&& ln -s /root/sbt/bin/sbt /usr/local/bin \
# Sbt Clean - This seems weird, but it triggers the full Sbt install which involves a lot of external downloads
&& sbt clean clean-files
RUN \
# Apache Kafka
cd ~ \
&& wget http://apache.claz.org/kafka/${KAFKA_CLIENT_VERSION}/kafka_${SCALA_MAJOR_VERSION}-${KAFKA_CLIENT_VERSION}.tgz \
&& tar -xvzf kafka_${SCALA_MAJOR_VERSION}-${KAFKA_CLIENT_VERSION}.tgz \
&& rm kafka_${SCALA_MAJOR_VERSION}-${KAFKA_CLIENT_VERSION}.tgz