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

don’t install recommended packages when building debian packages #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 --yes #{Shellwords.join(build_dependencies)}"
df[:dependencies] << "RUN #{update}apt-get install --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 --yes arg blub foo
RUN apt-get install --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 --yes D a b e\\=1.0.0
RUN apt-get install --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 --yes a
RUN apt-get install --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 --yes a
RUN apt-get install --no-install-recommends --yes a
probe b
COPY .build.sh /tmp/build/
CMD /tmp/build/.build.sh
Expand Down
Loading