CDLUC3 / N2T

next-gen N2T resolver
MIT License
1 stars 2 forks source link

Setup base environment for arks.org #19

Closed datadavev closed 4 months ago

datadavev commented 1 year ago

The arks.org replacement site is deployed to an ec2 instance and has some base requirements for installing and operating the arks.org software.

Python

Python should be installed as a virtual environment. The following steps can be used to this effect:

sudo yum install gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> .bashrc_local
## restart shell
pyenv install 3.11
pyenv global 3.11
python -m pip install poetry

Jekyll

Jekyll is used to build the arks.org static site content from the markdown sources. The following steps can be follwed to setup jekyll:

sudo yum install ruby-devel
gem install jekyll bundler

These base setup procedures could be setup with Ansible, however they should only be needed when setting up a new instance.