-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(docker): latest or explicit FALCO_VERSION for docker images vi…
…a docker build argument Co-authored-by: Lorenzo Fontana <[email protected]> Signed-off-by: Leonardo Di Donato <[email protected]>
- Loading branch information
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM ubuntu:18.04 as ubuntu | |
|
||
LABEL maintainer="[email protected]" | ||
|
||
ARG FALCO_VERSION=0.20.0 | ||
ARG FALCO_VERSION | ||
ARG VERSION_BUCKET=bin | ||
|
||
ENV FALCO_VERSION=${FALCO_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,10 @@ LABEL maintainer="[email protected]" | |
|
||
LABEL RUN="docker run -i -t -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro -v /boot:/host/boot:ro -v /lib/modules:/host/lib/modules:ro -v /usr:/host/usr:ro --name <name> <image>" | ||
|
||
ARG FALCO_VERSION=latest | ||
ARG VERSION_BUCKET=deb | ||
|
||
ENV FALCO_VERSION=${FALCO_VERSION} | ||
ENV VERSION_BUCKET=${VERSION_BUCKET} | ||
|
||
ENV HOST_ROOT /host | ||
|
@@ -28,7 +30,7 @@ RUN apt-get update \ | |
RUN curl -s https://falco.org/repo/falcosecurity-3672BA8F.asc | apt-key add - \ | ||
&& echo "deb https://dl.bintray.com/falcosecurity/${VERSION_BUCKET} stable main" | tee -a /etc/apt/sources.list.d/falcosecurity.list \ | ||
&& apt-get update -y \ | ||
&& apt-get install -y --no-install-recommends falco \ | ||
&& 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 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,11 @@ LABEL maintainer="[email protected]" | |
|
||
LABEL usage="docker run -i -t -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro -v /boot:/host/boot:ro -v /lib/modules:/host/lib/modules:ro -v /usr:/host/usr:ro --name NAME IMAGE" | ||
|
||
ARG FALCO_VERSION=latest | ||
ARG VERSION_BUCKET=deb | ||
ENV VERSION_BUCKET=${VERSION_BUCKET} | ||
|
||
ENV FALCO_VERSION=${FALCO_VERSION} | ||
ENV HOST_ROOT /host | ||
ENV HOME /root | ||
|
||
|
@@ -76,7 +78,7 @@ RUN rm -rf /usr/bin/clang \ | |
RUN curl -s https://falco.org/repo/falcosecurity-3672BA8F.asc | apt-key add - \ | ||
&& echo "deb https://dl.bintray.com/falcosecurity/${VERSION_BUCKET} stable main" | tee -a /etc/apt/sources.list.d/falcosecurity.list \ | ||
&& apt-get update -y \ | ||
&& apt-get install -y --no-install-recommends falco \ | ||
&& 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 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|