Skip to content

Commit

Permalink
feat docker: install Kafka into Docker image
Browse files Browse the repository at this point in the history
Tests: протестировано CI

Pull Request resolved: #701
commit_hash:3f0560a22e8749e3222961d90640a85ad1efb9a6
  • Loading branch information
fdr400 committed Sep 23, 2024
1 parent 295530a commit 18169d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/docker/setup-base-ubuntu-22.04-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ git clone --depth 1 -b ${ROCKSDB_VERSION} https://github.com/facebook/rocksdb
(cd rocksdb && mkdir build-debug && cd build-debug && \
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DROCKSDB_BUILD_SHARED=OFF -DWITH_TESTS=OFF -DWITH_BENCHMARK_TOOLS=OFF -DWITH_TOOLS=OFF -DUSE_RTTI=ON .. && make -j $(nproc) && make install)

# Installing Kafka
DEBIAN_FRONTEND=noninteractive apt install -y default-jre

curl https://dlcdn.apache.org/kafka/3.8.0/kafka_2.13-3.8.0.tgz -o kafka.tgz
mkdir -p /etc/kafka
tar xf kafka.tgz --directory=/etc/kafka
cp -r /etc/kafka/kafka_2.13-3.8.0/* /etc/kafka/
rm -rf /etc/kafka/kafka_2.13-3.8.0

# Set UTC timezone
TZ=Etc/UTC
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Expand Down

0 comments on commit 18169d7

Please sign in to comment.