Skip to content

Commit

Permalink
Merge pull request #41 from PowerLoom/fix/collector_profiles
Browse files Browse the repository at this point in the history
Spawn local collector by default without args
  • Loading branch information
anomit authored Aug 27, 2024
2 parents 730c02e + e0b7945 commit 614f4da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,21 +130,21 @@ echo "Building image with tag ${IMAGE_TAG}";
# Get the first command line argument
# Check if the first command line argument exists, and if not, assign it a default value
if [ -z "$1" ]; then
ARG1="no_collector"
else
ARG1="yes_collector"
else
ARG1="no_collector"
fi

if [ "$ARG1" = "no_collector" ]; then
COLLECTOR_PROFILE_STRING=""
else
if [ "$ARG1" = "yes_collector" ]; then
COLLECTOR_PROFILE_STRING="--profile local-collector"
else
COLLECTOR_PROFILE_STRING=""
fi

if ! [ -x "$(command -v docker-compose)" ]; then
echo 'docker compose not found, trying to see if compose exists within docker';
# assign docker compose file according to $ARG1

docker compose -f docker-compose.yaml pull
if [ -n "$IPFS_URL" ]; then
docker compose -f docker-compose.yaml --profile ipfs $COLLECTOR_PROFILE_STRING up -V --abort-on-container-exit
Expand Down

0 comments on commit 614f4da

Please sign in to comment.