-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuous Development with Docker Compose Watch (#1115)
* Adds Docker Compose Watch feature * Updates components to be restarted with source code changes * Adds comment to explain startup script switch
- Loading branch information
1 parent
a6f1b31
commit c2a212f
Showing
5 changed files
with
53 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# | ||
# This script is run when Fleetspeak runs the GRR client. | ||
# It first checks whether we run Docker Compose Watch (i.e. in dev mode). | ||
# If so we run the grr_fleetspeak_client python script so Docker Compose can | ||
# swap in the source code updates on a continuous basis. | ||
# If not we run grrd as we would do so in production. | ||
if [ -f /usr/share/grr-server/bin/grr_fleetspeak_client ]; then | ||
/usr/share/grr-server/bin/python /usr/share/grr-server/bin/grr_fleetspeak_client "$@" | ||
else | ||
/usr/sbin/grrd "$@" | ||
fi |
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