mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-01-11 22:41:45 +01:00
For some reason this api does return ints, where it is supposed to return strings in older LTS versions.
19 lines
650 B
Bash
Executable File
19 lines
650 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
cd ${DIR}
|
|
|
|
if [ ! -f ${DIR}/docker-compose ]; then
|
|
echo "--> Downloading docker-compose"
|
|
curl -L https://github.com/docker/compose/releases/download/v2.34.0/docker-compose-`uname -s`-`uname -m` > ${DIR}/docker-compose
|
|
chmod +x ${DIR}/docker-compose
|
|
fi
|
|
|
|
echo "--> Starting docker-compose"
|
|
${DIR}/docker-compose up -d --build
|
|
|
|
echo "--> Wait for bitbucket to be ready"
|
|
#If the BITBUCKET_SERVER environment variable is not set then use http://localhost:7990
|
|
bash ${DIR}/wait-for-url.sh --url ${BITBUCKET_SERVER-http://localhost:7990}/status --timeout 600
|