-
-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to run jobs inside of the all in one image
- Loading branch information
Showing
5 changed files
with
39 additions
and
9 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 |
---|---|---|
@@ -1,23 +1,30 @@ | ||
#!/bin/bash | ||
|
||
sed -i -E "s/app\//app\/wwwroot\//" /usr/local/bin/bootstrap | ||
sed -i -E "s/echo \"Running NGINX\"//" /usr/local/bin/bootstrap | ||
sed -i -E "s/nginx//" /usr/local/bin/bootstrap | ||
if [ "$#" -ne 0 ]; then | ||
echo "Running Exceptionless Job $@" | ||
|
||
/usr/local/bin/bootstrap | ||
mkdir -p /var/log/exceptionless | ||
|
||
if [ "$#" -ne 0 ]; then | ||
exec "$@" | ||
echo "Starting Elasticsearch..." | ||
/usr/local/bin/docker-entrypoint.sh eswrapper > /var/log/exceptionless/elasticsearch.log 2>&1 & | ||
sleep 5 | ||
eval "dotnet Exceptionless.Job.dll $@" | ||
else | ||
echo "Running Exceptionless Web" | ||
|
||
mkdir -p /var/log/supervisor | ||
mkdir -p Temp/ | ||
|
||
sed -i -E "s/app\//app\/wwwroot\//" /usr/local/bin/bootstrap | ||
sed -i -E "s/app\/app\./app\/wwwroot\/app\./" /usr/local/bin/bootstrap | ||
sed -i -E "s/app\/index\./app\/wwwroot\/index\./" /usr/local/bin/bootstrap | ||
sed -i -E "s/echo \"Running NGINX\"//" /usr/local/bin/bootstrap | ||
sed -i -E "s/nginx//" /usr/local/bin/bootstrap | ||
/usr/local/bin/bootstrap | ||
|
||
supervisord -c /etc/supervisord.conf | ||
sleep 3 | ||
|
||
while [ ! -f /var/log/supervisor/elasticsearch.log ]; do sleep 1; done | ||
while [ ! -f /var/log/supervisor/exceptionless.log ]; do sleep 1; done | ||
|
||
tail -f /var/log/supervisor/*.log | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: '3.5' | ||
|
||
# Runs the all in one Exceptionless docker image and a Kibana instance pointing to the Elasticsearch running inside of it | ||
|
||
services: | ||
elasticsearch: | ||
image: exceptionless | ||
ports: | ||
- 5000:80 | ||
- 9200:9200 | ||
- 9300:9300 | ||
|
||
kibana: | ||
depends_on: | ||
- elasticsearch | ||
image: docker.elastic.co/kibana/kibana:7.12.0 | ||
ports: | ||
- 5601:5601 | ||
|
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