Small edits (#870)

This commit is contained in:
pollfly
2024-07-14 09:42:51 +03:00
committed by GitHub
parent 2a92231e82
commit b08ae93e9f
4 changed files with 41 additions and 42 deletions

View File

@@ -241,7 +241,8 @@ To replace the URL of each model, execute the following commands:
sudo docker exec -it clearml-mongo /bin/bash
```
1. Create the following script inside the Docker shell (as well as the URL protocol if you aren't using `s3`):
1. Create the following script inside the Docker shell (as well as the URL protocol if you aren't using `s3`).
Make sure to replace `<old-bucket-name>` and `<new-bucket-name>`.
```bash
cat <<EOT >> script.js
@@ -250,7 +251,6 @@ To replace the URL of each model, execute the following commands:
db.model.save(e);});
EOT
```
Make sure to replace `<old-bucket-name>` and `<new-bucket-name>`.
1. Run the script against the backend DB:
@@ -273,7 +273,7 @@ To fix this, the registered URL of each model needs to be replaced with its curr
sudo docker exec -it clearml-mongo /bin/bash
```
1. Create the following script inside the Docker shell:
1. Create the following script inside the Docker shell (Make sure to replace `<old-bucket-name>` and `<new-bucket-name>`, as well as the URL protocol prefixes if you aren't using S3):
```bash
cat <<EOT >> script.js
db.model.find({uri:{$regex:/^s3/}}).forEach(function(e,i) {
@@ -281,7 +281,6 @@ To fix this, the registered URL of each model needs to be replaced with its curr
db.model.save(e);});
EOT
```
Make sure to replace `<old-bucket-name>` and `<new-bucket-name>`, as well as the URL protocol prefixes if you aren't using S3.
1. Run the script against the backend DB:
```bash