-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds bookworm into test images (#339)
* Adds debian-bookworm and removes ubuntu-focal
- Loading branch information
1 parent
4d60073
commit ec9590f
Showing
13 changed files
with
81 additions
and
75 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 |
---|---|---|
|
@@ -68,4 +68,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -70,4 +70,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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,77 @@ | ||
FROM debian:bookworm | ||
ARG CITUS_VERSION | ||
# FOrmat should be XY and should not include dots e.g for 10.2.1=>102 | ||
ARG CITUS_MAJOR_VERSION | ||
ARG PG_MAJOR | ||
ARG FANCY=1 | ||
ARG HLL_VERSION=2.18.citus-1 | ||
ARG TOPN_VERSION=2.6.0.citus-1 | ||
|
||
ENV CITUS_VERSION ${CITUS_VERSION} | ||
|
||
ENV PG_MAJOR ${PG_MAJOR} | ||
|
||
ENV TZ=Europe/Istanbul | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# install prequisities | ||
RUN apt-get update \ | ||
&& apt-get install -y lsb-release \ | ||
apt-utils \ | ||
vim \ | ||
wget \ | ||
curl \ | ||
gnupg2 \ | ||
software-properties-common \ | ||
libcurl4-openssl-dev \ | ||
libssl-dev | ||
|
||
|
||
# install Citus | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
&& curl -s https://install.citusdata.com/community/deb.sh | bash | ||
RUN apt-get install -y postgresql-${PG_MAJOR}-citus-${CITUS_MAJOR_VERSION}=${CITUS_VERSION}.citus-${FANCY} \ | ||
postgresql-$PG_MAJOR-hll=${HLL_VERSION} \ | ||
postgresql-$PG_MAJOR-topn=${TOPN_VERSION} \ | ||
&& rm -rf /var/lib/apt/lists/*12 | ||
|
||
|
||
|
||
ARG POSTGRES_HOME=/var/lib/postgresql/ | ||
ENV PATH=${PATH}:/usr/lib/postgresql/${PG_MAJOR}/bin:${POSTGRES_HOME} | ||
|
||
WORKDIR ${POSTGRES_HOME} | ||
|
||
RUN mkdir citus && chown postgres citus | ||
|
||
USER postgres | ||
RUN cd ~ && initdb -D citus && echo "shared_preload_libraries = 'citus'" >> citus/postgresql.conf | ||
|
||
USER root | ||
# Install python 3.8 and its dependencies | ||
RUN apt-get install -y build-essential \ | ||
libcurl4-openssl-dev \ | ||
libssl-dev \ | ||
zlib1g-dev \ | ||
curl \ | ||
libffi-dev \ | ||
gnupg2 && \ | ||
curl https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz --output Python-3.8.12.tgz &&\ | ||
tar xvf Python-3.8.12.tgz &&\ | ||
cd Python-3.8.*/ && \ | ||
./configure --enable-optimizations && \ | ||
make altinstall && \ | ||
python3.8 -m pip install pip-tools | ||
|
||
COPY scripts/* ./ | ||
|
||
RUN pip-compile && python3.8 -m pip install -r requirements.txt | ||
|
||
USER postgres | ||
|
||
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -75,14 +75,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -76,14 +76,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -76,14 +76,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -69,4 +69,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -68,4 +68,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -62,4 +62,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -76,14 +76,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -76,14 +76,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.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 |
---|---|---|
|
@@ -76,14 +76,3 @@ USER postgres | |
WORKDIR ${POSTGRES_HOME} | ||
|
||
CMD ["test_internal.sh"] | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|