recast-hep / recast-atlas

CLI for ATLAS RECAST contributors
https://recast.docs.cern.ch/
Apache License 2.0
5 stars 5 forks source link

Ability to avoid pull step to use local image #95

Closed matthewfeickert closed 2 years ago

matthewfeickert commented 2 years ago

For testing workflows quickly locally one could imagine that it would be useful to not have to pull a remote Docker image but be able to use a local one (example: Trying to test how changes to a Docker image affect a workflow). At the moment, there doesn't seem to be anyway to specify this when defining an environment, e.g.

environment:
  environment_type: docker-encapsulated
  image: atlas/analysisbase
  imagetag: 21.2.174

and there doesn't seem to be a way to do this with packtivity v0.14.24's environment handlers.

@lukasheinrich Are there particular reasons that you could think of that make this a bad idea?

matthewfeickert commented 2 years ago

Never mind, I now see that this is handled by setting the environmental variable PACKTIVITY_DOCKER_NOPULL in the shell.