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

Display process-specific working directories when available #1422

Closed
2 tasks done
Tracked by #1421
jromero opened this issue Apr 13, 2022 · 1 comment · Fixed by #1427
Closed
2 tasks done
Tracked by #1421

Display process-specific working directories when available #1422

jromero opened this issue Apr 13, 2022 · 1 comment · Fixed by #1427
Assignees
Labels
good first issue A good first issue to get started with. type/enhancement Issue that requests a new feature or improvement.
Milestone

Comments

@jromero
Copy link
Member

jromero commented Apr 13, 2022

Acceptance Criteria

When a user runs pack inspect <app-image>
Then the output should include a new column under "Processes:" called "WORK DIR" for each process type listed

Proposed Solution

  1. Inspect the app image's configuration for a label io.buildpacks.build.metadata
  2. For each process type in the contents look for working-directory property
  3. Display that working-directory property in a WORK DIR column.

NOTE: If label information is not present fallback to looking at the Config property WorkingDir:

docker inspect my-app | jq -r '.[0].Config'
{
  ...
  "WorkingDir": "/workspace",
  ...
  "Labels": {
    ...
  }
}

References

@jromero jromero mentioned this issue Apr 13, 2022
4 tasks
@jromero jromero added type/enhancement Issue that requests a new feature or improvement. good first issue A good first issue to get started with. labels Apr 20, 2022
@jromero jromero added this to the 0.26.0 milestone Apr 20, 2022
@imnitishng
Copy link
Contributor

I'd like to work on this 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A good first issue to get started with. type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants