aboutsummaryrefslogtreecommitdiff
path: root/docker-install.sh
diff options
context:
space:
mode:
authorCharlie Blake2018-10-13 15:13:48 +0100
committerGitHub2018-10-13 15:13:48 +0100
commitfdd43bb1452843074df9eecd105fa6631a9c9e52 (patch)
tree727213e1e1f3c352646fb2a678a7c04ea42f6eaa /docker-install.sh
parentMerge pull request #95 from thecharlesblake/docker (diff)
parentFix broken docker setup (diff)
downloadmetasol-fdd43bb1452843074df9eecd105fa6631a9c9e52.tar.gz
metasol-fdd43bb1452843074df9eecd105fa6631a9c9e52.zip

Merge pull request #96 from thecharlesblake/docker

Fix broken docker setup

Diffstat (limited to 'docker-install.sh')
-rwxr-xr-xdocker-install.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/docker-install.sh b/docker-install.sh
index 18d6ab5..9438c5d 100755
--- a/docker-install.sh
+++ b/docker-install.sh
@@ -1,12 +1,15 @@
#!/bin/bash
+docker login
+
# Downloads the image
-docker pull thecharlesblake/solvitiare:1.0
+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}:/.install --rm solvitaire:1.0 \
- bash -c "cp -r ../.install/* ."
+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