Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
General
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orchive3
General
Commits
caff8e8f
Commit
caff8e8f
authored
2 years ago
by
grossti74853
Browse files
Options
Downloads
Patches
Plain Diff
Add instructions for server deployment
parent
08a69ca2
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/ingest/README.md
+32
-0
32 additions, 0 deletions
scripts/ingest/README.md
with
32 additions
and
0 deletions
scripts/ingest/README.md
+
32
−
0
View file @
caff8e8f
...
...
@@ -294,3 +294,35 @@ Imports the audio embeddings which are generated by the orca-spot model.
### Usage example
`./import_audio_embeddings.py localhost:9200 ~/orchive3/general/deployment/files/audio_embedding_data`
## Server Deployment
The following commands can be used to deploy the Orchive on a server environment:
1.
Find the ip address of the docker network.
>`docker network ls`<br />
Your are looking for a network with the name deployment_default
<br
/>
`docker network inspect "id of deployment_default"`
<br
/>
Here you need the ip address of the database e.g. 172.23.0.3
<br
/>
2.
Create the indices
>`docker exec -it deployment-scripts-1 python ./scripts/ingest/create_indices.py "ip-address of database":9200`<br />
e.g. docker exec -it deployment-scripts-1 python ./scripts/ingest/create_indices.py 172.23.0.3:9200
<br
/>
3.
Import the audio tapes
>`docker exec -it deployment-scripts-1 python ./scripts/ingest/import_audio_tapes.py "ip-address of database":9200 ./tapes ./artifacts/channel_classification.json`<br />
4.
Import the lab books
>`docker exec -it deployment-scripts-1 python ./scripts/ingest/import_lab_books.py "ip-address of database":9200 ./raw/labbooks`<br />
5.
Import the knn lables (This might take a long time)
>`docker exec -it deployment-scripts-1 python ./scripts/ingest/import_knn_labels.py "ip-address of database":9200 ./artifacts/knn_all_out_unique_available_01-11-2022_13-07-28.txt`<br />
6.
Import the audio segments (This might take a long time)
>`docker exec -it deployment-scripts-1 python ./scripts/ingest/import_audio_segments_by_n-call-file.py "ip-address of database":9200 ./artifacts/knn_all_out_unique_available_01-11-2022_13-07-28.txt`<br />
7.
Import the audio embeddings (This might take a long time)
>`docker exec -it deployment-scripts-1 python ./scripts/ingest/import_audio_embeddings.py "ip-address of database":9200 ./audio_embedding_data`<br />
Make sure, that the file structure at the mounted directory (/nfs/scratch/orchive/data/files/audio_embedding_data/browser/tape_embeddings) is in the following structure: year/latent/latent_
*
.p
<br
/>
e.g. 1985/latent/latent_001B_right.p
<br
/>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment