mirror of
https://github.com/balena-io/open-balena.git
synced 2024-12-19 13:47:53 +00:00
a029160caf
- remove some `.gitignore` entries as this is also honoured by `balena push` - added a step to `scripts/quickstart` to produce a single, flat `docker-compose.yml` after running - set the compose file versions to `2.0` to ensure only supported terms are used in the `docker-compose.yml` file output - quoted empty env values as these need to be passed in as blank, and not ommitted - include the MDNS publisher service IF the domain being used is a .local one - corrected spelling of macOS in script messages - move sidecar container source into ./src as per convention Change-type: patch Signed-off-by: Rich Bayliss <rich@balena.io>
36 lines
696 B
Bash
36 lines
696 B
Bash
#!/bin/bash -e
|
|
|
|
echo_error() {
|
|
local RED=`tput setaf 1`
|
|
local RESET=`tput sgr0`
|
|
echo "${RED}ERROR: ${1}${RESET}"
|
|
}
|
|
|
|
REALPATH=
|
|
REALPATHS=(
|
|
'realpath'
|
|
'grealpath'
|
|
'greadlink -f'
|
|
)
|
|
for cmd in "${REALPATHS[@]}"; do
|
|
if command -v "${cmd%% *}" &>/dev/null; then
|
|
REALPATH="${cmd}"
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [ -z "${REALPATH}" ]; then
|
|
echo_error 'Unable to find suitable command for realpath.'
|
|
if [ $(uname) == 'Darwin' ]; then
|
|
echo 'GNU coreutils are required to build openBalena on macOS. To install with brew, run'
|
|
echo ''
|
|
echo ' brew install coreutils'
|
|
echo ''
|
|
fi
|
|
exit 1
|
|
fi
|
|
|
|
realpath() {
|
|
echo $(command ${REALPATH} "$@")
|
|
}
|