Created
May 28, 2019 06:38
-
-
Save thnk2wn/32e8bb9c68857a4b05183a33f43e2846 to your computer and use it in GitHub Desktop.
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
param([switch]$all, [int]$top) | |
Push-Location $PSScriptRoot | |
# Eureka takes longest. start first in new window, takes a while, lots of continual Eureka output | |
"Launching Eureka startup in another process" | |
Invoke-Expression 'cmd /c start powershell -NoProfile -Command { .\eureka-start.ps1 }' | |
"" | |
# Start Spring Cloud Config server for Producer and Consumer configuration. | |
.\docker-cloud-config-start.ps1 | |
"" | |
# Start RabbitMQ container for Producer and Consumer | |
.\docker-rabbitmq-start.ps1 | |
"" | |
# Start MySQL container for API. Mount to keep any existing data and not rebuild DB. | |
.\docker-mysql-start.ps1 -mount | |
"" | |
# Start Redis for distributed caching (API) | |
.\docker-redis-start.ps1 | |
"" | |
# Setup queue and seed with message(s) for consumer processing by running producer console app. | |
.\producer-init.ps1 -all:$all -top:$top | |
"" | |
# See if Eureka has fully started up yet, if not wait. | |
.\eureka-wait.ps1 | |
"Run prep complete. Checking Docker process status`n" | |
# Show abbreviated docker process status | |
docker ps -a --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}' | |
Pop-Location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment