Sha256: 5641d117efe71e96447813b70e42deb82b9558d988f7695144903795382300e3
Contents?: true
Size: 1.43 KB
Versions: 9
Compression:
Stored size: 1.43 KB
Contents
#!/usr/bin/env bash function print_results() { exit_code=$? set +e echo "" if [[ "$exit_code" == "0" ]]; then echo "Success!" else echo "Something went wrong! Check the output above for details." fi } trap print_results INT TERM EXIT set -e OSNAME=$(uname | tr "[:upper:]" "[:lower:]") function generate_docker_override_os () { sed -E "s/#(.*# ${OSNAME}$)/\1/" } function generate_docker_override_filesystem () { if [ -z "${IGNORE_FILESYSTEM_OVERRIDE}" ]; then sed -E "s/#(.*# ${OSNAME}:fs)/\1/" else cat fi } function generate_docker_override() { if [ -e docker-compose.override.yml ]; then echo "We found an existing docker-compose.override.yml" echo "" echo "You'll want to merge that file with the version controlled docker-compose.dev.override.yml file to make sure you've got the most recent changes" echo "" else echo "we are building the development example override file to docker-compose.override.yml for you" generate_docker_override_os < docker-compose.dev.override.yml | \ generate_docker_override_filesystem > docker-compose.override.yml fi } function os_linux_specific_setup() { mkdir -p log pacts } os_specific_setup() { echo Configuring for "${OSNAME}" case ${OSNAME} in linux) os_linux_specific_setup ;; esac } os_specific_setup generate_docker_override echo "" echo "Preparing environment for native development..." bundle install
Version data entries
9 entries across 9 versions & 1 rubygems