Fix Sonobuoy systemd-image for k8 1.18 49/4349/1 master
authorSirisha Gopigiri <sirishagopigiri@gmail.com>
Fri, 18 Jun 2021 04:28:25 +0000 (09:58 +0530)
committerSirisha Gopigiri <sirishagopigiri@gmail.com>
Fri, 18 Jun 2021 04:29:00 +0000 (09:59 +0530)
This PS upgrades the sonobuoy version, so that
the systemd-logs pods get launched successfully
on the kubernetes cluster.

Signed-off-by: SirishaGopigiri <sirishagopigiri@gmail.com>
Change-Id: I2f690fef2202528730b760a6a629bb83e6ddc611

21 files changed:
.coafile
.gitmodules [deleted file]
bluval/requirements.txt
docker/README.rst
docker/docker/Dockerfile
docker/hardware/Dockerfile
docker/helm/Dockerfile
docker/k8s/Dockerfile
docker/kube-conformance/Makefile [deleted file]
docker/kube-conformance/kube-conformance [deleted submodule]
docker/kube-conformance/patches/aarch64/0001-Dockerfile-Makefile-Add-AArch64-support.patch [deleted file]
docker/openstack/Dockerfile
docker/os/Dockerfile
docker/services/Dockerfile
docker/sonobuoy-plugin-systemd-logs/Makefile [deleted file]
docker/sonobuoy-plugin-systemd-logs/patches/aarch64/0001-Dockerfile-AArch64-support.patch [deleted file]
docker/sonobuoy-plugin-systemd-logs/sonobuoy-plugin-systemd-logs [deleted submodule]
tests/k8s/conformance/conformance.robot
tests/os/vuls/config.toml
tests/os/vuls/vuls.robot
tox.ini

index c472b5d..4d8a321 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -5,7 +5,6 @@ ignore = .tox/**,
     .git/**,
     .gitignore,
     .gitreview,
     .git/**,
     .gitignore,
     .gitreview,
-    .gitmodules,
     **.sw?,
     **.orig
 
     **.sw?,
     **.orig
 
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644 (file)
index a51136e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-[submodule "sonobuoy-plugin-systemd-logs"]
-       path = docker/sonobuoy-plugin-systemd-logs/sonobuoy-plugin-systemd-logs
-       url = https://github.com/heptio/sonobuoy-plugin-systemd-logs
-       branch = master
-[submodule "kube-conformance"]
-       path = docker/kube-conformance/kube-conformance
-       url = https://github.com/heptio/kube-conformance
-       branch = master
index 7784bcd..0e89160 100644 (file)
@@ -5,3 +5,4 @@ robotframework-httplibrary
 robotframework-jsonlibrary
 robotframework-requests
 robotframework-sshlibrary
 robotframework-jsonlibrary
 robotframework-requests
 robotframework-sshlibrary
+cryptography==2.8
index 0fff3ed..74cd787 100644 (file)
@@ -199,84 +199,19 @@ Example (assuming the default variables have been utilized for building the imag
 The kube-conformance container
 ==============================
 
 The kube-conformance container
 ==============================
 
-Building and pushing the container
-----------------------------------
-
-To build just the kube-conformance container, use the command:
-
-.. code-block:: console
-
-    make kube-conformance-build [ REGISTRY=<dockerhub_registry> NAME=<image_name>]
-
-To both build and push the container, use the command:
-
-.. code-block:: console
-
-    make kube-conformance [ REGISTRY=<dockerhub_registry> NAME=<image_name>]
+The current kube-conformance image used is being pulled from k8s.gcr.io
+based on the kubernetes version the cluster is running on.
 
 
-Using the container
--------------------
-
-This is a standalone container able to launch Kubernetes end-to-end tests,
-for the purposes of conformance testing.
-
-It is a thin wrapper around the `e2e.test` binary in the upstream Kubernetes
-distribution, which drops results in a predetermined location for use as a
-[Heptio Sonobuoy](https://github.com/heptio/sonobuoy) plugin.
-
-To learn more about conformance testing and its Sonobuoy integration, read the
-[conformance guide](https://github.com/heptio/sonobuoy/blob/master/docs/conformance-testing.md).
-
-Example:
-
-.. code-block:: console
-
-    docker run -ti akraino/validation:kube-conformance-v1.16
-
-By default, the container will run the `run_e2e.sh` script. If you want to
-enter the container, add */bin/sh* at the end of the command above
-
-Normally, this conainer is not used directly, but instead leveraged via
-sonobuoy.
+For more information refer to https://sonobuoy.io/docs/v0.50.0/
 
 The sonobuoy-plugin-systemd-logs container
 ==========================================
 
 
 The sonobuoy-plugin-systemd-logs container
 ==========================================
 
