Skip to content

Instantly share code, notes, and snippets.

@thnk2wn
Created May 28, 2019 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thnk2wn/32e8bb9c68857a4b05183a33f43e2846 to your computer and use it in GitHub Desktop.
Save thnk2wn/32e8bb9c68857a4b05183a33f43e2846 to your computer and use it in GitHub Desktop.
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