port:
tag:
- latest:
+ from:
buildargs:
branch: master
slave: lf-virtual9
DASHBOARD_URL: http://172.30.13.94
dependency: 3.13
- leguer:
+ from:
buildargs:
branch: stable/leguer
slave: lf-virtual9
DASHBOARD_URL: http://172.30.13.94
dependency: 3.12
- kali:
+ from:
buildargs:
branch: stable/kali
slave: lf-pod4-3
DASHBOARD_URL: http://172.30.12.88
dependency: 3.11
- jerma:
+ from:
buildargs:
branch: stable/jerma
slave: lf-pod4
DASHBOARD_URL: http://172.30.12.83
dependency: 3.10
- iruya:
+ from:
buildargs:
branch: stable/iruya
slave: lf-virtual4
DASHBOARD_URL: http://172.30.13.89
dependency: 3.9
- hunter:
+ from:
buildargs:
branch: stable/hunter
slave: lf-virtual6
ref_arg: '{ref_arg}'
path: '{path}'
buildargs: '{buildargs}'
+ from: '{from}'
- builder:
name: functest-build-containers
fi
build_args=""
if [ "{buildargs}" != "None" ]; then
- build_args="{buildargs} "
+ build_args="{buildargs}"
fi
if [ "{ref_arg}" != "None" ]; then
- build_args="--build-arg {ref_arg}={ref}"
+ build_args="$build_args --build-arg {ref_arg}={ref}"
fi
cd {path}
+ if [ "{from}" != "None" ]; then
+ sed -i {from} Dockerfile
+ fi
sudo docker build $build_args \
--pull=false --no-cache --force-rm=true \
-t $image .
set +x
if [ "_" = "_" ]; then
image=alpine:{dependency}
- elif [ "_" = "None" ]; then
+ elif [ "None" = "None" ]; then
image=_/alpine:{dependency}
else
- image=_:/alpine{dependency}
+ image=_:/alpine:{dependency}
fi
sudo docker pull $image || true
set +x
if [ "_" = "_" ]; then
image=alpine:{dependency}
- elif [ "_" = "None" ]; then
+ elif [ "" = "None" ]; then
image=_/alpine:{dependency}
else
- image=_:/alpine{dependency}
+ image=_:/alpine:{dependency}
fi
sudo docker rmi $image || true
builders:
- shell: |
set +x
- sudo apt-get update && sudo apt-get install software-properties-common gpg -y
+ sudo apt-get update && sudo apt-get install \
+ software-properties-common gpg -y
sudo add-apt-repository -y ppa:deadsnakes/ppa
- sudo apt-get update && sudo apt-get install python3.8 python3.8-dev \
- python3.8-distutils \
+ sudo apt-get update && sudo apt-get install python3.8 \
+ python3.8-dev python3.8-distutils \
python3.7 python3.7-dev python3.6 python3.6-dev \
python python-dev python3-pip enchant -y
sudo pip3 install tox tox-pip-version
+
tox
- job-template:
builders:
- shell: |
sudo apt-get update && sudo apt-get install curl -y
+
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b .
if [ "{repo}" = "_" ]; then
image={container}:{tag}
- functest-trivy:
<<: *functest-containers
+- project:
+ name: 'functest-opnfv-functest-core-trivy'
+ <<: *functest-params
+ container: 'functest-core'
+ jobs:
+ - 'functest-{repo}-{container}-{tag}-trivy'
+
+- project:
+ name: 'functest-opnfv-functest-tempest-trivy'
+ <<: *functest-params
+ container: 'functest-tempest'
+ jobs:
+ - 'functest-{repo}-{container}-{tag}-trivy'
+
- project:
name: 'functest-opnfv-functest-healthcheck-trivy'
<<: *functest-params
container: 'functest-healthcheck'
jobs:
- 'functest-{repo}-{container}-{tag}-trivy'
+
- project:
name: 'functest-opnfv-functest-smoke-trivy'
<<: *functest-params
container: 'functest-smoke'
jobs:
- 'functest-{repo}-{container}-{tag}-trivy'
+
- project:
- name: 'functest-opnfv-functest-smoke-cntt-trivy'
+ name: 'functest-opnfv-functest-benchmarking-trivy'
<<: *functest-params
- container: 'functest-smoke-cntt'
+ container: 'functest-benchmarking'
jobs:
- 'functest-{repo}-{container}-{tag}-trivy'
+
- project:
- name: 'functest-opnfv-functest-benchmarking-trivy'
+ name: 'functest-opnfv-functest-vnf-trivy'
<<: *functest-params
- container: 'functest-benchmarking'
+ container: 'functest-vnf'
jobs:
- 'functest-{repo}-{container}-{tag}-trivy'
+
- project:
- name: 'functest-opnfv-functest-benchmarking-cntt-trivy'
+ name: 'functest-opnfv-functest-smoke-cntt-trivy'
<<: *functest-params
- container: 'functest-benchmarking-cntt'
+ container: 'functest-smoke-cntt'
jobs:
- 'functest-{repo}-{container}-{tag}-trivy'
+
- project:
- name: 'functest-opnfv-functest-vnf-trivy'
+ name: 'functest-opnfv-functest-benchmarking-cntt-trivy'
<<: *functest-params
- container: 'functest-vnf'
+ container: 'functest-benchmarking-cntt'
jobs:
- 'functest-{repo}-{container}-{tag}-trivy'