From: Scott Baker Date: Fri, 18 Apr 2014 22:24:49 +0000 (-0700) Subject: added install target X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=commitdiff_plain;h=ab66c77f19719ed3d447595725f52b5670a30a74 added install target --- diff --git a/Makefile b/Makefile index 4f99d50..802fa0b 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ SPECFILE = $(NAME).spec VERSION = $(shell rpm -q --specfile $(SPECFILE) --qf '%{VERSION}\n' | head -n 1) RELEASE = $(shell rpm -q --specfile $(SPECFILE) --qf '%{RELEASE}\n' | head -n 1) +UPLOAD_SLICE=princeton_planetstack +UPLOAD_HOST=node36.princeton.vicci.org + PWD = $(shell pwd) dist rpm: $(NAME)-$(VERSION)-$(RELEASE).rpm @@ -32,5 +35,11 @@ clean: rm -f $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)-$(RELEASE).src.rpm $(NAME)-$(VERSION)-$(RELEASE).noarch.rpm rm -rf build +install: $(NAME)-$(VERSION)-$(RELEASE).rpm + scp $(NAME)-$(VERSION)-$(RELEASE).x86_64.rpm $(UPLOAD_SLICE)@$(UPLOAD_HOST):/root/ + ssh $(UPLOAD_SLICE)@$(UPLOAD_HOST) yum -y install gcc graphviz-devel graphviz-python postgresql postgresql-server python-pip python-psycopg2 libxslt-devel python-httplib2 GeoIP + ssh $(UPLOAD_SLICE)@$(UPLOAD_HOST) rpm --install --upgrade --replacepkgs /root/$(NAME)-$(VERSION)-$(RELEASE).x86_64.rpm + scp /opt/planetstack/hpc_wizard/bigquery_credentials.dat /opt/planetstack/hpc_wizard/client_secrets.json $(UPLOAD_SLICE)@$(UPLOAD_HOST):/opt/planetstack/hpc_wizard/ + .PHONY: dist