aboutsummaryrefslogtreecommitdiff
path: root/docker-install.sh
blob: 18d6ab53abb06b61b24c3327cc579fe736c9e407 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# Downloads the image
docker pull thecharlesblake/solvitiare: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}:/.install --rm solvitaire:1.0 \
        bash -c "cp -r ../.install/* ."
fi