-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat docker: build dockerfile for 24.04
commit_hash:63277d89e093a113871b6f9c9a4eadb9c08636f6
- Loading branch information
Showing
7 changed files
with
86 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Exit on any error and treat unset variables as errors, print all commands | ||
set -euox pipefail | ||
|
||
CLICKHOUSE_VERSION=${CLICKHOUSE_VERSION:=v2.5.1} | ||
|
||
# Installing Clickhouse C++ client libraries from sources | ||
git clone --depth 1 -b ${CLICKHOUSE_VERSION} https://github.com/ClickHouse/clickhouse-cpp.git | ||
(cd clickhouse-cpp && mkdir build && cd build && \ | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc) && make install) | ||
rm -rf clickhouse-cpp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu:24.04 | ||
|
||
COPY scripts/docs/en/deps/ubuntu-24.04.md /userver_tmp/ | ||
COPY scripts/postgres/ubuntu-install-postgresql-includes.sh /userver_tmp/ | ||
|
||
RUN apt update \ | ||
&& apt install -y $(cat /userver_tmp/ubuntu-24.04.md) \ | ||
&& apt install -y clang-format python3-pip \ | ||
&& apt install -y \ | ||
clickhouse-server \ | ||
mariadb-server \ | ||
postgresql-16 \ | ||
rabbitmq-server \ | ||
redis-server \ | ||
&& apt install -y locales \ | ||
&& apt clean all \ | ||
&& /userver_tmp/ubuntu-install-postgresql-includes.sh | ||
|
||
RUN \ | ||
# Set UTC timezone \ | ||
TZ=Etc/UTC; \ | ||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ | ||
\ | ||
# Generate locales \ | ||
&& locale-gen en_US.UTF-8 \ | ||
&& update-locale LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" | ||
|
||
|
||
COPY scripts/clickhouse/ubuntu-install-clickhouse.sh /userver_tmp/ | ||
RUN /userver_tmp/ubuntu-install-clickhouse.sh | ||
|
||
COPY scripts/rabbitmq/ubuntu_install_rabbitmq_dev.sh /userver_tmp/ | ||
RUN /userver_tmp/ubuntu_install_rabbitmq_dev.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Exit on any error and treat unset variables as errors, print all commands | ||
set -euox pipefail | ||
|
||
POSTGRESQL_VERSION=${POSTGRESQL_VERSION:=16} | ||
|
||
apt remove postgresql-server-dev-${POSTGRESQL_VERSION} | ||
|
||
# Installing postgresql-server-dev-14 without dependencies | ||
# | ||
# We should feel sorry because of that but we don't. The package | ||
# pulls in ~700MB of unnecessary dependencies. | ||
apt download postgresql-server-dev-${POSTGRESQL_VERSION} | ||
dpkg-deb -R postgresql-server-dev-${POSTGRESQL_VERSION}* tmp_postgresql | ||
cp -r tmp_postgresql/usr/* /usr/ | ||
rm -rf postgresql-server-dev-${POSTGRESQL_VERSION}* tmp_postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Exit on any error and treat unset variables as errors, print all commands | ||
set -euox pipefail | ||
|
||
AMQP_VERSION=${AMQP_VERSION:=v4.3.18} | ||
|
||
# Installing amqp/rabbitmq client libraries from sources | ||
git clone --depth 1 -b ${AMQP_VERSION} https://github.com/CopernicaMarketingSoftware/AMQP-CPP.git amqp-cpp | ||
(cd amqp-cpp && mkdir build && cd build && \ | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc) && make install) | ||
rm -rf amqp-cpp/ |