Skip to content

Commit

Permalink
Merge pull request #153 from infosiftr/cleanup
Browse files Browse the repository at this point in the history
Cleanup comments and remove unnecessary conditional
  • Loading branch information
yosifkit authored Jan 9, 2024
2 parents c6324a9 + d0ecd4b commit bea86ea
Show file tree
Hide file tree
Showing 22 changed files with 77 additions and 143 deletions.
9 changes: 6 additions & 3 deletions Dockerfile-scm.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM buildpack-deps:{{ env.codename }}-curl

# procps is very common in build systems, and is a reasonably small package
RUN apt-get update && apt-get install -y --no-install-recommends \
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
{{
if [
"focal", "groovy"
Expand All @@ -14,5 +15,7 @@ if [
openssh-client \
subversion \
\
# procps is very common in build systems, and is a reasonably small package
procps \
&& rm -rf /var/lib/apt/lists/*
; \
rm -rf /var/lib/apt/lists/*
11 changes: 1 addition & 10 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN set -ex; \
autoconf \
automake \
bzip2 \
default-libmysqlclient-dev \
dpkg-dev \
file \
g++ \
Expand Down Expand Up @@ -43,15 +44,5 @@ RUN set -ex; \
unzip \
xz-utils \
zlib1g-dev \
\
# https://lists.debian.org/debian-devel-announce/2016/09/msg00000.html
$( \
# if we use just "apt-cache show" here, it returns zero because "Can't select versions from package 'libmysqlclient-dev' as it is purely virtual", hence the pipe to grep
if apt-cache show 'default-libmysqlclient-dev' 2>/dev/null | grep -q '^Version:'; then \
echo 'default-libmysqlclient-dev'; \
else \
echo 'libmysqlclient-dev'; \
fi \
) \
; \
rm -rf /var/lib/apt/lists/*
11 changes: 1 addition & 10 deletions debian/bookworm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions debian/bookworm/scm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions debian/bullseye/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions debian/bullseye/scm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions debian/buster/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions debian/buster/scm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions debian/sid/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions debian/sid/scm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions debian/trixie/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions debian/trixie/scm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions ubuntu/focal/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions ubuntu/focal/scm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions ubuntu/jammy/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions ubuntu/jammy/scm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions ubuntu/lunar/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions ubuntu/lunar/scm/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bea86ea

Please sign in to comment.