promenade/tools/dev-build.sh
anthony.bellino 0e8b5cfe59 Uplift Promenade image to address CVEs
The current Promenade image is vulnerable to several CVEs:
CVE-2019-3462
CVE-2018-16865
CVE-2018-16864

Which Ubuntu 16.04/18.04 addresses.
This patchset makes the following changes:
1. Adds new distro specific dockerfiles for xenial/bionic.
2. Updates gates to be specific about the ubuntu image being
   checked.
3. Updates .zuul.yaml checks/gates/post jobs for xenial/bionic.
4. Updates build-image.sh docker build for specific dockerfile
   specified in config.sh (IMAGE_PROMENADE_DISTRO).

Change-Id: I89e5297a3baa8c2d2c142e5e29932476fc628398
2020-05-28 16:09:40 +00:00

17 lines
359 B
Bash
Executable File

#!/usr/bin/env bash
set -eux
SCRIPT_DIR=$(realpath $(dirname $0))
SOURCE_DIR=$(realpath $SCRIPT_DIR/..)
echo === Building image ===
docker build \
-t quay.io/airshipit/promenade:master \
-f "${SOURCE_DIR}/images/promenade/Dockerfile.${DISTRO}" \
${SOURCE_DIR}
export PROMENADE_DEBUG=${PROMENADE_DEBUG:-1}
exec $SCRIPT_DIR/simple-deployment.sh ${@}