Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

Commit 09d629c

Browse files
committed
added general content and formatting to docs
1 parent 6a9da10 commit 09d629c

File tree

5 files changed

+147
-46
lines changed

5 files changed

+147
-46
lines changed

docs/authorization.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
# Authorization with the SD2E Tenant
1+
---
2+
layout: page
3+
title: Authorization with the SD2E Tenant
4+
tagline:
5+
---
6+
7+
Authorization is handled with OAuth2 authorization tokens. You can generate
8+
a token and save it to your ~/.agave/current configuration file by executing
9+
the following command:
10+
```
11+
%auth-tokens-create -S
12+
Password: # enter TACC password
13+
```
14+
15+
The token is active for 4 hours (14400 seconds), at which point it expires. You
16+
can check the status of your token by performing:
17+
```
18+
% auth-check
19+
```
20+
21+
When your token expires, there is no need to generate a new token. It can be
22+
refreshed by using the command:
23+
```
24+
% auth-tokens-refresh
25+
```
26+
27+
<br>
28+
#### Troubleshooting
29+
30+
If you observe authorization errors with Agave, then first try generating a
31+
new token with:
32+
```
33+
% auth-tokens-create -S
34+
```
35+
36+
If errors persist, generate a new client:
37+
```
38+
% clients-create -S
39+
```
40+
41+
---
42+
Return to the [API Documentation Overview](../index.md)

docs/create_client.md

+27-17
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,45 @@
1-
### Create the API Client Key
1+
---
2+
layout: page
3+
title: Create the API Client Key
4+
tagline:
5+
---
26

37
The Agave CLI is used to configure the user environment to interact with the
4-
SD2E platform. If you do not yet have the CLI installed and in your $PATH, first
8+
SD2E platform. If you do not yet have the CLI installed and in your `$PATH`, first
59
go [here](install_cli.md).
610

711
Your user environment can be set up in one of two ways:
812
1. Automatically using the set up script
913
2. Manually using the CLI
1014

15+
<br>
16+
#### Automatically using the set up script
1117

12-
#### 1. Automatically using the set up script
18+
(coming soon)
1319

14-
(forthcoming)
15-
16-
#### 2. Manually using the CLI
17-
18-
On the command line, perform the following:
20+
<br>
21+
#### Manually using the CLI
1922

23+
On the command line, first initiate with the SD2E tenant:
2024
```
21-
# Initiate with the SD2E tenant
2225
%tenants-init -t sd2e
2326
24-
# Create a client (enter TACC username and password)
27+
```
28+
29+
Then, create a client key for interacting with that tenant using your TACC
30+
credentials:
31+
```
2532
%clients-create -S -N my_client -D "My client used for interacting with SD2E"
33+
Username: # enter TACC username
34+
Password: # enter TACC password
35+
```
2636

27-
# Create an auth token (enter TACC password)
28-
%auth-tokens-create -S
2937

30-
# Check the status of the token
31-
% auth-check
38+
#### The ~/.agave/current configuration file
3239

