@echo "This helps testing the impact of latest migrations into an old version of Unleash, helping us answer the following questions:"
@echo " - Can we safely upgrade to the latest version from version X?"
@echo " - If we need to rollback to the previous version, can we do that?"
@echo ""
@echo "Environment variables:"
@echo " - UNLEASH_DOCKER_IMAGE: docker image used for start-unleash command"
@echo " - EXPOSED_PORT: port used for start-unleash command where Unleash will be exposed. Also specifies which port will be used for the UI tests"
@echo ""
@echo "The most common way of using this makefile is to run 'make start-unleash test' followed by manual exploration of Unleash at http://localhost:4242"
@echo ""
@echo "You can also explore the current version running 'make run-current' and exploring the new version at http://localhost:3000"
@echo ""
@echo "Example:"
@echo " - UNLEASH_DOCKER_IMAGE=unleashorg/unleash-server:5.6.0 make start-unleash test"
@echo ""
@echo "If you just want to test one version and then another one you can simply run these two commands one after the other:"
@echo " UNLEASH_DOCKER_IMAGE=unleashorg/unleash-server:4.12.6 make start-unleash"
@echo " UNLEASH_DOCKER_IMAGE=unleashorg/unleash-server:5.6.10 make start-another-unleash"
@echo "The old version will run on http://localhost:4242 and the new one on http://localhost:4243"
@echo ""
@echo "Commands available (you can manually run them one by one in this specific order):"
@echo " 1. clean: clean up before or after the test"
@echo " 2. start-unleash: Start docker with the previous version specified by UNLEASH_DOCKER_IMAGE"
@echo " 3. start-another-unleash: same as above, but runs another instance side by side"
@echo " 4. apply-migrations: Apply migrations from HEAD"
@echo " 5. prepare: Install dependencies to run the test"
@echo " 6. test: Run UI tests (you can specify EXPOSED_PORT to run the tests against a different port)"
@echo " 7. run-current: Run the current version of Unleash from this local repository"
@echo " 8. start-another-unleash: Starts another docker instance of Unleash with the image specified by UNLEASH_DOCKER_IMAGE"