-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from superfly/config-fly-example
Configure Fly.io example addresses with entrypoint script
- Loading branch information
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/bash | ||
|
||
export GOSSIP__ADDR="[$(getent hosts fly-local-6pn | cut -d ' ' -f1)]:8787" | ||
|
||
echo "Set GOSSIP__ADDR=$GOSSIP__ADDR" | ||
# Add gossip and bootstrap addresses to Corrosion config file before | ||
# starting agent with Dockerfile CMD | ||
sed -i 's/\[gossip\]/&\naddr = "['${FLY_PRIVATE_IP}']:8787"\ | ||
bootstrap = ["'${FLY_APP_NAME}'.internal:8787"]/' /app/config.toml | ||
|
||
exec "$@" |