Skip to content

Instantly share code, notes, and snippets.

@thnk2wn thnk2wn/run-prep.ps1
Created May 28, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.