|
|
|
@ -8,7 +8,7 @@ module JupyterService
|
|
|
|
|
uri = "#{shixun_tomcat}/bridge/jupyter/get"
|
|
|
|
|
tpiID = "tpm#{shixun.id}"
|
|
|
|
|
mount = shixun.data_sets.present?
|
|
|
|
|
params = {tpiID: tpiID, identifier: shixun.identifier, needMount: mount,
|
|
|
|
|
params = {tpiID: tpiID, identifier: shixun.identifier, needMount: mount, gitUrl: '',
|
|
|
|
|
:containers => "#{Base64.urlsafe_encode64(shixun_container_limit(shixun))}"}
|
|
|
|
|
|
|
|
|
|
logger.info "test_juypter: uri->#{uri}, params->#{params}"
|
|
|
|
@ -48,8 +48,14 @@ module JupyterService
|
|
|
|
|
|
|
|
|
|
tpiID = myshixun.id
|
|
|
|
|
mount = myshixun.shixun.data_sets.present?
|
|
|
|
|
params = {tpiID: tpiID, identifier: shixun.identifier, myshixunIdentifier: myshixun.identifier, needMount: mount,
|
|
|
|
|
:containers => "#{Base64.urlsafe_encode64(shixun_container_limit(shixun))}"}
|
|
|
|
|
|
|
|
|
|
gitUrl = "#{edu_setting('git_address_domain')}/#{myshixun.repo_path}"
|
|
|
|
|
params = { tpiID: tpiID,
|
|
|
|
|
identifier: shixun.identifier,
|
|
|
|
|
myshixunIdentifier: myshixun.identifier,
|
|
|
|
|
gitUrl: giturl,
|
|
|
|
|
needMount: mount,
|
|
|
|
|
:containers => "#{Base64.urlsafe_encode64(shixun_container_limit(shixun))}"}
|
|
|
|
|
res = uri_post uri, params
|
|
|
|
|
|
|
|
|
|
logger.info "test_juypter: #{res}"
|
|
|
|
|