airship-in-a-bottle/tools/multi_nodes_gate/airship_gate/stages/build-scripts.sh
Scott Hussey 4624804f80 Definition for virtual site deployment
- Create a site definition to support a full site deployment
  workflow using VMs

Multi-Nodes Gate

Enable multi-node gate for Airship using core Airship
components.

Deployment will be driven by Shipyard.

We will re-use and adapt the source codes from the Promenade
g2 Gate [1].

[1] https://github.com/openstack/airship-promenade/tree/master/tools/g2

Change-Id: I41e79f5f26311fa179a2e5c121aa815caa05cfcd
2018-07-30 14:12:54 +00:00

35 lines
759 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source "${GATE_UTILS}"
mkdir -p ${SCRIPT_DEPOT}
chmod 777 ${SCRIPT_DEPOT}
DOCKER_RUN_OPTS=("-e PROMENADE_DEBUG=${PROMENADE_DEBUG}")
for v in HTTPS_PROXY HTTP_PROXY NO_PROXY https_proxy http_proxy no_proxy
do
if [[ -v "${v}" ]]
then
DOCKER_RUN_OPTS+=(" -e ${v}=${!v}")
fi
done
log Building scripts
docker run --rm -t \
-w /config \
--network host \
-v "${DEFINITION_DEPOT}:/config" \
-v "${GATE_DEPOT}:/gate" \
-v "${CERT_DEPOT}:/certs" \
-v "${SCRIPT_DEPOT}:/scripts" \
${DOCKER_RUN_OPTS[*]} \
"${IMAGE_PROMENADE_CLI}" \
promenade \
build-all \
--validators \
-o /scripts \
/config/*.yaml /certs/*.yaml /gate/*.yaml