mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-07 17:24:05 +00:00
build(docker/builder): vanilla CentOS 8 for the builder
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com> Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
parent
56885f8810
commit
521c3198bd
@ -1,4 +1,4 @@
|
|||||||
FROM centos:7
|
FROM centos:8
|
||||||
|
|
||||||
LABEL name="falcosecurity/falco-builder"
|
LABEL name="falcosecurity/falco-builder"
|
||||||
LABEL usage="docker run -v $PWD/..:/source -v $PWD/build:/build falcosecurity/falco-builder cmake"
|
LABEL usage="docker run -v $PWD/..:/source -v $PWD/build:/build falcosecurity/falco-builder cmake"
|
||||||
@ -18,31 +18,12 @@ ENV BUILD_WARNINGS_AS_ERRORS=${BUILD_WARNINGS_AS_ERRORS}
|
|||||||
ENV MAKE_JOBS=${MAKE_JOBS}
|
ENV MAKE_JOBS=${MAKE_JOBS}
|
||||||
ENV FALCO_VERSION=${FALCO_VERSION}
|
ENV FALCO_VERSION=${FALCO_VERSION}
|
||||||
|
|
||||||
ARG DOCKER_VERSION=1.11.0
|
RUN dnf update -y
|
||||||
ARG CMAKE_VERSION=3.5.1
|
RUN dnf install 'dnf-command(config-manager)' -y
|
||||||
|
RUN dnf config-manager --set-enabled PowerTools -y
|
||||||
RUN yum -y install centos-release-scl && \
|
RUN dnf install -y gcc gcc-c++ clang llvm git make which libcurl-devel zlib-devel rpm-build libyaml-devel openssl-devel cmake ncurses-devel c-ares-devel autoconf automake libtool createrepo expect which glibc-static libstdc++-static elfutils-libelf-devel -y
|
||||||
INSTALL_PKGS="devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-toolchain devtoolset-7-libstdc++-devel devtoolset-7-elfutils-libelf-devel llvm-toolset-7 glibc-static autoconf automake libtool createrepo expect git which libcurl-devel zlib-devel rpm-build" && \
|
|
||||||
yum -y install --setopt=tsflags=nodocs $INSTALL_PKGS && \
|
|
||||||
rpm -V $INSTALL_PKGS
|
|
||||||
|
|
||||||
RUN source scl_source enable devtoolset-7 llvm-toolset-7 && \
|
|
||||||
cd /tmp && \
|
|
||||||
curl -L https://github.com/kitware/cmake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz | tar xz; \
|
|
||||||
cd cmake-${CMAKE_VERSION} && \
|
|
||||||
./bootstrap --system-curl && \
|
|
||||||
make -j${MAKE_JOBS} && \
|
|
||||||
make install && \
|
|
||||||
rm -rf /tmp/cmake-${CMAKE_VERSION}
|
|
||||||
|
|
||||||
RUN yum -y install libyaml-devel ncurses-devel openssl-devel libcurl-devel c-ares-devel openssl && yum clean all -y
|
|
||||||
|
|
||||||
COPY ./root /
|
COPY ./root /
|
||||||
|
|
||||||
# DTS
|
|
||||||
ENV BASH_ENV=/usr/bin/scl_enable \
|
|
||||||
ENV=/usr/bin/scl_enable \
|
|
||||||
PROMPT_COMMAND=". /usr/bin/scl_enable"
|
|
||||||
|
|
||||||
ENTRYPOINT ["entrypoint"]
|
ENTRYPOINT ["entrypoint"]
|
||||||
CMD ["usage"]
|
CMD ["usage"]
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
# IMPORTANT: Do not add more content to this file unless you know what you are doing.
|
|
||||||
# This file is sourced everytime the shell session is opened.
|
|
||||||
#
|
|
||||||
# This will make scl collection binaries work out of box.
|
|
||||||
unset BASH_ENV PROMPT_COMMAND ENV
|
|
||||||
source scl_source enable devtoolset-7 llvm-toolset-7
|
|
Loading…
Reference in New Issue
Block a user