- Tapipy
- (Optional) pyenv
- (Optional) pyenv-virtualenv
- Create a
client_secrets.py
file with aCLIENT_USERNAME
andCLIENT_PASSWORD
(see client_secrets.example.py) - Adjust the tenants, systems, and apps you wish to create in
initialize_tenant.py
- Run
python initialize_tenant.py
to create/update the apps and systems in the tenants listed inTENANT_BASE_URLS
- (Optional) Install Tapipy in a pyenv environemnt
a.
pyenv install 3.11
b.pyenv virtualenv 3.11 tapipy
c.pyenv local tapipy
c.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_keys
file on the frontera host
ssh [email protected]
PUBKEY="PASTE PUBLIC KEY HERE"
echo $PUBKEY >> ~/.ssh/authorized_keys`
- Copy the public and private key to the
USER_CREDENTIAL_PRIVATE_KEY
andUSER_CREDENTIAL_PUBLIC_KEY
values inclient_secrets.py
- Adjust the
systemId
andbase_url
values for your desired tenant/system and run thecreate_client_credential.py
script - Test the keypair works by making a file listing on a system
a.
client.files.listFiles(systemId='frontera', path='/')