Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds bookworm into test images #339

Merged
merged 5 commits into from
Sep 22, 2023
Merged

Adds bookworm into test images #339

merged 5 commits into from
Sep 22, 2023

Conversation

gurkanindibay
Copy link
Contributor

@gurkanindibay gurkanindibay commented Sep 21, 2023

Debian bookworm is added to package tests in this PR

Comment on lines 78 to 88











Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Why so many empty lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there were empty spaces in other files and I formed this one from others. Removed empty spaces for all files now

Comment on lines +17 to +39
# 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we not merge these RUN commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in sake of debugging purposes. If there is an error in a command, I have issues to find which statement causes this error.
Since this is not an image to publish, merging them will not give a benefit to us

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is actually a benefit: the resulting docker image will be smaller. Every apt command that does not include rm -rf /var/lib/apt/lists/* at the end will result in bigger docker images, and having to download bigger docker images result in longer CI run times.

Copy link
Member

@hanefi hanefi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like having continuous RUN commands in dockerfiles. However, I leave the decision to improve their performance to the author.

@gurkanindibay gurkanindibay merged commit ec9590f into develop Sep 22, 2023
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants