Created
July 28, 2020 03:29
-
-
Save JJL772/4a3e91d5fb95cccafc26e740db819c03 to your computer and use it in GitHub Desktop.
steamrt docker setup script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $EUID -ne 0 ]; then | |
echo "Please run script as root" | |
exit 1 | |
fi | |
function download_runtime() | |
{ | |
URLROOT=https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-steam-client-general-availability/ | |
echo -e "\e[1mDownlading sysroot...\n\e[0m" | |
curl -o $1.tar.gz "$URLROOT/$1.tar.gz" | |
echo -e "\e[1mDownloading dockerfile...\n\e[0m" | |
curl $URLROOT/$1.Dockerfile > $1.Dockerfile | |
echo -e "\e[1mBuilding docker container...\n\e[0m" | |
docker build -f $1.Dockerfile -t steamrt_scout_$2 . | |
rm -rf $1.tar.gz | |
rm -f $1.Dockerfile | |
} | |
download_runtime com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot amd64 | |
download_runtime com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot i386 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment