X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=blobdiff_plain;f=Makefile;h=f6573ca8ad2d84b001ad0ce8f7481e39b01ca011;hp=86fe485a6c6c274abd7be26cb4d556cc37f1734d;hb=HEAD;hpb=943803546792ae69d73514f44e2c7dc032884eb6 diff --git a/Makefile b/Makefile index 86fe485..f6573ca 100644 --- a/Makefile +++ b/Makefile @@ -34,11 +34,13 @@ 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 +upload: $(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/ + +install: upload 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 --replacefiles --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/