- Tapipy
- (Optional) pyenv
- (Optional) pyenv-virtualenv
- DesignSafe Portal Apps User Content, content for DesignSafe applications overview pages.
- Create a
client_secrets.pyfile with aCLIENT_USERNAMEandCLIENT_PASSWORD(see client_secrets.example.py) - Adjust the tenants, systems, and apps you wish to create in
initialize_tenant.py - Run
python initialize_tenant.pyto create/update the apps and systems in the tenants listed inTENANT_BASE_URLS
- (Optional) Install Tapipy in a pyenv environemnt
a.
pyenv install 3.11b.pyenv virtualenv 3.11 tapipyc.pyenv local tapipyc.pip install tapipy - Install ipython
a.
pip install ipython - Initiate an ipython session
a.
ipython - Create a client
from tapipy.tapis import Tapis
client = Tapis(base_url='https://portals.tapis.io', username='$USER', password='******')
client.get_tokens()
- Create a keypair locally
a.
ssh-keygen -m PEM -t rsa -b 2048 -f ~/.ssh/$USER.frontera - Copy the public key to your
~/.ssh/authorized_keysfile on the frontera host
ssh $USER@frontera.tacc.utexas.edu
PUBKEY="PASTE PUBLIC KEY HERE"
echo $PUBKEY >> ~/.ssh/authorized_keys`
- Copy the public and private key to the
USER_CREDENTIAL_PRIVATE_KEYandUSER_CREDENTIAL_PUBLIC_KEYvalues inclient_secrets.py - Adjust the
systemIdandbase_urlvalues for your desired tenant/system and run thecreate_client_credential.pyscript - Test the keypair works by making a file listing on a system
a.
client.files.listFiles(systemId='frontera', path='/')