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

entrypoint.sh 632 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
33
  1. #!/bin/bash
  2. ORIGINALDIR=/content/app
  3. # Use predefined DATADIR if it is defined
  4. [[ x"${DATADIR}" == "x" ]] && DATADIR=/content/data
  5. # Make persistent dir from original dir
  6. function mklink () {
  7. mkdir -p $DATADIR/$1
  8. ln -s $DATADIR/$1 $ORIGINALDIR
  9. }
  10. # Copy old files from import dir
  11. function import () {
  12. (test -d /import/$1 && cd /import/$1 && cp -Rpn . $DATADIR/$1/)
  13. }
  14. cd $ORIGINALDIR
  15. # models
  16. mklink models
  17. # Copy original files
  18. (cd $ORIGINALDIR/models.org && cp -Rpn . $ORIGINALDIR/models/)
  19. # Import old files
  20. import models
  21. # outputs
  22. mklink outputs
  23. # Import old files
  24. import outputs
  25. # Start application
  26. python launch.py $*
Tip!

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

Comments

Loading...