-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
52 lines (39 loc) · 1.19 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
FROM ubuntu:20.04
MAINTAINER Leo Irudayam
RUN mkdir -p /kafka
RUN mkdir -p /python
COPY ./kafka/ /kafka/
COPY ./python/ /python/
#RUN rm /kafka/logs/*
# Install "software-properties-common" (for the "add-apt-repository")
RUN apt-get update && apt-get install -y \
software-properties-common
# Install OpenJDK-8
RUN apt-get update && \
apt-get install -y openjdk-8-jdk && \
apt-get install -y ant && \
apt-get clean;
# Fix certificate issues
RUN apt-get update && \
apt-get install ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f;
# Setup JAVA_HOME -- useful for docker commandline
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
RUN export JAVA_HOME
RUN apt-get -y install python3.6
RUN apt-get -y install python3-venv
RUN apt-get -y install curl
#RUN apt-get -y install gradle
#RUN cd kafka && ./gradlew jar -PscalaVersion=2.11.12
COPY ./start.sh /
RUN chmod +x start.sh
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py
RUN pip install pandas && \
pip install xgboost && \
apt-get -y install libgomp1 && \
pip install sklearn
COPY ./target/spring-websockets.jar /
EXPOSE 8080 4444 2181 9092
CMD ./start.sh