Skip to content

nicole-daugereaux/sauce_orchestrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Sauce Sauce Orchestrate Example

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}

Running locally for benchmark times:

While in the sauce_orchestrate directory, run:

pip3 install -r requirements.txt

Run command:

python3 puppySearchBenchmark.py

If you're on a Mac like me, follow the steps below to run with Orchestrate!

Docs (which will tell you how to create registries, build docker images, etc) here: https://docs.saucelabs.com/orchestrate/

  1. 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.
  2. In your terminal, type and run the following command while in the main sauce_orchestrate directory:
docker build . --platform linux/amd64
  1. Login to hub.docker.com (or create an account if you haven’t done so already) , go to Repositories → Create Repository

  2. Name your repository sauce_orchestrate and leave it public

  3. Now rebuild your image using your account and repository name

docker build -t <your-docker-username>/sauce_orchestrate:latest . --platform linux/amd64
  1. 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
  1. 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 the config.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.

  2. Update or install saucectl: https://docs.saucelabs.com/dev/cli/saucectl/#installing-saucectl

  3. Type & run the command saucectl run from the main SauceOrchestrateDemo directory that we’ve been working in & you should be good to go!

  4. Compare those runtimes and look at that time savings! 🎉

About

My demo scripts to use with Sauce Orchestrate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published