From 26add16d125883da5ab6897456389dd9b6ac8e65 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Wed, 14 Feb 2024 14:33:32 +0100 Subject: [PATCH] cleanup(docker)!: remove unused builder dockerfile Signed-off-by: Andrea Terzolo --- docker/builder/README.md | 6 --- .../builder/modern-falco-builder.Dockerfile | 43 ------------------- 2 files changed, 49 deletions(-) delete mode 100644 docker/builder/README.md delete mode 100644 docker/builder/modern-falco-builder.Dockerfile diff --git a/docker/builder/README.md b/docker/builder/README.md deleted file mode 100644 index 836577bd135..00000000000 --- a/docker/builder/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Builder folder - -* We use `modern-falco-builder.Dockerfile` to build Falco with the modern probe and return it as a Dockerfile output. This Dockerfile doesn't generate a Docker image but returns as output (through the `--output` command): - * Falco `tar.gz`. - * Falco `deb` package. - * Falco `rpm` package. diff --git a/docker/builder/modern-falco-builder.Dockerfile b/docker/builder/modern-falco-builder.Dockerfile deleted file mode 100644 index 407f3202dcc..00000000000 --- a/docker/builder/modern-falco-builder.Dockerfile +++ /dev/null @@ -1,43 +0,0 @@ - -FROM centos:7 AS build-stage - -# To build Falco you need to pass the cmake option -ARG CMAKE_OPTIONS="" -ARG MAKE_JOBS=6 - -# Install all the dependencies -WORKDIR / - -RUN yum -y install centos-release-scl; \ - yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++; \ - source scl_source enable devtoolset-9; \ - yum install -y git wget make m4 rpm-build - -# With some previous cmake versions it fails when downloading `zlib` with curl in the libs building phase -RUN curl -L -o /tmp/cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-linux-$(uname -m).tar.gz; \ - gzip -d /tmp/cmake.tar.gz; \ - tar -xpf /tmp/cmake.tar --directory=/tmp; \ - cp -R /tmp/cmake-3.22.5-linux-$(uname -m)/* /usr; \ - rm -rf /tmp/cmake-3.22.5-linux-$(uname -m)/ - -# Copy Falco folder from the build context -COPY . /source -WORKDIR /build/release - -RUN source scl_source enable devtoolset-9; \ - cmake ${CMAKE_OPTIONS} /source; \ - make falco -j${MAKE_JOBS} -RUN make package - -# We need `make all` for integration tests. -RUN make all -j${MAKE_JOBS} - -FROM scratch AS export-stage - -LABEL org.opencontainers.image.source="https://github.com/falcosecurity/falco" - -ARG DEST_BUILD_DIR="/build" - -COPY --from=build-stage /build/release/falco-*.tar.gz /packages/ -COPY --from=build-stage /build/release/falco-*.deb /packages/ -COPY --from=build-stage /build/release/falco-*.rpm /packages/