use bioblend for dataset import instead of mount

This commit is contained in:
Saskia Hiltemann
2016-02-04 11:02:11 +01:00
parent 87b5ba458f
commit 1b04ba3833
@@ -6,15 +6,12 @@ import os
# Sets ID and sets up a lot of other variables
ie_request.load_deploy_config()
# Define a volume that will be mounted into the container.
# This is a useful way to provide access to large files in the container,
# if the user knows ahead of time that they will need it.
user_file = ie_request.volume(hda.file_name, '/home/Phinch/data/'+os.path.basename(hda.file_name)+'.biom', how='ro')
# Launch the IE. This builds and runs the docker command in the background.
ie_request.launch(
volumes=[user_file]
)
ie_request.launch(env_override={
'dataset_hid': hda.hid,
'dataset_filename': hda.file_name
})
# Only once the container is launched can we template our URLs. The ie_request
# doesn't have all of the information needed until the container is running.