Skip to content

Instantly share code, notes, and snippets.

@darrentorpey
Last active August 18, 2022 22:22
Show Gist options
  • Save darrentorpey/4e67d8f296316873f599bff0c8d73576 to your computer and use it in GitHub Desktop.
Save darrentorpey/4e67d8f296316873f599bff0c8d73576 to your computer and use it in GitHub Desktop.
Upgrade ruetech dev env to MySQL 8
  1. To get started, start in the ruetech docker dev env directory (ruetech/dockerfiles/dev_environment).

  2. Connect to VPN

  3. Shut down any running dev env docker containers:

docker compose down
  1. Check out the most recent code from develop:
git checkout develop
git pull
  1. Ensure you don't have any lingering, dead containers:
docker ps -a

If you have any dead containers, remove them using docker rm <paste the container ID>. Do this until the above command shows no remaining containers.

  1. Destroy your old ruecommerce Docker volume:
docker volume rm ruecommerce

this can fail if you still have have any containers (dead or alive) that were using the volume

  1. Create your new ruecommerce:
./scripts/bootstrap/prepare_db.sh

...you'll have to wait a little while for this to finish. Times vary, but it could be as little as 10 min or less.

⚠️ If you see:

fatal error: An error occurred (InvalidClientTokenId) when calling the AssumeRole operation: The security token included in the request is invalid

you'll need to run aws-mfa -p rue-ops and complete the reauthentication process, then run the above script again.

You can follow along by tailing the logs (in another terminal) as the output of the script says to do.

  1. Validation

That's it! Just validate that your local env can still start up:

docker compose up ruelala-nginx

Go visit https://dev.ruelala.com/boutique/ and you should see boutiques appear. If not, wait a moment and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment