Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

start.sh 879 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  1. #! /bin/sh
  2. # Old config
  3. # -------------------
  4. # PORT=$1
  5. # TAG=ds4se
  6. # if [ $# -eq 2 ]; then
  7. # if [ "$2" = "--build" ]; then
  8. # # Build the docker container
  9. # docker build -t $TAG .
  10. # fi
  11. # fi
  12. # Run the docker container. Add additional -v if
  13. # you need to mount more volumes into the container
  14. # Also, make sure to edit the ports to fix your needs.
  15. #docker run -d --gpus all -v $(pwd):/tf/main \
  16. # -v /mnt/data/ds4se:/tf/data \
  17. # -p 8004:8888 $TAG
  18. # docker run --gpus all -d -v /mnt/data/ds4se:/tf/data -v $(pwd):/tf/main -p $PORT:8888 --name $TAG-$(whoami) $TAG
  19. # -------------------
  20. DATA=$1
  21. PORT=$2
  22. TAG=ds4se
  23. docker run --gpus all -d -p $PORT:8888 --user root \
  24. -e NB_GROUP=grad -e NB_UID=$(id -u) -e NB_GID=$(id -g) \
  25. -e JUPYTER_ENABLE_LAB=yes -v "$PWD":/home/jovyan/work \
  26. -v "$DATA":/home/jovyan/data --name $(whoami)-$TAG \
  27. semerulab/datascience:dev-cuda110
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...