From 68a9d48d6dcb6e355fa5a35b34071a12559e93b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=2E=20Thi=C3=A9ry?= <nthiery@users.sf.net> Date: Fri, 29 Jan 2016 10:24:30 +0000 Subject: [PATCH] Added utilities to the Makefile --- docker-compile-and-run/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker-compile-and-run/Makefile b/docker-compile-and-run/Makefile index f3a7f3c..cf345af 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 -- GitLab