Skip to content

Commit

Permalink
print less when installing dependencies
Browse files Browse the repository at this point in the history
somewhat controversial, just an experiment for now
  • Loading branch information
skaes committed Jan 21, 2025
1 parent cf06401 commit a8de48f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/fpm/fry/docker_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def dockerfile
update = 'apt-get update && '
end
df[:dependencies] << "ARG DEBIAN_FRONTEND=noninteractive"
df[:dependencies] << "RUN #{update}apt-get install --no-install-recommends --yes #{Shellwords.join(build_dependencies)}"
df[:dependencies] << "RUN #{update}apt-get install -q --no-install-recommends --yes #{Shellwords.join(build_dependencies)}"
when 'redhat'
df[:dependencies] << "RUN yum -y install #{Shellwords.join(build_dependencies)}"
else
Expand Down
8 changes: 4 additions & 4 deletions spec/docker_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def self.included(base)
FROM <base>
WORKDIR /tmp/build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install --no-install-recommends --yes arg blub foo
RUN apt-get install -q --no-install-recommends --yes arg blub foo
COPY .build.sh /tmp/build/
CMD /tmp/build/.build.sh
SHELL
Expand Down Expand Up @@ -152,7 +152,7 @@ def self.included(base)
FROM <base>
WORKDIR /tmp/build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install --no-install-recommends --yes D a b e\\=1.0.0
RUN apt-get install -q --no-install-recommends --yes D a b e\\=1.0.0
COPY .build.sh /tmp/build/
CMD /tmp/build/.build.sh
SHELL
Expand All @@ -177,7 +177,7 @@ def self.included(base)
FROM <base>
WORKDIR /tmp/build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install --no-install-recommends --yes a
RUN apt-get install -q --no-install-recommends --yes a
COPY .build.sh /tmp/build/
CMD /tmp/build/.build.sh
SHELL
Expand Down Expand Up @@ -240,7 +240,7 @@ def self.included(base)
WORKDIR /tmp/build
probe a
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install --no-install-recommends --yes a
RUN apt-get install -q --no-install-recommends --yes a
probe b
COPY .build.sh /tmp/build/
CMD /tmp/build/.build.sh
Expand Down

0 comments on commit a8de48f

Please sign in to comment.