Skip to content

Commit

Permalink
Add Windows batch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
remingtonc committed Apr 9, 2018
1 parent 48c1e9c commit 681116a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build_images.bat
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!"
11 changes: 11 additions & 0 deletions setup.bat
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!"
5 changes: 5 additions & 0 deletions start.bat
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!"
4 changes: 4 additions & 0 deletions stop.bat
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!"

0 comments on commit 681116a

Please sign in to comment.