diff --git a/docker-compile-and-run/Makefile b/docker-compile-and-run/Makefile index f3a7f3cd9dc625440e47ca7c65116989be341434..cf345af88c39b982265433b20ec2d53a298129bf 100644 --- a/docker-compile-and-run/Makefile +++ b/docker-compile-and-run/Makefile @@ -1,9 +1,23 @@ CXXFLAGS=-g -Wall -std=c++0x +BASE_DOCKER_IMAGE=crosbymichael/build-essential docker-compile-and-run: docker-compile-and-run.cpp +preinstall:: + ssh root@wimstest "groupadd docker; service docker restart; docker pull $(BASE_DOCKER_IMAGE)" + +#scp wimstest2-developers-config wims@wimstest:log/.developers +#ssh root@wimstest service httpd restart + install: scp compile-and-run.sh wims@wimstest:other/bin + scp docker-compile-and-run-wrapper.sh wims@wimstest:public_html/bin/docker-compile-and-run + ssh wims@wimstest chmod 755 other/bin/compile-and-run.sh public_html/bin/docker-compile-and-run scp docker-compile-and-run.cpp wims@wimstest: ssh wims@wimstest "g++ $(CXXFLAGS) docker-compile-and-run.cpp -o docker-compile-and-run; mv docker-compile-and-run other/bin; rm docker-compile-and-run.cpp" ssh root@wimstest "chown wims:docker ~wims/other/bin/docker-compile-and-run; chmod 2755 ~wims/other/bin/docker-compile-and-run" + ssh root@wimstest "service docker restart; service httpd restart" + +testinstall: + scp prog.cpp wims@wimstest: + ssh wims@wimstest ./other/bin/docker-compile-and-run prog.cpp