Skip to content
Snippets Groups Projects
Commit 68a9d48d authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

Added utilities to the Makefile

parent f8f283ce
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment