-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
47 lines (39 loc) · 1.35 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
FROM ubuntu:24.04
ARG CONFLUENT_VERSION
WORKDIR /kafka-sandbox
ENV GRADLE_VERSION "8.8"
ENV GRADLE_HOME "/opt/gradle"
ENV GRADLE_BIN "${GRADLE_HOME}/bin"
ENV CONFLUENT_VERSION "$CONFLUENT_VERSION"
ENV CONFLUENT_HOME "/opt/confluent"
ENV CONFLUENT_BIN "${CONFLUENT_HOME}/bin"
ENV PATH "${PATH}:${CONFLUENT_BIN}:${GRADLE_BIN}"
ENV COLORTERM "truecolor"
ENV TERM "xterm-256color"
RUN apt update \
&& apt install -y \
wget \
curl \
vim \
unzip \
kcat \
openjdk-17-jdk-headless \
jq \
httpie \
postgresql-client \
mysql-client \
mosquitto-clients \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q "http://packages.confluent.io/archive/$(echo "${CONFLUENT_VERSION}" | cut -c 1-3)/confluent-community-${CONFLUENT_VERSION}.zip" -O /tmp/confluent.zip \
&& unzip /tmp/confluent.zip -d /tmp \
&& mv "/tmp/confluent-${CONFLUENT_VERSION}" "${CONFLUENT_HOME}" \
&& rm /tmp/confluent.zip
RUN wget -q "https://services.gradle.org/distributions/gradle-8.8-bin.zip" -O /tmp/gradle.zip \
&& unzip /tmp/gradle.zip -d /tmp \
&& mv "/tmp/gradle-${GRADLE_VERSION}" "${GRADLE_HOME}" \
&& rm /tmp/gradle.zip
RUN mkdir -p "${CONFLUENT_HOME}/logs" \
&& chmod 777 "${CONFLUENT_HOME}/logs"
RUN mkdir -p "/home/ubuntu/.gradle" \
&& chmod 777 "/home/ubuntu/.gradle"
USER ubuntu