From 4c32c1fa696f9b1ad8e547871da4959175521f88 Mon Sep 17 00:00:00 2001 From: thistleman Date: Fri, 26 Aug 2022 09:44:33 -0700 Subject: [PATCH] removed cleaning up post rebase --- .../install-linux-amzn2.sh | 64 ------------------ .../install-linux-debian9.sh | 65 ------------------- 2 files changed, 129 deletions(-) delete mode 100644 cloud/websites/install.gridlabd.us/install-linux-amzn2.sh delete mode 100644 cloud/websites/install.gridlabd.us/install-linux-debian9.sh diff --git a/cloud/websites/install.gridlabd.us/install-linux-amzn2.sh b/cloud/websites/install.gridlabd.us/install-linux-amzn2.sh deleted file mode 100644 index c504cfa428..0000000000 --- a/cloud/websites/install.gridlabd.us/install-linux-amzn2.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -# -# Install setup for Amazon EC2 instance -# - -# Install needed system tools -echo "Updating system packages..." -yum -q -y install deltarpm -yum -q -y update -yum -q -y groupinstall "Development Tools" -yum -q -y install cmake ncurses-devel libcurl-devel openssl-devel bzip2-devel libffi-devel zlib-devel xz-devel gdbm-devel sqlite-devel tk-devel uuid readline-devel - -# Install the proper version of python3 -echo "Updating python3..." -[ -x /usr/bin/python3 ] && yum -q -y erase python3 -PREFIX=/usr/local/opt/python3 -mkdir -p ${PREFIX%/*} -if [ ! -d $PREFIX ]; then - cd ${PREFIX%/*} - curl -sL http://install.gridlabd.us/python39-amzn2.tarz | tar xz -fi -if [ ! -d $PREFIX ]; then - cd /usr/local/src - curl -sL https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz | tar xz - cd Python-3.9.6 - ./configure --silent --prefix=$PREFIX --enable-optimizations --with-computed-gotos --enable-loadable-sqlite-extensions CFLAGS="-fPIC" - export MAKEFLAGS=-j$(($(nproc)*3)) - export PYTHONSETUPFLAGS="-j $(($(nproc)*3))" - make --silent - make altinstall --silent -fi -echo "Linking python3..." -ln -sf $PREFIX/bin/python3.9 /usr/local/bin/python3 -ln -sf $PREFIX/bin/python3.9 /usr/local/bin/python3.9 -ln -sf $PREFIX/bin/python3.9-config /usr/local/bin/python3-config -ln -sf $PREFIX/bin/pydoc3.9 /usr/local/bin/pydoc -ln -sf $PREFIX/bin/idle3.9 /usr/local/bin/idle -ln -sf $PREFIX/bin/pip3.9 /usr/local/bin/pip3 -ln -sf $PREFIX/include/python3.9 /usr/local/include/python3.9 -ln -sf $PREFIX/lib/python3.9 /usr/local/lib/python3.9 -# if [ ! -f $PREFIX/bin/pip3.9 ]; then -# curl -sSL https://bootstrap.pypa.io/get-pip.py | /usr/local/bin/python3 -# fi -$PREFIX/bin/python3.9 -m pip -q install --upgrade pip - -# Install the required python3 packages -echo "Updating python3 requirements..." -curl -sL http://install.gridlabd.us/requirements.txt | /usr/local/bin/pip3 -q install -r /dev/stdin - -echo ' -************************************************** -Welcome to the HiPAS GridLAB-D host. - -Use 'gridlabd --help' for help on using GridLAB-D - -Online documentation is available at - - https://docs.gridlabd.us/ - -************************************************** -' > /etc/motd -[ -z "$(echo $PATH | grep /usr/local/bin)" ] && ( echo 'export PATH=/usr/local/bin:$PATH' >> /etc/bashrc) - -echo "System ready for gridlabd install" diff --git a/cloud/websites/install.gridlabd.us/install-linux-debian9.sh b/cloud/websites/install.gridlabd.us/install-linux-debian9.sh deleted file mode 100644 index 1c40da101f..0000000000 --- a/cloud/websites/install.gridlabd.us/install-linux-debian9.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# -# Install setup for Debian 9 instance (including wls hosts) -# - -# Install needed system tools -echo "Updating system packages..." -apt -q -y update -apt -q -y install tzdata -apt -q -y install software-properties-common -apt -q -y install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libssl-dev libreadline-dev libffi-dev -apt -q -y install libz-dev libbz2-dev liblzma-dev tk-dev uuid-dev libsqlite3-dev -apt -q -y install libcurl4-gnutls.dev libcurl4-gnutls-dev libcurl4-openssl-dev -apt -q -y install autoconf automake libtool - -# Install the proper version of python3 -echo "Updating python3..." -apt -q -y remove python3 -PREFIX=/usr/local/opt/python3 -mkdir -p ${PREFIX%/*} -if [ ! -d $PREFIX ]; then - cd ${PREFIX%/*} - curl -sL http://install.gridlabd.us/python39-amzn2.tarz | tar xz -fi -if [ ! -d $PREFIX ]; then - cd /usr/local/src - curl -sL https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz | tar xz - cd Python-3.9.6 - ./configure --silent --prefix=$PREFIX --enable-optimizations --with-computed-gotos --enable-loadable-sqlite-extensions CFLAGS="-fPIC" - export MAKEFLAGS=-j$(($(nproc)*3)) - export PYTHONSETUPFLAGS="-j $(($(nproc)*3))" - make --silent - make altinstall --silent -fi -echo "Linking python3..." -ln -sf $PREFIX/bin/python3.9 /usr/local/bin/python3 -ln -sf $PREFIX/bin/python3.9 /usr/local/bin/python3.9 -ln -sf $PREFIX/bin/python3.9-config /usr/local/bin/python3-config -ln -sf $PREFIX/bin/pydoc3.9 /usr/local/bin/pydoc -ln -sf $PREFIX/bin/idle3.9 /usr/local/bin/idle -ln -sf $PREFIX/bin/pip3.9 /usr/local/bin/pip3 -ln -sf $PREFIX/include/python3.9 /usr/local/include/python3.9 -ln -sf $PREFIX/lib/python3.9 /usr/local/lib/python3.9 -# if [ ! -f $PREFIX/bin/pip3.9 ]; then -# curl -sSL https://bootstrap.pypa.io/get-pip.py | /usr/local/bin/python3 -# fi -$PREFIX/bin/python3.9 -m pip -q install --upgrade pip - -# Install the required python3 packages -echo "Updating python3 requirements..." -curl -sL http://install.gridlabd.us/requirements.txt | /usr/local/bin/pip3 -q install -r /dev/stdin - -echo ' -************************************************** -Welcome to the HiPAS GridLAB-D host. - -Use 'gridlabd --help' for help on using GridLAB-D - -Online documentation is available at - - https://docs.gridlabd.us/ - -************************************************** -' > /etc/motd -echo 'export PATH=/usr/local/bin:$PATH' >> /etc/bashrc