Files
terraform-provider-bitbucke…/scripts/start-docker-compose.sh
Justin To b3ee8fd46c * Added a flag to specify whether to import groups that already exist in bitbucket along with functionality to import those groups into the terraform state
* Changed the error checking when importing an existing group for bitbucket so that the duplicate group error is not thrown
* Added two acceptance tests
* Updated the ReadMe.md with accurate instructions since the previous ones were not working for us
* Updated the Makefile to set the maximum number of files allowed to be open to 1024 since 256 was too few.  We called `ulimit -n 1024` to do this for the testacc and testacc-bitbucket targets.
* Changed the start-docker-compose.sh to use the bitbucket server environment variable so that it doesn't always refer to localhost
* Skipped some testcases that are consistently failing in master branch
* Added a version.env file to be used to control the versioning from CICD builds
* Set version to 1.4.0
* In the start-docker-compose.sh if the BITBUCKET_SERVER environment variable is not set then use http://localhost:7990

In the start-docker-compose.sh if the BITBUCKET_SERVER environment variable is not set then use http://localhost:7990
2020-07-14 17:04:00 -04:00

19 lines
649 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/1.20.1/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