Before you start, make sure your credentials are set globally. You can do that by running this in the terminal on Mac or command prompt on Windows:
export SAUCE_USERNAME={your username}
export SAUCE_ACCESS_KEY={your access key}
While in the sauce_orchestrate directory, run:
pip3 install -r requirements.txt
Run command:
python3 puppySearchBenchmark.py
Docs (which will tell you how to create registries, build docker images, etc) here: https://docs.saucelabs.com/orchestrate/
- Make sure Docker is running locally by typing
docker info
in your terminal and hitting enter. You should get info back if it’s running; otherwise, go open it. - In your terminal, type and run the following command while in the main sauce_orchestrate directory:
docker build . --platform linux/amd64
-
Login to hub.docker.com (or create an account if you haven’t done so already) , go to Repositories → Create Repository
-
Name your repository
sauce_orchestrate
and leave it public -
Now rebuild your image using your account and repository name
docker build -t <your-docker-username>/sauce_orchestrate:latest . --platform linux/amd64
- Then run the following commands to login to Docker hub and push the image up to your repo:
docker login
docker push <docker-username>/sauce_orchestrate:latest
-
While in the sauce_orchestrate directory in Finder, make sure your hidden files are visible by pressing
cmd+shift+.
. Then go into the.sauce
directory and open theconfig.yml
(this is what tells saucectl to run the image). Edit it to match your info; your Docker username should be all that's needed. -
Update or install
saucectl
: https://docs.saucelabs.com/dev/cli/saucectl/#installing-saucectl -
Type & run the command
saucectl run
from the main SauceOrchestrateDemo directory that we’ve been working in & you should be good to go! -
Compare those runtimes and look at that time savings! 🎉