-Building and pushing the container
-----------------------------------
-
-To build just the sonobuoy-plugin-systemd-logs container, use the command:
-
-.. code-block:: console
-
-    make sonobuoy-plugin-systemd-logs-build [ REGISTRY=<dockerhub_registry> NAME=<image_name>]
-
-To both build and push the container, use the command:
-
-.. code-block:: console
-
-    make sonobuoy-plugin-systemd-logs [ REGISTRY=<dockerhub_registry> NAME=<image_name>]
-
-Using the container
--------------------
-
-This is a simple standalone container that gathers log information from
-systemd, by chrooting into the node's filesystem and running `journalctl`.
-
-This container is used by [Heptio Sonobuoy](https://github.com/heptio/sonobuoy)
-for gathering host logs in a Kubernetes cluster.
-
-Example:
-
-.. code-block:: console
-
-    docker run -ti akraino/validation:sonobuoy-plugin-systemd-logs-latest
+The current sonobuoy-plugin-systemd-logs image used is being pulled from
+gcr.io/heptio-images repo with latest tag.
 
 
-By default, the container will run the `get_systemd_logs.sh` script. If you
-want to enter the container, add */bin/sh* at the end of the command above.
+For more information refer to https://sonobuoy.io/docs/v0.50.0/
 
 
-Normally, this conainer is not used directly, but instead leveraged via
-sonobuoy.
 
 The openstack container
 =======================
 
 The openstack container
 =======================
index 82c7040..cdf8f2f 100644 (file)
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
-FROM python:3.6-alpine3.9 as build
+FROM python:3.10.0b1-alpine3.13 as build
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 RUN apk --no-cache add --update \
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 RUN apk --no-cache add --update \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        freetype-dev \
         gcc \
         gcc \
+        gdk-pixbuf-dev \
+        gettext \
         git \
         git \
-        libc-dev \
-        libffi \
+        jpeg-dev \
+        lcms2-dev \
         libffi-dev \
         libffi-dev \
-        make \
-        openssl-dev
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
 
 # Build binaries
 WORKDIR /wheels
 
 # Build binaries
 WORKDIR /wheels
@@ -36,11 +55,39 @@ RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
 RUN git clone https://github.com/docker/docker-bench-security.git /opt/akraino/docker-bench-security
 
 # Copy binaries in the final container and install requirements
 RUN git clone https://github.com/docker/docker-bench-security.git /opt/akraino/docker-bench-security
 
 # Copy binaries in the final container and install requirements
-FROM python:3.6-alpine3.9
+FROM python:3.10.0b1-alpine3.13
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /opt/akraino/docker-bench-security /opt/akraino/docker-bench-security
 
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /opt/akraino/docker-bench-security /opt/akraino/docker-bench-security
 
+RUN apk --no-cache add --update \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        freetype-dev \
+        gcc \
+        gdk-pixbuf-dev \
+        gettext \
+        git \
+        jpeg-dev \
+        lcms2-dev \
+        libffi-dev \
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
+
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
index a21cb64..19836f0 100644 (file)
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
-FROM python:3.6-alpine3.9 as build
+FROM python:3.10.0b1-alpine3.13 as build
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 
 RUN apk --no-cache add --update \
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 
 RUN apk --no-cache add --update \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        freetype-dev \
         gcc \
         gcc \
+        gdk-pixbuf-dev \
+        gettext \
         git \
         git \
-        libc-dev \
-        libffi \
+        jpeg-dev \
+        lcms2-dev \
         libffi-dev \
         libffi-dev \
-        make \
+        musl-dev \
+        openjpeg-dev \
         openssl-dev \
         openssl-dev \
-        wget
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
 
 # Build binaries
 WORKDIR /wheels
 
 # Build binaries
 WORKDIR /wheels
@@ -42,12 +60,41 @@ RUN wget -qO- https://github.com/DMTF/Redfish-Usecase-Checkers/archive/master.zi
     unzip -qd /opt/akraino -
 
 # Copy binaries in the final contaier and install robot framework
     unzip -qd /opt/akraino -
 
 # Copy binaries in the final contaier and install robot framework
-FROM python:3.6-alpine3.9
+FROM python:3.10.0b1-alpine3.13
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /opt/akraino/Redfish-Test-Framework-master /opt/akraino/Redfish-Test-Framework
 COPY --from=build /opt/akraino/Redfish-Usecase-Checkers-master /opt/akraino/Redfish-Usecase-Checkers
 
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /opt/akraino/Redfish-Test-Framework-master /opt/akraino/Redfish-Test-Framework
 COPY --from=build /opt/akraino/Redfish-Usecase-Checkers-master /opt/akraino/Redfish-Usecase-Checkers
 
+RUN apk --no-cache add --update \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        curl \
+        freetype-dev \
+        gcc \
+        gdk-pixbuf-dev \
+        gettext \
+        git \
+        jpeg-dev \
+        lcms2-dev \
+        libffi-dev \
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
+
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
@@ -60,6 +107,3 @@ RUN pip install -r /opt/akraino/validation/bluval/requirements.txt
 RUN pip install html-testRunner \
                 -r /opt/akraino/Redfish-Usecase-Checkers/requirements.txt
 
 RUN pip install html-testRunner \
                 -r /opt/akraino/Redfish-Usecase-Checkers/requirements.txt
 
-# Install curl
-RUN apk --no-cache add --update \
-        curl
index 5d9c9af..824c63e 100644 (file)
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
-FROM python:3.6-alpine3.9 as build
+FROM python:3.10.0b1-alpine3.13 as build
 
 ARG HELM_TAG=v2.15.1
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 RUN apk --no-cache add --update \
 
 ARG HELM_TAG=v2.15.1
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 RUN apk --no-cache add --update \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        freetype-dev \
         gcc \
         gcc \
+        gdk-pixbuf-dev \
+        gettext \
         git \
         git \
-        libc-dev \
-        libffi \
+        jpeg-dev \
+        lcms2-dev \
         libffi-dev \
         libffi-dev \
-        make \
-        openssl-dev
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
 
 # Build binaries
 WORKDIR /wheels
 
 # Build binaries
 WORKDIR /wheels
@@ -38,11 +57,39 @@ RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
 RUN git clone -b $HELM_TAG https://github.com/helm/helm.git /opt/helm
 
 # Copy binaries in the final container and install requirements
 RUN git clone -b $HELM_TAG https://github.com/helm/helm.git /opt/helm
 
 # Copy binaries in the final container and install requirements
-FROM python:3.6-alpine3.9
+FROM python:3.10.0b1-alpine3.13
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /opt/helm/docs/examples/alpine /opt/akraino/bluval-test-alpine
 
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /opt/helm/docs/examples/alpine /opt/akraino/bluval-test-alpine
 
+RUN apk --no-cache add --update \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        freetype-dev \
+        gcc \
+        gdk-pixbuf-dev \
+        gettext \
+        git \
+        jpeg-dev \
+        lcms2-dev \
+        libffi-dev \
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
+
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
index 3296fdf..f9f992b 100644 (file)
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
-FROM golang:alpine3.10 as build
+FROM golang:1.16.5-alpine3.13 as build
 
 # Sonobuoy supports 3 Kubernetes minor versions: the current release and 2
 # minor versions before.
 
 # Sonobuoy supports 3 Kubernetes minor versions: the current release and 2
 # minor versions before.
-ARG SB_TAG=v0.16.1
+ARG SB_TAG=v0.18.2
 # Determine the latest stable git tag at build time based on stable major version
 # Determine the latest stable git tag at build time based on stable major version
-ARG K8S_VER=1.16
+ARG K8S_VER=1.18
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 
 RUN apk --no-cache add --update \
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 
 RUN apk --no-cache add --update \
-        curl \
-        openssl \
-        python3 \
         bash \
         bash \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        curl \
         findutils \
         findutils \
+        freetype-dev \
         gcc \
         gcc \
+        gdk-pixbuf-dev \
+        gettext \
         git \
         grep \
         git \
         grep \
+        jpeg-dev \
+        lcms2-dev \
         libc-dev \
         libc-dev \
-        libffi \
         libffi-dev \
         make \
         libffi-dev \
         make \
+        musl-dev \
+        openjpeg-dev \
         openssl-dev \
         openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
         python3-dev \
         py3-pip \
         python3-dev \
         py3-pip \
-        rsync
+        rsync \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
 
 # Build binaries; detect the architecture automatically (default is amd64)
 RUN git clone https://github.com/kubernetes/kubernetes /src/k8s.io/kubernetes
 
 # Build binaries; detect the architecture automatically (default is amd64)
 RUN git clone https://github.com/kubernetes/kubernetes /src/k8s.io/kubernetes
@@ -66,12 +84,48 @@ RUN pip3 install wheel
 RUN pip3 wheel -r /wheels/requirements/pip-requirements.txt
 
 # Copy binaries in the final container and install robot framework
 RUN pip3 wheel -r /wheels/requirements/pip-requirements.txt
 
 # Copy binaries in the final container and install robot framework
-FROM python:3.7-alpine3.10
+FROM python:3.10.0b1-alpine3.13
 COPY --from=build /src/k8s.io/kubernetes/_output/bin /usr/local/bin
 COPY --from=build /go/bin/sonobuoy /bin/sonobuoy
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation/ /opt/akraino/validation/
 
 COPY --from=build /src/k8s.io/kubernetes/_output/bin /usr/local/bin
 COPY --from=build /go/bin/sonobuoy /bin/sonobuoy
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation/ /opt/akraino/validation/
 
+RUN apk --no-cache add --update \
+        bash \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        curl \
+        findutils \
+        freetype-dev \
+        gcc \
+        gdk-pixbuf-dev \
+        gettext \
+        git \
+        grep \
+        jpeg-dev \
+        lcms2-dev \
+        libc-dev \
+        libffi-dev \
+        make \
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        py3-pip \
+        rsync \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
+
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
diff --git a/docker/kube-conformance/Makefile b/docker/kube-conformance/Makefile
deleted file mode 100644 (file)
index 1c0f7f0..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-##############################################################################
-# Copyright (c) 2019 AT&T, ENEA AB, Nokia and others                         #
-#                                                                            #
-# Licensed under the Apache License, Version 2.0 (the "License");            #
-# you maynot use this file except in compliance with the License.            #
-#                                                                            #
-# You may obtain a copy of the License at                                    #
-#       http://www.apache.org/licenses/LICENSE-2.0                           #
-#                                                                            #
-# Unless required by applicable law or agreed to in writing, software        #
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
-# See the License for the specific language governing permissions and        #
-# limitations under the License.                                             #
-##############################################################################
-
-export WORK_DIR?=$(TAG_PRE)
-export KUBE_VERSION=1.16
-export TAG_VER=v$(KUBE_VERSION)
-
-.PHONY: .build
-.build:: .submodules_patched
-       $(MAKE) -C $(TAG_PRE) e2e.test kubectl ginkgo
-
-.PHONY: all
-all: push-image .push_manifest
-
-.PHONY: build
-build: .build
-
-.PHONY: push-image
-push-image: .push_image
-
-include ../build.mk
diff --git a/docker/kube-conformance/kube-conformance b/docker/kube-conformance/kube-conformance
deleted file mode 160000 (submodule)
index 9cdcb01..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 9cdcb010918c815a51ac627ce68fa6f3165beaf8
diff --git a/docker/kube-conformance/patches/aarch64/0001-Dockerfile-Makefile-Add-AArch64-support.patch b/docker/kube-conformance/patches/aarch64/0001-Dockerfile-Makefile-Add-AArch64-support.patch
deleted file mode 100644 (file)
index 770f6bd..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-Date: Tue, 25 Jun 2019 17:59:13 +0200
-Subject: [PATCH] Dockerfile, Makefile: Add AArch64 support
-
-Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
----
- Dockerfile | 6 ++++--
- Makefile   | 8 +++++---
- 2 files changed, 9 insertions(+), 5 deletions(-)
-
-diff --git a/Dockerfile b/Dockerfile
-index 289ac88..102685d 100644
---- a/Dockerfile
-+++ b/Dockerfile
-@@ -13,10 +13,12 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
--FROM buildpack-deps:jessie-scm
-+FROM arm64v8/buildpack-deps:jessie-scm
- MAINTAINER Timothy St. Clair "tstclair@heptio.com"
-
--RUN apt-get update && apt-get -y --no-install-recommends install \
-+RUN echo 'Acquire::Check-Valid-Until "0";' > /etc/apt/apt.conf.d/10no--check-valid-until \
-+    && sed -i -e '/security/s/^/#/g' -e 's|deb.debian.org/debian|snapshot.debian.org/archive/debian/20190301T035241Z|g' /etc/apt/sources.list \
-+    && apt-get update && apt-get -y --no-install-recommends install \
-     ca-certificates \
-     && rm -rf /var/cache/apt/* \
-     && rm -rf /var/lib/apt/lists/*
-diff --git a/Makefile b/Makefile
-index 4335cfd..bdaa52c 100644
---- a/Makefile
-+++ b/Makefile
-@@ -29,6 +29,8 @@ is_root=$(filter 0,$(shell id -u))
- DOCKER?=$(if $(or $(in_docker_group),$(is_root)),docker,sudo docker)
- DIR := ${CURDIR}
-
-+export KUBERNETES_SERVER_ARCH=arm64
-+
- .PHONY: all container getbins clean
-
- all: container
-@@ -47,9 +49,9 @@ _cache/.getbins.$(kube_version_full).timestamp:
-                                         KUBERNETES_DOWNLOAD_TESTS=true \
-                                         KUBERNETES_SKIP_CONFIRM=true ./kubernetes/cluster/get-kube-binaries.sh
-       mv _cache/$(kube_version_full)/kubernetes/cluster ./
--      mv _cache/$(kube_version_full)/kubernetes/platforms/linux/amd64/e2e.test ./
--      mv _cache/$(kube_version_full)/kubernetes/platforms/linux/amd64/ginkgo ./
--      mv _cache/$(kube_version_full)/kubernetes/platforms/linux/amd64/kubectl ./
-+      mv _cache/$(kube_version_full)/kubernetes/platforms/linux/arm64/e2e.test ./
-+      mv _cache/$(kube_version_full)/kubernetes/platforms/linux/arm64/ginkgo ./
-+      mv _cache/$(kube_version_full)/kubernetes/platforms/linux/arm64/kubectl ./
-       touch $@
-
- container: e2e.test kubectl ginkgo
index 6717d4c..bb40764 100644 (file)
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
-FROM python:3.6-alpine3.9 as build
+FROM python:3.10.0b1-alpine3.13 as build
 
 ARG REFSTACK_TARGET=2019.11
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 
 ARG REFSTACK_TARGET=2019.11
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
+
 RUN apk --no-cache add --update \
 RUN apk --no-cache add --update \
+        bash \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        curl \
+        findutils \
+        freetype-dev \
         gcc \
         gcc \
+        gdk-pixbuf-dev \
+        gettext \
         git \
         git \
+        grep \
+        jpeg-dev \
+        lcms2-dev \
         libc-dev \
         libc-dev \
-        libffi \
         libffi-dev \
         make \
         libffi-dev \
         make \
+        musl-dev \
+        openjpeg-dev \
         openssl-dev \
         openssl-dev \
-        wget
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        py3-pip \
+        rsync \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        wget \
+        zlib-dev
 
 # Build binaries
 WORKDIR /wheels
 
 # Build binaries
 WORKDIR /wheels
@@ -40,11 +68,48 @@ RUN wget -q -O /tmp/test_list.txt \
     "https://refstack.openstack.org/api/v1/guidelines/$REFSTACK_TARGET/tests?target=platform&type=required&alias=true&flag=false"
 
 # Copy binaries in the final container and install requirements
     "https://refstack.openstack.org/api/v1/guidelines/$REFSTACK_TARGET/tests?target=platform&type=required&alias=true&flag=false"
 
 # Copy binaries in the final container and install requirements
-FROM python:3.6-alpine3.9
+FROM python:3.10.0b1-alpine3.13
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /tmp/test_list.txt /opt/akraino/validation/tests/openstack/tempest/test_list.txt
 
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /tmp/test_list.txt /opt/akraino/validation/tests/openstack/tempest/test_list.txt
 
+RUN apk --no-cache add --update \
+        bash \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        curl \
+        findutils \
+        freetype-dev \
+        gcc \
+        gdk-pixbuf-dev \
+        gettext \
+        git \
+        grep \
+        jpeg-dev \
+        lcms2-dev \
+        libc-dev \
+        libffi-dev \
+        make \
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        py3-pip \
+        rsync \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        wget \
+        zlib-dev
+
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
index 13a9c26..2c16473 100644 (file)
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
-FROM ubuntu:18.04 as build
+FROM ubuntu as build
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 RUN apt-get update && apt-get -y install \
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 RUN apt-get update && apt-get -y install \
-    python3-pip \
     gcc \
     git \
     gcc \
     git \
-    libc-dev \
-    libffi6 \
-    libffi-dev \
     make \
     make \
-    libssl-dev \
     wget \
     wget \
-    golint \
-    sqlite3 \
-    debian-goodies \
-    build-essential \
-    pkg-config \
-    autoconf automake autotools-dev m4 \
     linux-headers-generic \
     linux-headers-generic \
-    libaio-dev libattr1-dev libcap-dev
+    build-essential \
+    libssl-dev \
+    libffi-dev \
+    python-dev \
+    python3-pip \
+    automake \
+    autoconf \
+    pkgconf
 
 # Build binaries
 WORKDIR /wheels
 
 # Build binaries
 WORKDIR /wheels
@@ -69,7 +65,7 @@ RUN if [ $(uname -m) == 'aarch64' ]; then HOST_ARCH=arm64; else HOST_ARCH=amd64;
     export PATH=$PATH:/root/go/bin:/root/go/src/github.com/bin && \
     mkdir -p /root/go/src/github.com/future-architect && \
     cd /root/go/src/github.com/future-architect && \
     export PATH=$PATH:/root/go/bin:/root/go/src/github.com/bin && \
     mkdir -p /root/go/src/github.com/future-architect && \
     cd /root/go/src/github.com/future-architect && \
-    git clone https://github.com/future-architect/vuls -b v0.9.7 && \
+    git clone https://github.com/future-architect/vuls -b v0.10.0 && \
     cd vuls && \
     make install && \
     mkdir -p /root/go/src/github.com/kotakanbe && \
     cd vuls && \
     make install && \
     mkdir -p /root/go/src/github.com/kotakanbe && \
@@ -101,7 +97,7 @@ RUN \
     rm *.sqlite3
 
 # Copy binaries into the final container and install robot framework, bluval dependencies
     rm *.sqlite3
 
 # Copy binaries into the final container and install robot framework, bluval dependencies
-FROM ubuntu:18.04
+FROM ubuntu
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /opt/akraino/ltp.tar.gz /opt/akraino/ltp.tar.gz
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 COPY --from=build /opt/akraino/ltp.tar.gz /opt/akraino/ltp.tar.gz
index 5b25e76..e2e24d3 100644 (file)
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
 ##############################################################################
 
 # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
-FROM python:3.6-alpine3.9 as build
+FROM python:3.10.0b1-alpine3.13 as build
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 
 RUN apk --no-cache add --update \
 
 # Install dependencies
 COPY pip-requirements.txt /wheels/requirements/pip-requirements.txt
 
 RUN apk --no-cache add --update \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        curl \
+        freetype-dev \
         gcc \
         gcc \
+        gdk-pixbuf-dev \
+        gettext \
         git \
         git \
-        libc-dev \
-        libffi \
+        jpeg-dev \
+        lcms2-dev \
         libffi-dev \
         libffi-dev \
-        make \
-        openssl-dev
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
 
 # Build binaries
 WORKDIR /wheels
 
 # Build binaries
 WORKDIR /wheels
@@ -36,10 +56,39 @@ RUN pip3 wheel -r /wheels/requirements/pip-requirements.txt
 RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
 
 # Copy binaries in the final contaier and install robot framework
 RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
 
 # Copy binaries in the final contaier and install robot framework
-FROM python:3.6-alpine3.9
+FROM python:3.10.0b1-alpine3.13
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 
 COPY --from=build /wheels /wheels
 COPY --from=build /opt/akraino/validation /opt/akraino/validation
 
+RUN apk --no-cache add --update \
+        build-base \
+        cairo \
+        cairo-dev \
+        cargo \
+        curl \
+        freetype-dev \
+        gcc \
+        gdk-pixbuf-dev \
+        gettext \
+        git \
+        jpeg-dev \
+        lcms2-dev \
+        libffi-dev \
+        musl-dev \
+        openjpeg-dev \
+        openssl-dev \
+        pango-dev \
+        poppler-utils \
+        postgresql-client \
+        postgresql-dev \
+        py-cffi \
+        python3-dev \
+        rust \
+        tcl-dev \
+        tiff-dev \
+        tk-dev \
+        zlib-dev
+
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
 RUN pip3 install -r /wheels/requirements/pip-requirements.txt \
                  -f /wheels && \
      rm -rf /wheels && \
diff --git a/docker/sonobuoy-plugin-systemd-logs/Makefile b/docker/sonobuoy-plugin-systemd-logs/Makefile
deleted file mode 100644 (file)
index 0af457a..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-##############################################################################
-# Copyright (c) 2019 AT&T, ENEA AB, Nokia and others                         #
-#                                                                            #
-# Licensed under the Apache License, Version 2.0 (the "License");            #
-# you maynot use this file except in compliance with the License.            #
-#                                                                            #
-# You may obtain a copy of the License at                                    #
-#       http://www.apache.org/licenses/LICENSE-2.0                           #
-#                                                                            #
-# Unless required by applicable law or agreed to in writing, software        #
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
-# See the License for the specific language governing permissions and        #
-# limitations under the License.                                             #
-##############################################################################
-
-export WORK_DIR?=$(TAG_PRE)
-
-.PHONY: .build
-.build:: .submodules_patched
-
-.PHONY: all
-all: push-image .push_manifest
-
-.PHONY: build
-build: .build
-
-.PHONY: push-image
-push-image: .push_image
-
-include ../build.mk
diff --git a/docker/sonobuoy-plugin-systemd-logs/patches/aarch64/0001-Dockerfile-AArch64-support.patch b/docker/sonobuoy-plugin-systemd-logs/patches/aarch64/0001-Dockerfile-AArch64-support.patch
deleted file mode 100644 (file)
index 199e923..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-Date: Tue, 25 Jun 2019 17:45:29 +0200
-Subject: [PATCH] Dockerfile: AArch64 support
-
-Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
----
- Dockerfile | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/Dockerfile b/Dockerfile
-index 06d872c..687d541 100644
---- a/Dockerfile
-+++ b/Dockerfile
-@@ -13,10 +13,12 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
--FROM buildpack-deps:jessie-scm
-+FROM arm64v8/buildpack-deps:jessie-scm
- MAINTAINER Ken Simon "ken@heptio.com"
-
--RUN apt-get update && apt-get -y --no-install-recommends install \
-+RUN echo 'Acquire::Check-Valid-Until "0";' > /etc/apt/apt.conf.d/10no--check-valid-until \
-+    && sed -i -e '/security/s/^/#/g' -e 's|deb.debian.org/debian|snapshot.debian.org/archive/debian/20190301T035241Z|g' /etc/apt/sources.list \
-+    && apt-get update && apt-get -y --no-install-recommends install \
-     ca-certificates \
-     && rm -rf /var/cache/apt/* \
-     && rm -rf /var/lib/apt/lists/*
diff --git a/docker/sonobuoy-plugin-systemd-logs/sonobuoy-plugin-systemd-logs b/docker/sonobuoy-plugin-systemd-logs/sonobuoy-plugin-systemd-logs
deleted file mode 160000 (submodule)
index f49e35d..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit f49e35d220772879aa057da7d103af35a21439b6
index c51f217..ffffd77 100644 (file)
@@ -37,15 +37,12 @@ Test Teardown     Run Keywords
 *** Variables ***
 ${LOG}            ${LOG_PATH}${/}${SUITE_NAME.replace(' ','_')}.log
 
 *** Variables ***
 ${LOG}            ${LOG_PATH}${/}${SUITE_NAME.replace(' ','_')}.log
 
-&{SONOBUOY}         path=gcr.io/heptio-images
-...                 name=sonobuoy:v0.16.1
-&{E2E}              path=akraino
+&{SONOBUOY}         path=sonobuoy
+...                 name=sonobuoy:v0.18.2
+&{E2E}              path=k8s.gcr.io
 ...                 name=Actual value set dynamically
 ...                 name=Actual value set dynamically
-&{SYSTEMD_LOGS}     path=akraino
-...                 name=validation:sonobuoy-plugin-systemd-logs-latest
 &{SONOBUOY_IMGS}    sonobuoy=&{SONOBUOY}
 ...                 e2e=&{E2E}
 &{SONOBUOY_IMGS}    sonobuoy=&{SONOBUOY}
 ...                 e2e=&{E2E}
-...                 systemd_logs=&{SYSTEMD_LOGS}
 
 # Following tests assume DNS domain is "cluster.local"
 ${DNS_DOMAIN_TESTS}  SEPARATOR=
 
 # Following tests assume DNS domain is "cluster.local"
 ${DNS_DOMAIN_TESTS}  SEPARATOR=
@@ -146,11 +143,8 @@ Define Images
         ${result}=              Run Process  kubectl  version  -o  json
         Should Be Equal As Integers  ${result.rc}  0
         ${versions}=            Convert String To JSON  ${result.stdout}
         ${result}=              Run Process  kubectl  version  -o  json
         Should Be Equal As Integers  ${result.rc}  0
         ${versions}=            Convert String To JSON  ${result.stdout}
-        ${major}=               Get Value From Json  ${versions}  $.serverVersion.major
-        ${minor}=               Get Value From Json  ${versions}  $.serverVersion.minor
-        ${major}=               Get Regexp Matches  ${major[0]}  \\d+
-        ${minor}=               Get Regexp Matches  ${minor[0]}  \\d+
-        Set To Dictionary       ${SONOBUOY_IMGS['e2e']}  name=validation:kube-conformance-v${major[0]}.${minor[0]}
+        ${gitVersion}=          Get Value From Json  ${versions}  $.serverVersion.gitVersion
+        Set To Dictionary       ${SONOBUOY_IMGS['e2e']}  name=conformance:${gitVersion[0]}
 
 Onboard Images
         ${INT_REG}=             Get Variable Value  ${INTERNAL_REGISTRY}  ${EMPTY}
 
 Onboard Images
         ${INT_REG}=             Get Variable Value  ${INTERNAL_REGISTRY}  ${EMPTY}
@@ -185,7 +179,4 @@ Create Manifest File
         ...                         ${CURDIR}${/}custom_repos.yaml
         ${result}=              Run Process  sonobuoy  gen  @{flags}
         Should Be Equal As Integers  ${result.rc}  0
         ...                         ${CURDIR}${/}custom_repos.yaml
         ${result}=              Run Process  sonobuoy  gen  @{flags}
         Should Be Equal As Integers  ${result.rc}  0
-        ${manifest}=            Replace String  ${result.stdout}
-        ...                         image: gcr.io/heptio-images/sonobuoy-plugin-systemd-logs:latest
-        ...                         image: ${SONOBUOY_IMGS.systemd_logs.path}/${SONOBUOY_IMGS.systemd_logs.name}
-        Create File             ${CURDIR}${/}sonobuoy.yaml  ${manifest}
+        Create File             ${CURDIR}${/}sonobuoy.yaml  ${result.stdout}
index 1329cd5..b1681c4 100644 (file)
@@ -5,4 +5,5 @@ host = "HOST"
 port = "22"
 user = "USERNAME"
 keyPath = "/root/.ssh/id_rsa"
 port = "22"
 user = "USERNAME"
 keyPath = "/root/.ssh/id_rsa"
+sshConfigPath = "/root/.ssh/config"
 containerType = "docker"
 containerType = "docker"
index 9774be9..3118021 100644 (file)
@@ -43,7 +43,7 @@ Run Vuls test
 
     Run Keyword IF  '${SSH_KEYFILE}' == 'None'  Create ssh_keyfile
 
 
     Run Keyword IF  '${SSH_KEYFILE}' == 'None'  Create ssh_keyfile
 
-    ${rc} =  Run And Return Rc  vuls scan -config ${CURDIR}/config.toml -ssh-config
+    ${rc} =  Run And Return Rc  vuls scan -config ${CURDIR}/config.toml
     Should Be Equal As Integers  ${rc}  0
 
     Run Keyword IF  '${os}' == 'ubuntu'  Run vuls for ubuntu  ELSE IF  '${os}' == 'centos'  Run vuls for centos  ELSE  FAIL  Distro '${os}' not supported
     Should Be Equal As Integers  ${rc}  0
 
     Run Keyword IF  '${os}' == 'ubuntu'  Run vuls for ubuntu  ELSE IF  '${os}' == 'centos'  Run vuls for centos  ELSE  FAIL  Distro '${os}' not supported
diff --git a/tox.ini b/tox.ini
index bfba457..09385ec 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -29,7 +29,6 @@ deps =
    requests~=2.21.0
    nodeenv
 commands =
    requests~=2.21.0
    nodeenv
 commands =
-   rm -rf docker/kube-conformance/kube-conformance docker/sonobuoy-plugin-systemd-logs/sonobuoy-plugin-systemd-logs
    nodeenv -p
    npm install --global write-good eslint complexity-report@2.0.0-alpha
    wget --timeout=120 -q https://github.com/pmd/pmd/releases/download/pmd_releases/6.15.0/pmd-bin-6.15.0.zip
    nodeenv -p
    npm install --global write-good eslint complexity-report@2.0.0-alpha
    wget --timeout=120 -q https://github.com/pmd/pmd/releases/download/pmd_releases/6.15.0/pmd-bin-6.15.0.zip