blob: ac833c332ce1a8edf164fd94c704882b83ab34fe (
plain)
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
|
FROM python:3.6-bullseye
RUN apt-get update && \
apt-get install --no-install-recommends -y \
openjdk-11-jdk \
maven \
leiningen && \
rm -rf /var/lib/apt/lists/*
RUN wget https://dlcdn.apache.org/storm/apache-storm-2.3.0/apache-storm-2.3.0.zip && \
unzip apache-storm-2.3.0.zip && \
mv apache-storm-2.3.0/bin/* /usr/lib/jvm/java-11-openjdk-amd64/bin && \
mv apache-storm-2.3.0/lib/* /usr/lib/jvm/java-11-openjdk-amd64/lib && \
rm -rf apache-storm-2.3.0
# RUN pip install streamparse==4.0.0
RUN pip install git+https://github.com/Thornycrackers-Forks/streamparse.git#egg=streamparse
ENV LEIN_ROOT=/usr/src/app
# I don't know java best practices but this result in me being able to run things
# so *shrug*
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
RUN ln -s /usr/lib/jvm/java-11-openjdk-amd64/bin/storm /bin/storm
# The code is stored here
WORKDIR /usr/src/app
|