-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48c1e9c
commit 681116a
Showing
4 changed files
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@echo off | ||
echo "Building Python image..." | ||
docker build -t ez-dash/python .\python | ||
echo "Building MetricBeat image..." | ||
docker build -t ez-dash/metricbeat .\metricbeat | ||
echo "Done!" |
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,11 @@ | ||
@echo off | ||
docker version | ||
IF %ERRORLEVEL% EQU 0 ( | ||
echo "Docker is installed!" | ||
) ELSE ( | ||
echo "Please install Docker before running!" | ||
EXIT 1 | ||
) | ||
echo "Initializing Docker Swarm..." | ||
docker swarm init | ||
echo "Done!" |
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,5 @@ | ||
@echo off | ||
CALL .\build_images.bat | ||
echo "Deploying Docker stack ez-dash!" | ||
docker stack deploy -c docker-compose.yml ez-dash | ||
echo "Done!" |
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,4 @@ | ||
@echo off | ||
echo "Removing Docker stack ez-dash!" | ||
docker stack rm ez-dash | ||
echo "Done!" |