blob: 9438c5dc49a79010442fc061575a1bb67950fd30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|