33-
# Refresh an expired token:
34-
% auth-tokens-refresh
35-
```
40+
All the information generated above is stored in a configuration file in your
41+
home directory. CLI commands can be used to manage different configuration files
42+
for swapping between tenant and user space.
43+
44+
---
45+
Return to the [API Documentation Overview](../index.md)

docs/install_cli.md

+51-21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
### Install and Configure the CLI
1+
---
2+
layout: page
3+
title: Install and Configure the CLI
4+
tagline:
5+
---
26

37
The primary method for interacting with the SD2E platform is the Agave command
48
line interface (CLI). The CLI is a collection of ~150 shell scripts for managing
@@ -9,18 +13,22 @@ There are three methods to install the CLI:
913
2. Manual install to a location of your choosing
1014
3. Pull a CLI Docker image
1115

12-
#### 1. Run an installer script to install in ~/sd2e-cloud-cli/bin/
13-
14-
Open a terminal window and perform the following:
16+
<br>
17+
#### Run an installer script to install in ~/sd2e-cloud-cli/bin/
1518

19+
Open a terminal window and run the installer script:
1620
```
17-
# Run the installer
1821
% curl -L https://raw.githubusercontent.com/sd2e/sd2e-cli/master/install/install.sh | sh
22+
```
1923

20-
# Source your .bashrc
24+
This will install the executables and write an `export PATH` command to your
25+
`~/.bashrc`. To make the changes take effect immediately:
26+
```
2127
% source ~/.bashrc
28+
```
2229

23-
# Verify the CLI is installed
30+
Finally, verify that the CLI has been installed by issuing the following:
31+
```
2432
% sd2e info
2533
2634
DARPA SD2E version 1.0.1
@@ -31,23 +39,29 @@ TACC Cloud API versions:
3139
TACC Accounting API: v1
3240
```
3341

34-
#### 2. Manual install to a location of your choosing
42+
<br>
43+
#### Manual install to a location of your choosing
3544

36-
Open a terminal window and perform the following:
45+
Open a terminal window and navigate to your preferred location for installation:
3746

3847
```
39-
# Navigate to a location of your choosing
4048
% mkdir sd2e-project && cd sd2e-project
49+
```
4150

42-
# Download and unpack the CLI
51+
Download and unpack the CLI:
52+
```
4353
% curl -L https://raw.githubusercontent.com/sd2e/sd2e-cli/master/sd2e-cloud-cli.tgz -o sd2e-cloud-cli.tgz
4454
% tar -xvzf sd2e-cloud-cli.tgz
55+
```
4556

46-
# Add the CLI executables to your $PATH
57+
Then add the CLI executables to your `PATH`:
58+
```
4759
% echo "PATH=\$PATH:$PWD/sd2e-cloud-cli/bin" >> ~/.bashrc
4860
% source ~/.bashrc
61+
```
4962

50-
# Verify the CLI is installed
63+
Finally, verify that the CLI has been installed by issuing the following:
64+
```
5165
% sd2e info
5266
5367
DARPA SD2E version 1.0.1
@@ -57,20 +71,36 @@ TACC Cloud API versions:
5771
Reactors API: dev
5872
```
5973

60-
#### 3. Pull a CLI Docker image
74+
<br>
75+
#### Pull a CLI Docker image
6176

77+
The CLI is also available as a Docker image. For this to work, it is assumed you
78+
have a reasonably recent version of [Docker](https://www.docker.com/) installed.
79+
Pull the latest image and verify CLI availability by performing:
6280
```
63-
# Pull the latest image
6481
% docker pull sd2e/cloud-cli:latest
6582
% docker run -it -v $HOME/.agave:/root/.agave sd2e/cloud-cli bash
6683
```
6784

68-
#### Influential environment variables
85+
Then from within Docker:
86+
```
87+
/home$ sd2e info
88+
89+
DARPA SD2E version 1.0.1
90+
TACC Cloud API tenant: sd2e
91+
TACC Cloud API versions:
92+
Science APIs: 2.2.5
93+
Reactors API: dev
94+
```
6995

70-
AGAVE_TENANT
71-
AGAVE_USERNAME
72-
AGAVE_KEY
73-
AGAVE_JSON_PARSER = json_mirror | jq | json | python | native
74-
AGAVE_DISABLE_AUTO_REFRESH
96+
<br>
97+
#### Influential environment variables
7598

99+
* AGAVE_TENANT
100+
* AGAVE_USERNAME
101+
* AGAVE_KEY
102+
* AGAVE_JSON_PARSER = {json_mirror, jq, json, python, native}
103+
* AGAVE_DISABLE_AUTO_REFRESH
76104

105+
---
106+
Return to the [API Documentation Overview](../index.md)

docs/request_access.md

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
1-
### Request Access to the SD2E Platform
1+
---
2+
layout: page
3+
title: Request Access to the SD2E Platform
4+
tagline:
5+
---
26

37
At this time, access is restricted to SD2 project members. Your username and
4-
password will be the same as your TACC username and password. To create a TACC
5-
username and password, visit this site:
8+
password will be the same as your TACC username and password.
69

7-
https://portal.tacc.utexas.edu/web/tup/account-request
10+
<br>
11+
#### Create a TACC account
12+
13+
To create a TACC username and password, visit this site:
14+
15+
<https://portal.tacc.utexas.edu/web/tup/account-request>
816

917
You must agree to the TACC Acceptible Use Policy, then fill out the Account
10-
Request form. Your account request will be reviewd and approved in 1-2 days.
18+
Request form. Your account request will be reviewed and approved in 1-2 days.
19+
20+
<br>
21+
#### Request SD2E access
1122

1223
Once you have e-mail confirmation of account creation, send an e-mail including
1324
your TACC username to:
1425

15-
26+
1627

1728
**Keep your password confidential.**
1829

1930

31+
---
32+
Return to the [API Documentation Overview](../index.md)

docs/using_api.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
# Using the SD2E API
1+
---
2+
layout: page
3+
title: Using the SD2E API
4+
tagline:
5+
---
6+
7+
---
8+
Return to the [API Documentation Overview](../index.md)

0 commit comments

Comments
 (0)