For example, I want to do something like this: ``...
# general
p
For example, I want to do something like this:
Copy code
def myorg_docker_image(**kwargs):
   # If someone specifies a source and does not embed instructions into BUILD file, fail fast
   if kwargs['source'] or not kwargs['instructions']:
       raise ValueError("Cannot use Dockerfiles")
    if not are_dependencies_encoded_in_instructions(kwargs['instructions']):
        raise ValueError("Must encode dependencies of docker image into instructions kwarg")
    docker_image(**kwargs)