diff options
Diffstat (limited to 'solvitaire/docker-install.sh')
| -rwxr-xr-x | solvitaire/docker-install.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/solvitaire/docker-install.sh b/solvitaire/docker-install.sh new file mode 100755 index 0000000..9438c5d --- /dev/null +++ b/solvitaire/docker-install.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +docker login + +# Downloads the image +docker pull thecharlesblake/solvitaire:1.0 + +# If the cmake-build-[debug/release] folders don't exist, copies pre-generated +# versions from the docker image into the current directory (so new users +# don't have to wait for a long build to complete!) +if [ ! -d "cmake-build-release" ] && [ ! -d "cmake-build-debug" ]; then + docker run -i -v ${PWD}:/home/Solvitaire --rm \ + thecharlesblake/solvitaire:1.0 bash -c \ + "cp -r ../.install/cmake-build-* ." +fi |
