X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=7f36f03e54ac9d8b55766664bbd4c041c14c6a2c;hb=566c0020d9dd39285f0cd64b048082c7497fc629;hp=4f99d50c9cc857ea5c64066898ac54327faf376a;hpb=524acdbe555cdb9ddaea0f14dae04800c7ec4b5f;p=plstackapi.git diff --git a/Makefile b/Makefile index 4f99d50..7f36f03 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ 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 + PWD = $(shell pwd) dist rpm: $(NAME)-$(VERSION)-$(RELEASE).rpm @@ -32,5 +34,14 @@ 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 +ifndef UPLOAD_HOST + $(error please specify UPLOAD_HOST= on make command line) +endif + 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