Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. Currently Panda-dev was deployed on ncrb
  2.  
  3. - cd /home/dxxxwxx/
  4.  
  5. - copy the 'panda' folder to your own directory
  6.  
  7. - dive to your dir:path/panda/panda-dev, and test with the following commands
  8.  
  9. ## Developement
  10.  
  11. - you can change the environment variables in `.env.sh`,
  12.  
  13. ```
  14. # Core external configuration for Rafiki
  15. export ADMIN_EXT_PORT=[portNumberXXX0]
  16. export WEB_ADMIN_EXT_PORT=[portNumberXXX1]
  17. # Docker images for Rafiki's custom components
  18. export RAFIKI_IMAGE_ADMIN=[yourinstancename]/rafiki_admin
  19. export RAFIKI_IMAGE_WEB_ADMIN=[yourinstancename]/rafiki_admin_web
  20. export RAFIKI_IMAGE_WORKER=[yourinstancename]/rafiki_worker
  21. export RAFIKI_IMAGE_PREDICTOR=[yourinstancename]/rafiki_predictorby
  22. ```
  23.  
  24. - and before running any individual scripts, make sure to run the shell configuration script
  25. ```
  26. source .env.sh
  27. ```
  28. - build images on each participating node (build images each time after you edit the code )
  29.  
  30. ```
  31. bash scripts/build_images.sh
  32. ```
  33.  
  34. - stop your instance
  35.  
  36. ```
  37. bash scripts/stop_images.sh
  38. ```
  39.  
  40. - purge all data (since there might be database schema changes):
  41.  
  42. ```
  43. bash scripts/clean.sh
  44. ```
  45.  
  46.  
  47. - before you can start a new rafiki instance (container) or stop one by
  48.  
  49. ```
  50. bash scripts/start.sh
  51. bash scripts/stop.sh
  52. ```
  53.  
  54. ## How to create a ssh-tunnel
  55.  
  56. - return to ncrs, then do the port forwording
  57.  
  58. ```
  59. ssh -N -f -L ncrs.d2.comp.nus.edu.sg:[portNumberXXX0]:localhost:[portNumberXXX0] yourname@ncrb
  60. ssh -N -f -L ncrs.d2.comp.nus.edu.sg:[portNumberXXX1]:localhost:[portNumberXXX1] yourname@ncrb
  61. ```
  62. - this part should be align with .env.sh file
  63.  
  64.  
  65. - in your web browser, go to ncrs.d2.comp.nus.sg:XXX0 and ncrs.d2.comp.nus/sg:XXX1 for testing.
  66. - use this info to login:
  67.  
  68. ```
  69. superadmin@rafiki
  70. rafiki
  71. ```
  72.  
  73. ## bash into a docker
  74.  
  75. ```
  76. docker exec -it [container_name] /bin/sh
  77. ```
  78.  
  79. or
  80.  
  81. ```
  82. docker exec -it [container_name] /bin/bash
  83. ```
  84.  
  85.  
  86. There should be two containers once you bash scripts/start.sh: rafiki_admin_web & rafiki_admin
  87.  
  88. if not, use the this line to view the bug details:
  89. ```
  90. vim logs/start_admin.log
  91. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement