forked from alejogm0520/eventsim
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathorig-Dockerfile
43 lines (32 loc) · 1.27 KB
/
orig-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
FROM sbtscala/scala-sbt:eclipse-temurin-jammy-8u352-b08_1.8.3_2.12.17 as builder
COPY ./src /opt/eventsim/src
COPY ./project /opt/eventsim/project
COPY ./build /opt/eventsim/build
COPY assembly.sbt /opt/eventsim/
COPY build.sbt /opt/eventsim/
WORKDIR /opt/eventsim
RUN sbt assembly
FROM debian:stable-slim
WORKDIR /opt/eventsim
COPY --from=builder /opt/eventsim/target/scala-2.12/eventsim-assembly-2.0.jar ./
RUN apt-get update
RUN apt-get install wget curl -y
RUN apt-get install gnupg make gcc -y
# Install Java 8
RUN wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | apt-key add -
RUN echo "deb [arch=amd64] https://apt.bell-sw.com/ stable main" | tee /etc/apt/sources.list.d/bellsoft.list
RUN apt-get update
RUN apt-get install bellsoft-java8-lite -y
# Install Ruby and Fluentd
RUN apt-get install ruby-full ruby-dev -y
RUN gem install fluentd --no-doc
RUN fluent-gem install fluent-plugin-s3
RUN fluent-gem install fluent-plugin-kafka
# Install Minio Client
RUN curl -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x /usr/local/bin/mc
COPY --chmod=0755 eventsim.sh ./eventsim.sh
COPY examples ./examples
COPY data ./data
COPY fluent.conf ./fluent.conf
COPY --chmod=0755 entrypoint.sh ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]