|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: Create a Custom Application |
| 4 | +tagline: Set up your environment |
| 5 | +--- |
| 6 | + |
| 7 | + |
| 8 | +To create and ultimately deploy Agave apps for you and others to use, GitLab and |
| 9 | +Docker Hub credentials are required. The GitLab credentials will facilitate |
| 10 | +interactions with other SD2E GitLab assets, and provide a convenient way to |
| 11 | +store your app bundle. The Docker Hub credentials are required to store an image |
| 12 | +of your executable somewhere that is accessible from multiple platforms. The |
| 13 | +SD2E CLI offers a few tools to help authenticate with and manage credentials for |
| 14 | +these resources. |
| 15 | + |
| 16 | + |
| 17 | +<br> |
| 18 | +#### Agave authentication |
| 19 | + |
| 20 | +If you have been following along with previous sections of this user guide, you |
| 21 | +are likely already set up to interact with the SD2E Agave tenant. Use the |
| 22 | +`auth-check` command to confirm: |
| 23 | +``` |
| 24 | +% auth-check |
| 25 | +tenant: sd2e |
| 26 | +username: username |
| 27 | +time left: 13179 seconds |
| 28 | +expires at: Wed Apr 25 19:38:44 CDT 2018 |
| 29 | +``` |
| 30 | + |
| 31 | +If you are not already authenticated with the SD2E tenant, please refer to |
| 32 | +[this previous section](01.creaet_client.md) of the user guide. |
| 33 | + |
| 34 | + |
| 35 | +<br> |
| 36 | +#### Configure the development SD2E CLI |
| 37 | + |
| 38 | +At this time, the commands to facilitate app building are not part of the master |
| 39 | +branch of the SD2E CLI. To download the appropriate development branch and put |
| 40 | +the new commands in your `PATH`, perform the following: |
| 41 | +``` |
| 42 | +% wget https://github.com/SD2E/sd2e-cli/raw/ci/sd2e-cloud-cli.tgz |
| 43 | +% tar -xvzf sd2e-cloud-cli.tgz |
| 44 | +% export PATH=$PWD/sd2e-cloud-cli/bin:$PATH |
| 45 | +``` |
| 46 | + |
| 47 | +Check the version of the CLI that is in your `PATH` with the following: |
| 48 | +``` |
| 49 | +% sd2e info |
| 50 | +
|
| 51 | +DARPA SD2E version: 1.1.0 |
| 52 | +TACC Cloud API tenant: sd2e.org |
| 53 | +TACC Cloud API versions: |
| 54 | + Science APIs: 2.2.5 |
| 55 | + Reactors API: dev |
| 56 | + TACC Accounting API: v1 |
| 57 | +``` |
| 58 | + |
| 59 | + |
| 60 | +<br> |
| 61 | +#### Authenticate with the SD2E GitLab |
| 62 | + |
| 63 | +In this developmental SD2E CLI, a new `tacclab` command is present to manage |
| 64 | +authentication with the SD2E GitLab. To login, perform the following: |
| 65 | +``` |
| 66 | +% tacclab login |
| 67 | +Gitlab username []: username |
| 68 | +Gitlab password: |
| 69 | +Log into TACC.cloud Gitlab: |
| 70 | +[NOTE] Gitlab token for sd2e:username stored |
| 71 | +6fa807b8a99c5e45142a83de48239814217b4f9d30379db39edd6dd3d6d0 |
| 72 | +``` |
| 73 | + |
| 74 | +Enter the credentials you use to login to the [SD2E GitLab](https://gitlab.sd2e.org/), |
| 75 | +which are likely your TACC credentials. The command above will store a token |
| 76 | +in `~/.agave/gitlab`. Confirm the operation worked by listing the available |
| 77 | +projects: |
| 78 | +``` |
| 79 | +% tacclab projects list |
| 80 | +Projects |
| 81 | +======== |
| 82 | +sd2program/agave-ci-support |
| 83 | +sd2program/agave-cli |
| 84 | +sd2program/apply-recursive-pems-reactor |
| 85 | +sd2program/app_rnaseq_broad |
| 86 | +... etc. |
| 87 | +``` |
| 88 | + |
| 89 | +Issuing '`tacclab help`' will reveal [additional commands](06.commands_reference.html). |
| 90 | + |
| 91 | + |
| 92 | +<br> |
| 93 | +#### Authenticate with Docker Hub |
| 94 | + |
| 95 | +Similar to the above, a new `taccreg` command was designed to manage authentication |
| 96 | +with your preferred Docker Hub. Here, you can enter your personal Docker Hub |
| 97 | +credentials, and, if you have access, the name of the main SD2E Docker Hub organization: |
| 98 | +``` |
| 99 | +% taccreg login |
| 100 | +[NOTE] Log into Docker Registry: |
| 101 | +Registry username []: username |
| 102 | +Registry password []: |
| 103 | +Registry organization (optional) []: |
| 104 | +Authenticating as username... |
| 105 | +Login Succeeded |
| 106 | +``` |
| 107 | + |
| 108 | +In this example, the 'Registry organization' line was left blank. However, if |
| 109 | +you have been previously granted permissions, '`SD2E`' could be entered. The |
| 110 | +authentication token is stored in `~/.agave/registry`. |
| 111 | +[More usage options](06.commands_reference.html) can be found with '`taccreg help`'. |
| 112 | + |
| 113 | +--- |
| 114 | +Proceed to [Initiate the App Directory](03.create_app_02.md) |
| 115 | + |
| 116 | +Go back to [Create Custom Applications](03.create_app.md) |
| 117 | + |
| 118 | +Return to the [API Documentation Overview](../index.md) |
0 commit comments