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.

Document a `verify` script pattern

See original GitHub issue

Update 2022 by Erik

My understanding is that we don’t look to implement a feature in repo2docker related to a pattern, but that we may wish to document ideas like this. An example to reference could be this from pangeo-stacks: https://github.com/jupyterhub/repo2docker/issues/93#issuecomment-502821794

Original post

I think for many people it’d be useful to run some simple tests whenever their r2d image is built. This is similar to postBuild (and the same behavior could be done w/ a few assert statements at the end of one of these files), but I wonder if it’d be worth having a file that specifically has the job of “throw a tests aren't passing error” so that the user knows their code isn’t working.

Alternatively, we could try to set guidelines for this in the documentation, basically include a section on how to ensure your container runs after it builds. Thoughts?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:20 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
jhammancommented, Feb 7, 2019

@alando46 and I have been discussing this idea a bit in https://github.com/pangeo-data/pangeo/issues/544. Something users could do today is include a test suite in their repo and test a built image like this:

docker run -i -t ${IMAGE_NAME} "py.test"

I suppose a generic verify interface would be useful as well if you wanted to add this as an option to repo2docker cli or binderhub in someway.

1reaction
jhammancommented, Jun 17, 2019

FWIW, the verify script is what we started using in pangeo-stacks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to validate with both html pattern and a script?
I have an html form and a script, validate.js, which runs after a submit button is clicked to check if given passwords are...
Read more >
Data Verification Services - Document Automation - Parascript
Our machine learning-based template-less approach to document identification and data verification can process complex support documentation ...
Read more >
Examples of javascript form validation using regular expressions
In this tutorial you will see how to use regular expressions to validate. Through a list of examples , we will build a...
Read more >
Verifying Files With Variable Parts - SmartBear Support
You can perform this task by writing special script code that will use regular expression for verification. Note:
Read more >
JavaScript: HTML Form validation - checking for all numbers
Javascript function to check if a field in a html form contains all numbers or not.
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