Skip to content

Commit

Permalink
Merge pull request #722 from ICRAR/issue-273
Browse files Browse the repository at this point in the history
Check and use alternate docker compose option
  • Loading branch information
james-strauss-uwa authored Jul 10, 2024
2 parents 070e82b + 44615f4 commit 7d19331
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build_eagle.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
COMPOSE="docker-compose"

# Check if the user has a different docker compose setup
if ! command -v $COMPOSE
then
COMPOSE="docker compose"
fi


case "$1" in
"dep")
export VCS_TAG=`git describe --tags --abbrev=0|sed s/v//`
echo "Building EAGLE version ${VCS_TAG}"
python updateVersion.py
docker-compose -f ./docker/docker-compose.dep.yml build
$COMPOSE -f ./docker/docker-compose.dep.yml build
echo "Build finished!"
exit 1 ;;
"dev")
export VCS_TAG=`git rev-parse --abbrev-ref HEAD`
echo "Building EAGLE development version"
python updateVersion.py
docker-compose -f ./docker/docker-compose.dev.yml build
$COMPOSE -f ./docker/docker-compose.dev.yml build
echo "Build finished!"
exit 1;;
"slim")
export VCS_TAG=`git describe --tags --abbrev=0|sed s/v//`
echo "Building EAGLE slim version ${VCS_TAG}"
python updateVersion.py
docker-compose -f ./docker/docker-compose.dep.yml build
$COMPOSE -f ./docker/docker-compose.dep.yml build
echo "Build finished! Slimming the image now"
echo "This requires to interact with the intermediate server."
echo "Please open the EAGLE settings and put the gitHub and gitLab API keys in"
Expand Down

0 comments on commit 7d19331

Please sign in to comment.