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

Commit e9a52cd

Browse files
committed
updates to the getting started docs
1 parent cc922e0 commit e9a52cd

File tree

7 files changed

+93
-57
lines changed

7 files changed

+93
-57
lines changed

docs/01.01.request_access.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: page
3+
title: Request Access to the SD2E Platform
4+
tagline:
5+
---
6+
7+
#### SD2E Access
8+
Access is restricted to SD2 project members. Your username and password will be
9+
the same as your TACC username and password. To gain access, please follow the
10+
instructions on this page:
11+
12+
[Request SD2E Access](https://sd2e.org/accounts/request-access/)
13+
14+
Note: If you are already logged in to SD2E.org, you will have to first logout
15+
by [clicking here](https://sd2e.org/accounts/logout), then retry the link above.
16+
Account confirmation may take up to 1-2 business days.
17+
18+
<br>
19+
#### GitLab
20+
Depending on how you plan to interact with and use the SD2E platform, you may
21+
also need access to the [SD2E Gitlab](https://gitlab.sd2e.org/). Once your TACC
22+
account and SD2E access are confirmed, request access to Gitlab by posting in
23+
the `#cyberinfrastructure` channel of the
24+
[SD2E Team Slack](https://sd2e.slack.com/messages).
25+
26+
<br>
27+
#### Docker Hub
28+
Several components of the SD2E platform utilize Docker images. To make full use
29+
of this platform, create a personal [Docker Hub account](https://hub.docker.com/)
30+
if you do not have one already.
31+
32+
33+
34+
---
35+
Return to the [API Documentation Overview](../index.md)

docs/install_cli.md renamed to docs/01.02.install_cli.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,30 @@ title: Install and Configure the CLI
44
tagline:
55
---
66

7-
The primary method for interacting with the SD2E platform is the
8-
[Agave command line interface (CLI)](https://agaveapi.co/).
9-
The CLI is a collection of ~150 shell scripts for managing
10-
authorization, files, systems, applications, jobs, and more.
7+
The primary method for interacting with the SD2E platform is the
8+
[SD2E command line interface (CLI)](https://github.com/SD2E/sd2e-cli).
9+
The CLI is a collection of ~150 shell scripts and other resources for managing
10+
authorization, files, systems, applications, jobs, and more.
1111

12-
There are three methods to install the CLI:
12+
There are three methods to install the CLI, choose whichever fits your preferred
13+
working environment:
1314
1. Run an installer script to install in ~/sd2e-cloud-cli/bin/
1415
2. Manual install to a location of your choosing
1516
3. Pull a CLI Docker image
1617

1718
<br>
18-
#### Run an installer script to install in ~/sd2e-cloud-cli/bin/
19+
#### Requirements
20+
21+
Make sure in your environment, you have:
22+
1. [Bash](https://www.gnu.org/software/bash/)
23+
2. [cURL](https://curl.haxx.se/)
24+
3. [Git](https://git-scm.com/)
25+
4. [Docker](https://www.docker.com/get-docker)
26+
5. [jq](https://stedolan.github.io/jq/)
27+
6. [python 2.7+ or 3.x+](https://www.python.org/downloads/)
28+
29+
<br>
30+
#### Install method 1: Run an installer script to install in `~/sd2e-cloud-cli/bin/`
1931

2032
Open a terminal window and run the installer script:
2133
```
@@ -41,7 +53,7 @@ TACC Cloud API versions:
4153
```
4254

4355
<br>
44-
#### Manual install to a location of your choosing
56+
#### Install method 2: Manual install to a location of your choosing
4557

4658
Open a terminal window and navigate to your preferred location for installation:
4759

@@ -51,7 +63,8 @@ Open a terminal window and navigate to your preferred location for installation:
5163

5264
Download and unpack the CLI:
5365
```
54-
% curl -L https://raw.githubusercontent.com/sd2e/sd2e-cli/master/sd2e-cloud-cli.tgz -o sd2e-cloud-cli.tgz
66+
% curl -L https://raw.githubusercontent.com/sd2e/sd2e-cli/master/sd2e-cloud-cli.tgz \
67+
-o sd2e-cloud-cli.tgz
5568
% tar -xvzf sd2e-cloud-cli.tgz
5669
```
5770

@@ -74,7 +87,7 @@ TACC Cloud API versions:
7487
```
7588

7689
<br>
77-
#### Pull a CLI Docker image
90+
#### Install method 3: Pull a CLI Docker image *(outdated)*
7891

7992
The CLI is also available as a Docker image. For this to work, it is assumed you
8093
have a reasonably recent version of [Docker](https://www.docker.com/) installed.
@@ -99,15 +112,23 @@ TACC Cloud API versions:
99112
<br>
100113
#### Influential environment variables
101114

115+
When working with the SD2E platform, you may optionally set some of the following
116+
environment variables. In bash, it will take the form:
117+
```
118+
% export VAR_NAME=option
119+
e.g.
120+
% export AGAVE_JSON_PARSER=jq
121+
```
122+
102123
<table style="width:100%" border="1px" cellpadding="5">
103124
<tr>
104-
<th align="left">environment variable</th>
105-
<th align="left">options</th>
106-
<th align="left">description</th>
125+
<th align="left">Environment variable</th>
126+
<th align="left">Options</th>
127+
<th align="left">Description</th>
107128
</tr>
108129
<tr>
109130
<td>AGAVE_JSON_PARSER</td>
110-
<td>json_mirror, jq, json, python, native</td>
131+
<td>jq, json_mirror, json, python, native</td>
111132
<td>Set this to your favorite json parser (if installed)</td>
112133
<tr>
113134
</tr>

docs/create_client.md renamed to docs/01.03.create_client.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ title: Create the Client API Keys
44
tagline:
55
---
66

7-
The Agave CLI is used to configure your user environment to interact with the
8-
SD2E platform. If you do not yet have the CLI installed and in your `$PATH`, first
9-
go [here](install_cli.md).
7+
[The Agave API](http://developer.tacc.cloud/), (a component of the SD2E API), is
8+
used to configure your user environment to interact with the SD2E platform. If
9+
you do not yet have the CLI installed and in your `$PATH`, first go
10+
[here](01.02.install_cli.md) to install it.
1011

1112
<br>
1213
#### Initiate with the SD2E Agave tenant
1314

14-
On the command line, perform:
15+
On the command line, perform:
1516
```
1617
% tenants-init -t sd2e
1718
@@ -24,7 +25,7 @@ home directory: `~/.agave/current`
2425
<br>
2526
#### Create API keys
2627

27-
API keys are used to authenticate and store your user credentials for a specific
28+
API keys are used to authenticate and store your user credentials for a specific
2829
client application. To generate API Keys:
2930
```
3031
% clients-create -S -N sd2e_client -D "My client used for interacting with SD2E"
@@ -60,7 +61,7 @@ can delete then regenerate client API keys with the following:
6061
```
6162

6263
<br>
63-
#### The ~/.agave/current configuration file
64+
#### The `~/.agave/current` configuration file
6465

6566
In addition to the tenant ID, your API keys are stored in the Agave configuration
6667
file. To view the contents of the file:

docs/authorization.md renamed to docs/01.04.authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ for generating their own authorization tokens and, optionally, saving them in th
1111
<br>
1212
#### Generate authorization token
1313

14-
Generate a token with the following command (the `-S` flag stores the token in
14+
Generate a token with the following command (the `-S` flag stores the token in
1515
your Agave configuration file):
1616
```
1717
% auth-tokens-create -S

docs/ssh_keys.md renamed to docs/01.05.ssh_keys.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ tagline:
55
---
66

77
In certain circumstances, it is advantageous to use public / private SSH keys
8-
to authenticate with Agave. Specifically, this is important when
9-
[creating your own private systems](create_systems.md). Having SSH keys will make it
10-
easier to interact with systems that do not allow password authentication or that
11-
require frequent password changes, and it will increase security by preventing
12-
the need to store your password in a plain text file.
8+
to authenticate with the Agave API. Specifically, this is important when
9+
[creating your own private systems](02.06.create_systems.md). Having SSH keys
10+
will make it easier to interact with systems that do not allow password
11+
authentication or that require frequent password changes, and it will increase
12+
security by preventing the need to store your password in a plain text file.
1313

1414
If you are new to the Agave CLI and the SD2E Agave tenant, it is recommended to
1515
skip this section of the documents until you need to
16-
[create your own private systems](create_systems.md).
16+
[create your own private systems](02.06.create_systems.md).
1717

1818
<br>
1919
#### Prerequisites
@@ -40,7 +40,7 @@ Welcome to
4040
/ ___ \ |_| | | | | | (_) \__ \ |_) | | | | __/ | | __/
4141
/_/ \_\__|_| |_| |_|\___/|___/ .__/|_| |_|\___|_| \___|
4242
|_|
43-
[js-104-39] %
43+
[js-104-39] %
4444
```
4545

4646
<br>
@@ -76,8 +76,8 @@ Finally, add your public key to the `authorized_keys` file on your remote system
7676
[js-104-39] % cat agave_rsa.pub >> ~/.ssh/authorized_keys
7777
```
7878
Your private key (`agave_rsa`) will be used in the future when it is time to
79-
[create your own private systems](create_systems.md). Never share your private
80-
key with anyone else.
79+
[create your own private systems](02.06.create_systems.md). Never share your
80+
private key with anyone else.
8181

8282

8383
---

docs/request_access.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ the SD2E platform. Documentation for getting started with the SD2E API is below.
1313

1414
&nbsp;&nbsp;**1 Getting Started**
1515

16-
&nbsp;&nbsp;&nbsp;&nbsp;1.1 [Request Access to the SD2E Platform](docs/request_access.md)
16+
&nbsp;&nbsp;&nbsp;&nbsp;1.1 [Request Access to the SD2E Platform](docs/01.01.request_access.md)
1717

18-
&nbsp;&nbsp;&nbsp;&nbsp;1.2 [Install and Configure the SD2E CLI](docs/install_cli.md)
18+
&nbsp;&nbsp;&nbsp;&nbsp;1.2 [Install and Configure the SD2E CLI](docs/01.02.install_cli.md)
1919

20-
&nbsp;&nbsp;&nbsp;&nbsp;1.3 [Create the Client API Keys](docs/create_client.md)
20+
&nbsp;&nbsp;&nbsp;&nbsp;1.3 [Create the Client API Keys](docs/01.03.create_client.md)
2121

22-
&nbsp;&nbsp;&nbsp;&nbsp;1.4 [Authorize with the SD2E Tenant](docs/authorization.md)
22+
&nbsp;&nbsp;&nbsp;&nbsp;1.4 [Authorize with the SD2E Tenant](docs/01.04.authorization.md)
2323

24-
&nbsp;&nbsp;&nbsp;&nbsp;1.5 [SSH Key Pairs](docs/ssh_keys.md)
24+
&nbsp;&nbsp;&nbsp;&nbsp;1.5 [SSH Key Pairs](docs/01.05.ssh_keys.md)
2525

2626

2727
&nbsp;&nbsp;**2 Agave CLI Basics**
@@ -83,6 +83,7 @@ the SD2E platform. Documentation for getting started with the SD2E API is below.
8383

8484

8585
&nbsp;&nbsp;**6 Placeholder**
86+
8687
&nbsp;&nbsp;**7 Reference Pages**
8788

8889

@@ -94,4 +95,4 @@ You can get more help by visiting the main [SD2E website](http://sd2e.org), or
9495
e-mailing us at `support-at-sd2e-dot-org`.
9596

9697
Please visit the [Developer Documentation for TACC Cloud APIs](https://tacc.github.io/developer.tacc.cloud/)
97-
site for additional API support.
98+
site for additional API support.

0 commit comments

Comments
 (0)