aboutsummaryrefslogtreecommitdiff
path: root/docker-install.sh
diff options
context:
space:
mode:
authorCharlie Blake2018-10-13 11:30:59 +0100
committerGitHub2018-10-13 11:30:59 +0100
commit4d753cae81470f9db4d4827655a487778b4e854c (patch)
treeb6bb5b1be498db262817112a0da5dd9d54c3a2f3 /docker-install.sh
parentMerge pull request #94 from thecharlesblake/canfield-fix (diff)
parentAdd docker to project (diff)
downloadmetasol-4d753cae81470f9db4d4827655a487778b4e854c.tar.gz
metasol-4d753cae81470f9db4d4827655a487778b4e854c.zip

Merge pull request #95 from thecharlesblake/docker

Add docker to project

Diffstat (limited to 'docker-install.sh')
-rwxr-xr-xdocker-install.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker-install.sh b/docker-install.sh
new file mode 100755
index 0000000..18d6ab5
--- /dev/null
+++ b/docker-install.sh
@@ -0,0 +1,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