An open API service indexing awesome lists of open source software.

https://github.com/erdc/django-uit_job_type

Tethys Platform extension adding a job type to submit jobs through the UIT Plus web service
https://github.com/erdc/django-uit_job_type

Last synced: 6 months ago
JSON representation

Tethys Platform extension adding a job type to submit jobs through the UIT Plus web service

Awesome Lists containing this project

README

          

# UIT Plus Extension for Tethys

## Installation

1. Conda install `pyuit`.

```bash
conda install -c erdc/label/dev -c conda-forge pyuit
```

1. Install the extension.

```bash
cd django-uit_plus_job
python pip install -e .
```

1. Register a new client on https://www.uitplus.hpc.mil. Set `Return URL` to `http(s):///oauth2/complete/UITPlus/`.

Note the generated client id and client secret to add to the Tethys configuration file.

1. Add the following to the `portal_config.yml` file:

```yaml
INSTALLED_APPS:
- uit_plus_job

AUTHENTICATION_BACKENDS:
- uit_plus_job.oauth2.UitPlusOAuth2

OAUTH_CONFIGS:
SOCIAL_AUTH_UITPLUS_KEY:
SOCIAL_AUTH_UITPLUS_SECRET:
```

1. Run migrations:

```bash
tethys db migrate
```

## Tests

```bash
. test.sh
```

**CONDA BUILD**

conda build -c erdc -c conda-forge conda.recipe