Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NONMEM License Update is Required for Tests #3

Closed
billdenney opened this issue Jun 21, 2017 · 3 comments
Closed

NONMEM License Update is Required for Tests #3

billdenney opened this issue Jun 21, 2017 · 3 comments

Comments

@billdenney
Copy link
Collaborator

My preference is that if the installation isn't tested, the Docker image isn't generated. That way, my qualification tests are as simple as "If the image exists, it's qualified." For that, the NONMEM license file must be updated prior to starting the SETUP script.

Currently, the NONMEM installation indicates that the license is expired, and no tests are run.

If we add the following lines to the NONMEM Dockerfile, it would update the license file (without requiring a copy operation):

# Preamble
ARG NONMEM_LICENSE_STRING=""
# ... just before running SETUP
  && if [ -n "$NONMEM_LICENSE_STRING" ]; then echo $NONMEM_LICENSE_STRING > /opt/nm/license/nonmem.lic ; fi \
# ... run SETUP and the rest of the Dockerfile
@BretFisher
Copy link
Collaborator

Anything in an ARG of a final build image/stage is retrevable via the image layers history, so best not to put sensive info in that. See 1st comment in #4 for a path forward :)

@billdenney
Copy link
Collaborator Author

Definitely true. I was just trying to improve relative to current state more than thinking of this as a long-term fix. I'm very interested in the multi-stage builds option you suggested in #4.

@BretFisher
Copy link
Collaborator

I feel like this and #4 are same, so will close this issue and we can discuss in #4 to keep the final fix easier to understand/track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants