Skip to content

Commit fdfda09

Browse files
committed
use updated container plugin
Signed-off-by: Roberto Scolaro <[email protected]>
1 parent 81efd19 commit fdfda09

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Copyright (C) 2025 The Falco Authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under the License
11+
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12+
# or implied. See the License for the specific language governing permissions and limitations under
13+
# the License.
14+
#
15+
16+
include(ExternalProject)
17+
18+
string(TOLOWER ${CMAKE_HOST_SYSTEM_NAME} PLUGINS_SYSTEM_NAME)
19+
20+
set(CONTAINER_LIBRARY
21+
"${CMAKE_CURRENT_BINARY_DIR}/container_plugin-prefix/src/container_plugin/libcontainer.so"
22+
)
23+
24+
if(NOT CONTAINER_VERSION)
25+
set(CONTAINER_VERSION "0.3.7")
26+
endif()
27+
if(NOT CONTAINER_HASH)
28+
if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
29+
set(CONTAINER_HASH "658f96c4b4a56d1bf945a788d60571076f808ae1bcc877c4ba3625b0fd752d8d")
30+
else() # arm64
31+
set(CONTAINER_HASH "34a153aca0164843a169193aba092a3063b24bca9ef80fd4f1d1f1919aba3bde")
32+
endif()
33+
endif()
34+
if(NOT TARGET container_plugin)
35+
message(STATUS "Fetching container plugin ${CONTAINER_VERSION} in '${CONTAINER_LIBRARY}'")
36+
ExternalProject_Add(
37+
container_plugin
38+
URL "https://download.falco.org/plugins/stable/container-${CONTAINER_VERSION}-${PLUGINS_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz"
39+
#URL_HASH "SHA256=${CONTAINER_HASH}"
40+
CONFIGURE_COMMAND ""
41+
BUILD_COMMAND ""
42+
INSTALL_COMMAND ""
43+
)
44+
endif()

0 commit comments

Comments
 (0)