Skip to content

Instantly share code, notes, and snippets.

@grabear
Last active October 18, 2018 22:59
Show Gist options
  • Save grabear/498b67b89ba1c0d45fe3a7fef6271f29 to your computer and use it in GitHub Desktop.
Save grabear/498b67b89ba1c0d45fe3a7fef6271f29 to your computer and use it in GitHub Desktop.
Install demo for beRi Suite of Tools
# Make directories
mkdir scripts
mkdir GitHub
mkdir demo
# Download and/or install important dependencies
if ! type "pip" > /dev/null; then
cd ~/scripts
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.6 get-pip.py --user
exec bash --login
pip install --user poetry cookiecutter
else
pip install --user poetry cookiecutter
fi
# Setup renv
cd ~/GitHub
git clone https://github.com/datasnakes/renv
cd renv
git checkout santina/symlink
poetry install -vvv
poetry build
pip install --user dist/renv*.whl
# Setup rinse
cd ~/GitHub
git clone https://github.com/datasnakes/rinse
cd rinse
poetry install -vvv
poetry build
pip install --user dist/rinse*.whl
# Setup rut
cd ~/GitHub
git clone https://github.com/datasnakes/rut
cd rut
git checkout old_remotes
poetry install -vvv
poetry build
pip install --user dist/rut*.whl
cd ~/demo

beRi demo (tested on Ubuntu-16.04)

This demo was tested on Ubuntu-16.04 which comes pre-installed with bash, Python 3.6, git, and curl. The beRi package have been built using Python 3.6. Other versions of Python have not been tested. Other operating systems have not been tested. Know bugs include renv Issue #32

WARNING: USE THIS AT YOUR OWN RISK. THIS CODE IS UNTESTED.

beRi LICENSING: beRi

renv LICENSING: renv

rut LICENSING: rut

rinse LICENSING: rinse

Bash script preview

# Make directories
mkdir scripts
mkdir GitHub
mkdir demo

# Download and/or install important dependencies
if ! type "pip" > /dev/null; then
    cd ~/scripts
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    python3.6 get-pip.py --user
    exec bash --login
    pip install --user poetry cookiecutter
else
    pip install --user poetry cookiecutter
fi

# Setup renv
cd ~/GitHub
git clone https://github.com/datasnakes/renv
cd renv
git checkout santina/symlink
poetry install -vvv
poetry build
pip install --user dist/renv*.whl

# Setup rinse
cd ~/GitHub
git clone https://github.com/datasnakes/rinse
cd rinse
poetry install -vvv
poetry build
pip install --user dist/rinse*.whl

# Setup rut
cd ~/GitHub
git clone https://github.com/datasnakes/rut
cd rut
git checkout old_remotes
poetry install -vvv
poetry build
pip install --user dist/rut*.whl

cd ~/demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment