question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to run tools and workflows offline

See original GitHub issue

A user wanted to be able to run tools and workflows with no internet connection from the CLI.

Workaround:

  1. Download descriptor files locally
  2. Add the following to the config file: cwltool-extra-parameters: --disable-pull
  3. Follow steps here https://stackoverflow.com/a/48125632 to get a copy of the docker image loaded locally
  4. Launch the tool dockstore tool launch --local-entry <local-file-path> --json <input-json-path>

We should update the documentation to include this.

Note: The user had an issue getting the image working on a cluster. On the head node the image existed and was named with a tag, however on the compute nodes the repository and tag were missing. Will update here once a solution is found.

┆Issue is synchronized with this Jira Story ┆Fix Versions: Dockstore 1.6 ┆Issue Number: DOCK-422 ┆Sprint: Seabright Sprint 5 Electric ┆Issue Type: Story

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
agduncan94commented, Oct 4, 2018

What they wanted:

  • to run a CWL tool on the cluster. The head node is connected to the public internet, but the compute nodes are not.

Problem:

  • no internet connection means the compute node won’t be able to download descriptor files or download a docker image

Solution:

  • download the docker image on the head node (with internet access) and save it into a file (which the compute nodes have access to)
  • load the image onto the compute node
  • download the descriptor files to the compute node
  • launch using --local-entry

Situation explained by user:

was able to run the dockstore container just fine on the head node of our commodity cluster, which has internet access. Of course the point of having a cluster is to run software on compute nodes, which do not have public internet access. So when trying to execute the same command on a compute node it was complaining that it couldn’t pull down the docker image

So we saved the docker image with “docker save -o dockstore-cgpwgs_with_tags quay.io/wtsicgp/dockstore-cgpwgs:1.1.4” (executed on the head node to some cluster-globally-accessible directory), then added it to the compute node(s) with “docker load -i /path/to/image.tar” (executed on the compute node)

What we had done before, which caused the lack of entries in the repo and tag column was “docker save -o dockstore-cgpwgs.tar 8f2d9de5ab9d”, so just giving the tag id doesn’t place nicely with dockstore

After that, the command “dockstore tool launch --local-entry Dockstore.cwl --json example.json” worked just fine on our offline compute node

0reactions
wshandscommented, Mar 5, 2019

Tested on staging and works, but image tar files need to be in their own directory with no other types of files. Also works if you specify dockerImageId instead of dockerPull in the requirements section of the CWL.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workflow Management Software with Offline Access - GetApp
View the best Workflow Management software with Offline Access in 2022. Compare verified user ratings & reviews ... The Smart Way to Collect...
Read more >
Offline strategies to manage your productivity - Fast Company
Handling workflows offline prevents you from taking advantage of management tools' most ROI-inducing features: sharing and synchronizing ...
Read more >
Work with business process flows offline - Microsoft Learn
You can now use business process flows offline if the following conditions are met: The business process flow is used from a Power...
Read more >
WorkFlows - Offline Mode
This article and video tutorial (below) cover opening, operating in, and closing offline mode in WorkFlows. Offline mode enables checking out when network ......
Read more >
Workflow Editor "v2" (Open Source & Offline Workflow Editor)
The new editor is built in a way that you'll be able to run it “offline”, on your own Mac/PC, without signing in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found