-
Notifications
You must be signed in to change notification settings - Fork 909
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
fix(docker,scripts): do not load falcoctl driver loader when installing Falco deb package in docker images #3166
Conversation
…ng Falco deb package in docker image. Signed-off-by: Federico Di Pierro <[email protected]>
/milestone 0.38.0 |
@@ -92,7 +92,7 @@ RUN rm -rf /usr/bin/clang \ | |||
RUN curl -s https://falco.org/repo/falcosecurity-packages.asc | apt-key add - \ | |||
&& echo "deb https://download.falco.org/packages/${VERSION_BUCKET} stable main" | tee -a /etc/apt/sources.list.d/falcosecurity.list \ | |||
&& apt-get update -y \ | |||
&& if [ "$FALCO_VERSION" = "latest" ]; then apt-get install -y --no-install-recommends falco; else apt-get install -y --no-install-recommends falco=${FALCO_VERSION}; fi \ | |||
&& if [ "$FALCO_VERSION" = "latest" ]; then FALCO_DRIVER_CHOICE=none apt-get install -y --no-install-recommends falco; else FALCO_DRIVER_CHOICE=none apt-get install -y --no-install-recommends falco=${FALCO_VERSION}; fi \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid running driver loader at this stage
@@ -44,7 +44,7 @@ RUN apt-get update \ | |||
RUN curl -s https://falco.org/repo/falcosecurity-packages.asc | apt-key add - \ | |||
&& echo "deb https://download.falco.org/packages/${VERSION_BUCKET} stable main" | tee -a /etc/apt/sources.list.d/falcosecurity.list \ | |||
&& apt-get update -y \ | |||
&& if [ "$FALCO_VERSION" = "latest" ]; then apt-get install -y --no-install-recommends falco; else apt-get install -y --no-install-recommends falco=${FALCO_VERSION}; fi \ | |||
&& if [ "$FALCO_VERSION" = "latest" ]; then FALCO_DRIVER_CHOICE=none apt-get install -y --no-install-recommends falco; else FALCO_DRIVER_CHOICE=none apt-get install -y --no-install-recommends falco=${FALCO_VERSION}; fi \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid running driver loader at this stage
@@ -80,7 +80,7 @@ if [ "$1" = "configure" ]; then | |||
;; | |||
esac | |||
if [ -n "$chosen_driver" ]; then | |||
echo "[POST-INSTALL] Configure falcoctl driver type:" | |||
echo "[POST-INSTALL] Configure falcoctl '$chosen_driver' driver type:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug print.
@@ -79,6 +79,7 @@ if [ $1 -ge 1 ]; then | |||
;; | |||
esac | |||
if [ -n "$chosen_driver" ]; then | |||
echo "[POST-INSTALL] Configure falcoctl '$chosen_driver' driver type:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug print (same as deb package!)
/cc @leogr @Andreagit97 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, leogr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area build
What this PR does / why we need it:
Fixup after #3154
See master CI: https://github.com/falcosecurity/falco/actions/runs/8689791911/job/23829879902
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: