-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Dockerfile * install pip packages with virtual env and permissions for the alerta user * Update to use new config file.json rather than .js * add port to uswigi
- Loading branch information
1 parent
304370d
commit aa8576f
Showing
8 changed files
with
35 additions
and
56 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
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,5 +1 @@ | ||
|
||
try: | ||
from alerta import app # alerta >= 5.0 | ||
except ImportError: | ||
from alerta.app import app # alerta < 5.0 | ||
from alerta import app |
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,9 +1,8 @@ | ||
#!/bin/sh | ||
|
||
if ! echo -n "${ALERTA_API_SERVER}" | grep -q '^".*"$'; then | ||
ALERTA_API_SERVER="\"${ALERTA_API_SERVER}\"" | ||
# Generate web console config, if not supplied | ||
if [ ! -f "${ALERTA_WEB_CONF_FILE}" ]; then | ||
envsubst < /usr/share/nginx/html/config.json.template > /usr/share/nginx/html/config.json | ||
fi | ||
|
||
envsubst < /usr/share/nginx/html/config.js.template > /usr/share/nginx/html/config.js | ||
|
||
exec "$@" |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{"endpoint": "${ALERTA_API_SERVER}"} |