From 5713b283ed0ddb9f440cb410bd683f3693c8e663 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Sun, 4 Aug 2019 01:12:18 -0700 Subject: [PATCH] seems to work now --- run.sh | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/run.sh b/run.sh index ca60d73..5009836 100644 --- a/run.sh +++ b/run.sh @@ -141,7 +141,17 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash echo 'source /usr/local/nvm/nvm.sh' > /etc/bashrc.d/100.nvm.sh source /etc/bashrc.d/100.nvm.sh -nvm install stable +nvm install node +nvm use node + +################################################################################ +## install yarn +################################################################################ +curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | + apt-key add - +echo "deb https://dl.yarnpkg.com/debian/ stable main" | + tee /etc/apt/sources.list.d/yarn.list +apt update && apt install -y yarn ################################################################################ ## install rbenv + ruby @@ -152,6 +162,10 @@ export PATH="/usr/local/rbenv/bin:$PATH" eval "$(rbenv init -)" EOF source /etc/bashrc.d/100.rbenv.sh + +mkdir -p "$(rbenv root)"/plugins +git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build + rbenv install $(rbenv install -l | grep -v - | tail -1) #rbenv install 2.6.3 #rbenv install jruby-9.0.5.0 @@ -176,27 +190,19 @@ chmod +x ./ppss ## upgrade pip and install bare essentials ## update other python packages as possible ################################################################################ -pip3 install --upgrade pip +#pip3 install --upgrade pip pip3 install setuptools -pip3 install pip-review -pip-review --verbose --auto +#pip3 install pip-review +#pip-review --verbose --auto # install other python packages PIP_PKGS=" - virtualenv - pylint awscli + pipenv + pylint + virtualenv " for PKG in $PIP_PKGS; do pip3 install $PKG done - -################################################################################ -## cleanup filesystem after build -################################################################################ -rm -rf \ - /root/.cache \ - /var/cache/* \ - /var/lib/apt/lists/* \ - /core