diff --git a/README.md b/README.md index a81f07b..30dda03 100644 --- a/README.md +++ b/README.md @@ -90,19 +90,25 @@ $ bash get-game.sh To make it as easy as possible to get and start the docker images, the `get-game.ps1` powershell script is available on S3. Running the latest build of the game and web server takes three steps: -1. Download the script +1. Download the scripts ```powershell PS:\> curl -Uri https://hacko-cdn.s3-us-west-2.amazonaws.com/earthquake-heroes/get-game.ps1 -OutFile get-game.ps1 +PS:\> curl -Uri https://hacko-cdn.s3-us-west-2.amazonaws.com/earthquake-heroes/start-game.ps1 -OutFile start-game.ps1 ``` 2. Edit the script to provide values for the AWS environment variables. If you are meant to run the game, you'll have credentials. -3. Run the script +3. Run the get-game script to pull docker containers ```powershell PS:\> & .\get-game.ps1 ``` +4. Run the start-game script to run the tileserver and the game! + +```powershell +PS:\> & .\start-game.ps1 +``` **:warning: Note! These scripts require Docker, Git and the AWS CLI to be installed already.** diff --git a/get-game.ps1 b/get-game.ps1 index 4d83513..7451f53 100644 --- a/get-game.ps1 +++ b/get-game.ps1 @@ -10,6 +10,5 @@ Set-Location -Path earthquake-heroes # Authenticate with ECR Invoke-Expression -Command (aws ecr get-login --no-include-email --region us-west-2) -# Start the tile server and the game! +# Get the docker images docker-compose pull -docker-compose up diff --git a/start-game.ps1 b/start-game.ps1 new file mode 100644 index 0000000..2d58609 --- /dev/null +++ b/start-game.ps1 @@ -0,0 +1,14 @@ +# AWS credentials SECRET DO NOT SHARE +Set-Item -Path Env:AWS_ACCESS_KEY_ID -Value +Set-Item -Path Env:AWS_SECRET_ACCESS_KEY -Value +Set-Item -Path Env:AWS_REGISTRY -Value + +# Clone the project that contains the docker-compose file +git clone https://github.com/hackoregon/earthquake-heroes-offline.git earthquake-heroes +Set-Location -Path earthquake-heroes + +# Authenticate with ECR +Invoke-Expression -Command (aws ecr get-login --no-include-email --region us-west-2) + +# Start the tile server and the game! +docker-compose up