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

Create an API for retrieving the path and absolute path of a image #88

Closed
rcjsuen opened this issue Feb 15, 2021 · 0 comments
Closed

Create an API for retrieving the path and absolute path of a image #88

rcjsuen opened this issue Feb 15, 2021 · 0 comments
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Feb 15, 2021

Need to add two new API functions to the Workdir class.

  • getPath() will return the path has been set in the WORKDIR instruction
  • getAbsolutePath() will try to return an absolute path based on the relative path defined in the WORKDIR instruction and any prior WORKDIR instruction, or just the absolute path if that's what was set in the WORKDIR instruction

Support for Windows containers will not be addressed at this time. getPath() may be used to construct the absolute path manually if this is desired.

@rcjsuen rcjsuen self-assigned this Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant