wesnoth/utils/dockerbuilds/make_steam_image
2019-11-18 19:28:15 -06:00

19 lines
661 B
Bash
Executable File

#!/bin/sh -xe
VALVEFILE=com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.Dockerfile
VALVETAR=com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.tar.gz
DOCKERBASEIMAGE=steamrt_scout_amd64
DOCKERLOCALIMAGE=wesnoth/wesnoth:steamrt-master
DOCKERLOCALFILE=./travis/Dockerfile-base-steamrt
if [ ! -f $VALVEFILE ]; then
wget http://repo.steampowered.com/steamrt-images-scout/snapshots/0.20190608.0/$VALVEFILE
fi
if [ ! -f $VALVETAR ]; then
wget http://repo.steampowered.com/steamrt-images-scout/snapshots/0.20190608.0/$VALVETAR
fi
docker build -t $DOCKERBASEIMAGE -f $VALVEFILE .
docker build -t $DOCKERLOCALIMAGE -f $DOCKERLOCALFILE .