#!/bin/bash # This clones meetbot into a top-level "meetbot" (and in the future # other sibling plugins) directory and sets up a sibling install to # build the container locally. if [ ! -d .zuul-siblings/opendev.org/opendev/meetbot ]; then mkdir -p .zuul-siblings/opendev.org/opendev if [ ! -d meetbot ]; then git clone https://opendev.org/opendev/meetbot fi pushd .zuul-siblings/opendev.org/opendev ln -sf ../../../meetbot meetbot popd fi docker build . -f Dockerfile --build-arg \ ZUUL_SIBLINGS="opendev.org/opendev/meetbot"