diff --git a/.circleci/config.yml b/.circleci/config.yml index 2d2cb4d1..e0b7af8e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -178,10 +178,10 @@ jobs: FALCO_VERSION=$(sed -e 's/^"//' -e 's/"$//' <<< $(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3)) jfrog bt u /build/release/falco-${FALCO_VERSION}-x86_64.rpm falcosecurity/rpm/falco/${FALCO_VERSION} --user poiana --key ${BINTRAY_SECRET} --publish - run: - name: Publish tgz - command: | - FALCO_VERSION=$(sed -e 's/^"//' -e 's/"$//' <<< $(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3)) - jfrog bt u /build/release/falco-${FALCO_VERSION}-x86_64.tar.gz falcosecurity/bin/falco/${FALCO_VERSION} x86_64/ --user poiana --key ${BINTRAY_SECRET} --publish + name: Publish tgz + command: | + FALCO_VERSION=$(sed -e 's/^"//' -e 's/"$//' <<< $(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3)) + jfrog bt u /build/release/falco-${FALCO_VERSION}-x86_64.tar.gz falcosecurity/bin/falco/${FALCO_VERSION} x86_64/ --user poiana --key ${BINTRAY_SECRET} --publish workflows: version: 2 build_and_test: diff --git a/docker/minimal/Dockerfile b/docker/minimal/Dockerfile index 2fb492e2..401d59a2 100644 --- a/docker/minimal/Dockerfile +++ b/docker/minimal/Dockerfile @@ -8,14 +8,13 @@ ENV FALCO_VERSION=${FALCO_VERSION} WORKDIR / -ADD https://s3.amazonaws.com/download.draios.com/stable/tgz/x86_64/falco-${FALCO_VERSION}-x86_64.tar.gz / +ADD https://bintray.com/api/ui/download/falcosecurity/bin/x86_64/falco-${FALCO_VERSION}-x86_64.tar.gz / -# ADD will download from URL and unntar RUN apt-get update && \ apt-get install -y libyaml-0-2 binutils && \ - # curl -O https://s3.amazonaws.com/download.draios.com/stable/tgz/x86_64/falco-${FALCO_VERSION}-x86_64.tar.gz && \ - tar xfzv falco-${FALCO_VERSION}-x86_64.tar.gz && \ - rm -f falco-${FALCO_VERSION}-x86_64.tar.gz && \ + gzip -d falco-${FALCO_VERSION}-x86_64.tar.gz && \ + tar xfzv falco-${FALCO_VERSION}-x86_64.tar && \ + rm -f falco-${FALCO_VERSION}-x86_64.tar && \ mv falco-${FALCO_VERSION}-x86_64 falco && \ strip falco/usr/bin/falco && \ apt-get clean && \ diff --git a/docker/rhel/Dockerfile b/docker/rhel/Dockerfile index 3c389b30..3d2f3405 100644 --- a/docker/rhel/Dockerfile +++ b/docker/rhel/Dockerfile @@ -2,7 +2,7 @@ FROM registry.access.redhat.com/rhel7 LABEL maintainer="cncf-falco-dev@lists.cncf.io" -### Atomic/OpenShift Labels - https://github.com/projectatomic/ContainerApplicationGenericLabels +## Atomic/OpenShift Labels - https://github.com/projectatomic/ContainerApplicationGenericLabels LABEL name="falco" LABEL vendor="falcosecurity" LABEL url="http://falco.org" @@ -24,9 +24,9 @@ RUN rpm --import https://falco.org/repo/falcosecurity-3672BA8F.asc && \ yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ --security --sec-severity=Important --sec-severity=Critical && \ yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ - ### help file markdown to man conversion + ## help file markdown to man conversion go-md2man -in /tmp/help.md -out /help.1 && \ - ### we delete everything on /usr/src/kernels otherwise it messes up docker-entrypoint.sh + ## we delete everything on /usr/src/kernels otherwise it messes up docker-entrypoint.sh rm -fr /usr/src/kernels && \ rm -df /lib/modules && ln -s $HOST_ROOT/lib/modules /lib/modules && \ yum clean all