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
* Include SIL_NLP_DATA_PATH="/silnlp" if you are not using MinIO or B2 and will be storing files locally.
41
+
* If you do not intend to use SILNLP with ClearML, MinIO, and/or B2, you can leave out the respective variables. If you need to generate ClearML credentials, see [ClearML setup](clear_ml_setup.md).
42
+
* Note that this does not give you direct access to a MinIO or B2 bucket from within the Docker container, it only allows you to run scripts referencing files in the bucket.
43
+
26
44
### Option 1: Docker
27
45
1. If using a local GPU, install the corresponding [NVIDIA driver](https://www.nvidia.com/download/index.aspx)
28
46
@@ -49,43 +67,46 @@ These are the main requirements for the SILNLP code to run on a local machine. S
49
67
50
68
If you're using a local GPU, then in a terminal, run:
51
69
```
52
-
docker create -it --gpus all --name silnlp ghcr.io/sillsdev/silnlp:latest
* Include SIL_NLP_DATA_PATH="/silnlp" if you are not using MinIO or B2 and will be storing files locally.
75
-
* If you do not intend to use SILNLP with ClearML, MinIO, and/or B2, you can leave out the respective variables. If you need to generate ClearML credentials, see [ClearML setup](clear_ml_setup.md).
76
-
* Note that this does not give you direct access to a MinIO or B2 bucket from within the Docker container, it only allows you to run scripts referencing files in the bucket.
82
+
A docker container should be created. You should be able to see a container named 'silnlp' on the Containers page of Docker Desktop.
* After this step, the terminal should change to say `root@xxxxx:~/silnlp#`, where `xxxxx` is a string of letters and numbers, instead of your current working directory. This is the command line for the docker container, and you're able to run SILNLP scripts from here.
87
93
* To leave the container, run `exit`, and to stop it, run `docker stop silnlp`. It can be started again by repeating step 6. Stopping the container will not erase any changes made in the container environment, but removing it will.
88
94
95
+
7. (Optional) Mount the rclone bucket
96
+
97
+
While in the /root/silnlp directory (the default on startup), run the following command:
98
+
99
+
If you are using rclone to mount MinIO (This is the default option):
100
+
```
101
+
./rclone_setup.sh minio
102
+
```
103
+
If you are using rclone to mount Backblaze (Only used as a backup option):
104
+
```
105
+
./rclone_setup.sh backblaze
106
+
```
107
+
108
+
This will mount the specified bucket within the docker container.
109
+
89
110
### Option 2: Conda
90
111
1. If using a local GPU, install the corresponding [NVIDIA driver](https://www.nvidia.com/download/index.aspx)
91
112
@@ -132,24 +153,7 @@ These are the main requirements for the SILNLP code to run on a local machine. S
132
153
poetry install
133
154
```
134
155
135
-
10. If using ClearML, MinIO, and/or B2, set the following environment variables:
* Include SIL_NLP_DATA_PATH="/silnlp" if you are not using MinIO or B2 and will be storing files locally.
148
-
* If you need to generate ClearML credentials, see [ClearML setup](clear_ml_setup.md).
149
-
* Note that this does not give you direct access to a MinIO or B2 bucket from within the Docker container, it only allows you to run scripts referencing files in the bucket.
150
-
* For instructions on how to permanently set up environment variables for your operating system, see the corresponding section under the Development Environment Setup header below.
151
-
152
-
11. If using MinIO or B2, you will need to set up rclone:
156
+
10. If using MinIO or B2, you will need to set up rclone:
153
157
* Mount the bucket to your filesystem following the instructions under [Install and Configure Rclone](https://github.com/sillsdev/silnlp/blob/master/bucket_setup.md#install-and-configure-rclone).
0 commit comments