Skip to content

Instantly share code, notes, and snippets.

@tristansokol
Created May 1, 2018 02:33
Show Gist options
  • Save tristansokol/59d8fa65a3e1b85324b43b9c44614805 to your computer and use it in GitHub Desktop.
Save tristansokol/59d8fa65a3e1b85324b43b9c44614805 to your computer and use it in GitHub Desktop.
export TAG_NAME=$1
export DOCKER_REGISTRY="retrocontestxxx.azurecr.io"
git add jerk_agent.py
git commit -m "running $TAG_NAME locally"
mkdir results/${TAG_NAME//:}
cp jerk_agent.py results/${TAG_NAME//:}/jerk_agent.py
docker login $DOCKER_REGISTRY \
--username "retrocontestxxx" \
--password "xxx"&&
docker build -f jerk-agent.docker -t $DOCKER_REGISTRY/$TAG_NAME . &&
retro-contest run --agent $DOCKER_REGISTRY/$TAG_NAME \
--results-dir results/${TAG_NAME//:} --no-nv --use-host-data --timestep-limit 1000000\
SonicTheHedgehog-Genesis GreenHillZone.Act1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment