1
+ # syntax = docker/dockerfile:1.0-experimental
2
+ #
3
+ # Copyright (C) 2022 IBM Corporation.
4
+ #
5
+ # Authors:
6
+ # Frederico Araujo <
[email protected] >
7
+ # Teryl Taylor <
[email protected] >
8
+ #
9
+ # Licensed under the Apache License, Version 2.0 (the "License");
10
+ # you may not use this file except in compliance with the License.
11
+ # You may obtain a copy of the License at
12
+ #
13
+ # http://www.apache.org/licenses/LICENSE-2.0
14
+ #
15
+ # Unless required by applicable law or agreed to in writing, software
16
+ # distributed under the License is distributed on an "AS IS" BASIS,
17
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ # See the License for the specific language governing permissions and
19
+ # limitations under the License.
20
+
21
+ ARG FALCO_VER
22
+ ARG FALCO_LIBS_VER
23
+ ARG ALPINE_VER
24
+
25
+ #-----------------------
26
+ # Stage: mods
27
+ #-----------------------
28
+ FROM sysflowtelemetry/alpine:mods-${FALCO_LIBS_VER}-${FALCO_VER}-${ALPINE_VER} AS mods
29
+
30
+ #-----------------------
31
+ # Stage: driver
32
+ #-----------------------
33
+ FROM alpine:${ALPINE_VER} AS driver
34
+
35
+ RUN apk add \
36
+ g++ \
37
+ gcc \
38
+ cmake \
39
+ make \
40
+ bash \
41
+ perl \
42
+ linux-headers \
43
+ autoconf \
44
+ automake \
45
+ m4 \
46
+ libtool \
47
+ patch \
48
+ binutils \
49
+ flex \
50
+ bison \
51
+ wget \
52
+ patch \
53
+ curl \
54
+ clang \
55
+ llvm \
56
+ xz \
57
+ bc
58
+
59
+ # environment and args
60
+ ARG INSTALL_PATH=/usr/local/sysflow
61
+ ARG DRIVER_PACKAGE_NAME=falco
62
+ ENV DRIVER_NAME=falco
63
+ ENV DRIVERS_REPO="https://download.falco.org/driver"
64
+ ENV HOST_ROOT=/host
65
+ ENV HOME=/root
66
+ ARG FALCOCTL_VERSION
67
+
68
+ #install falcoctl
69
+ RUN curl --fail -LS "https://github.com/falcosecurity/falcoctl/releases/download/v${FALCOCTL_VERSION}/falcoctl_${FALCOCTL_VERSION}_linux_amd64.tar.gz" | tar -xz && \
70
+ install -o root -g root -m 0755 falcoctl /usr/bin/falcoctl && mkdir -p /etc/falco/ && touch /etc/falco/falco.yaml
71
+
72
+ # copy resources
73
+ COPY --from=mods ${INSTALL_PATH}/modules/bin/docker-entry-ubi.sh /docker-entrypoint.sh
74
+ COPY --from=mods ${INSTALL_PATH}/modules/bin/docker-entrypoint.sh ${INSTALL_PATH}/modules/bin/docker-entrypoint.sh
75
+ COPY --from=mods /usr/src/falco-* /usr/src/
76
+ COPY --from=mods /usr/sbin/dkms /usr/sbin/dkms
77
+
78
+ ENTRYPOINT ["/docker-entrypoint.sh"]
0 commit comments