{"id":27004404,"url":"https://github.com/tacc/wma-tapis-templates","last_synced_at":"2025-04-04T06:16:40.736Z","repository":{"id":65785308,"uuid":"508424817","full_name":"TACC/WMA-Tapis-Templates","owner":"TACC","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-27T20:45:34.000Z","size":1401,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-03-27T21:36:00.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TACC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-28T19:12:16.000Z","updated_at":"2025-03-27T20:45:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"dbb8e893-b10d-424c-828c-df4096c5ce98","html_url":"https://github.com/TACC/WMA-Tapis-Templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2FWMA-Tapis-Templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2FWMA-Tapis-Templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2FWMA-Tapis-Templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2FWMA-Tapis-Templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TACC","download_url":"https://codeload.github.com/TACC/WMA-Tapis-Templates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128739,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-04T06:16:40.094Z","updated_at":"2025-04-04T06:16:40.729Z","avatar_url":"https://github.com/TACC.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WMA-Tapis-Templates\n\n## Requirements\n- [Tapipy](https://github.com/tapis-project/tapipy/tree/main/tapipy)\n- (Optional) [pyenv](https://github.com/pyenv/pyenv)\n- (Optional) [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv)\n\n## Provisioning a Tenant\n1. Create a `client_secrets.py` file with a `CLIENT_USERNAME` and `CLIENT_PASSWORD` (see client_secrets.example.py)\n2. Adjust the tenants, systems, and apps you wish to create in `initialize_tenant.py`\n3. Run `python initialize_tenant.py` to create/update the apps and systems in the tenants listed in `TENANT_BASE_URLS`\n\n## Creating a client\n1. (Optional) Install Tapipy in a pyenv environemnt\n  a. `pyenv install 3.11`\n  b. `pyenv virtualenv 3.11 tapipy`\n  c. `pyenv local tapipy`\n  c. `pip install tapipy`\n2. Install ipython\n  a. `pip install ipython`\n3. Initiate an ipython session\n  a. `ipython`\n4. Create a client\n```\nfrom tapipy.tapis import Tapis\nclient = Tapis(base_url='https://portals.tapis.io', username='$USER', password='******')\nclient.get_tokens()\n```\n\n## Creating a credential\n1. Create a keypair locally\n  a. `ssh-keygen -m PEM -t rsa -b 2048 -f ~/.ssh/$USER.frontera`\n2. Copy the public key to your `~/.ssh/authorized_keys` file on the frontera host\n```\nssh $USER@frontera.tacc.utexas.edu\nPUBKEY=\"PASTE PUBLIC KEY HERE\"\necho $PUBKEY \u003e\u003e ~/.ssh/authorized_keys`\n```\n3. Copy the public and private key to the `USER_CREDENTIAL_PRIVATE_KEY` and `USER_CREDENTIAL_PUBLIC_KEY` values in `client_secrets.py`\n4. Adjust the `systemId` and `base_url` values for your desired tenant/system and run the `create_client_credential.py` script\n5. Test the keypair works by making a file listing on a system\n  a. `client.files.listFiles(systemId='frontera', path='/')`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacc%2Fwma-tapis-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftacc%2Fwma-tapis-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacc%2Fwma-tapis-templates/lists"}