You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command line program will allow you to upload, download, and manage projects in the [duke-data-service](https://github.com/Duke-Translational-Bioinformatics/duke-data-service).
3
+
This command line program (`ddd`) will allow you to upload, download, and manage projects in the [DHTS Storage as a Service](https://azurestorage.duhs.duke.edu/). Previously there was a `ddsclient` command line tool that is now deprecated.
4
4
5
5
For help email <gcb-help@duke.edu>.
6
6
7
7
8
8
# Requirements
9
9
10
-
-[python](https://www.python.org/) - version 3.5+
10
+
-[python](https://www.python.org/) - version 3.7+
11
11
12
-
__NOTE:__ When installing Python on Windows be sure to check the `Add Python to PATH` checkbox. This will avoid a problem where `pip3` and/or `ddsclient` cannot be found.
12
+
__NOTE:__ When installing Python on Windows be sure to check the `Add Python to PATH` checkbox. This will avoid a problem where `pip3` and/or `dds` cannot be found.
13
13
14
14
# Installation:
15
15
@@ -25,37 +25,52 @@ The above commmand will install the latest version of DukeDSClient from [PyPI](h
25
25
If you receive a permission denied error it may be due to you not having superuser or administrative privileges on your machine. You can run `pip3` with the [`--user` scheme](https://docs.python.org/3/install/index.html#alternate-installation-the-user-scheme) or create a [virtual environment](https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments) to work around this limitation.
26
26
Please see [the tutorial on installing packages](https://packaging.python.org/tutorials/installing-packages/) for more details.
27
27
28
+
## Storage Setup
29
+
Before you can use the `ddd` command line tool you must create a File System (container) at https://azurestorage.duhs.duke.edu/.
30
+
28
31
### Config file setup.
29
32
30
-
DukeDSClient requires a config file containing your credentials used to access the duke-data-service.
31
-
Complete details are available in the [configuration documentation](https://github.com/Duke-GCB/DukeDSClient/wiki/Configuration).
33
+
DukeDSClient requires a config file at `~/.ddsclient` containing settings used to access the backing storge.
34
+
Minimally the config file must contain two fields:
35
+
-`azure_storage_account` - Azure storage account that contains your Azure container
36
+
-`azure_container_name` - Azure container where your projects(top level folders) will exist.
37
+
38
+
The simplest way to find these two values is from the **URL** field for your File System (container) at https://azurestorage.duhs.duke.edu/.
39
+
40
+
For example if the **URL** field is `https://mylab.dfs.core.windows.net/sequencing-data` the `azure_storage_account` field should be `mylab` and the `azure_container_name` should be `sequencing-data`.
32
41
33
-
##### Create credentials and config file
42
+
The config file is in YAML format so for the above example the contents should be:
43
+
```
44
+
azure_storage_account: mylab
45
+
azure_container_name: sequencing-data
46
+
```
47
+
#### Delivery Config
34
48
35
-
[Instructions for adding agent and user keys to the user config file.](https://github.com/Duke-GCB/DukeDSClient/wiki/Agent-User-Keys-(setup))
49
+
If you wish to use the **deliver** command you must add a `delivery_token` field to the config file.
50
+
Email <gcb-help@duke.edu> for help getting this token.
0 commit comments