8000 Added 'dir' attribute for steps on workflow #847 by Ricardo-HE · Pull Request #853 · getpopper/popper · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added 'dir' attribute for steps on workflow #847 #853

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

Merged
merged 6 commits into from
Jun 11, 2020

Conversation

Ricardo-HE
Copy link
Contributor
@Ricardo-HE Ricardo-HE commented Jun 10, 2020

closes #847

Copy link
Collaborator
@ivotron ivotron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot for working on this @RicardoHE97!

sorry, I think I didn't explain well the purpose of this new dir attribute. The goal is basically to only change the working_dir option for container. So workspace_dir should still be mounted to /workspace.

Everything else looks great!

@@ -188,6 +190,21 @@ cd /path/to
popper run -f wf.yml
```

To specify a workspace directory for a step you can adding `dir` in the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is distinct to the workspace, maybe we can have this as a subsection titled Changing the working directory, and explain that this is only changing the working directory where the specified command is being executed from.

And we can also add a note that reminds the reader that if the directory is outside the workspace, then anything that gets written to it won't be persisted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! I'll change it.

@ivotron
Copy link
Collaborator
ivotron commented Jun 10, 2020

oh, also, can you please rebase master? there were some changes that were added recently that are conflicting with the changes in this PR

Copy link
Collaborator
@ivotron ivotron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @RicardoHE97, flawless code/tests 😄 I left a couple of comments on documentation-related changes. thanks a lot!

### Changing the working directory

To specify a working directory for a step you can use the `dir` attribute
in the workflow. This will only going to change where the specified
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"this changes where..." or "this is going to change where..."

in the workflow. This will only going to change where the specified
command is executed.

For example, adding `dir` to a workflow would looks like the following:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be ".. to a workflow would look like the following:" or "to a workflow results in the following:"

dir: /path/to/dir/
```

It is worth mentioning that if the directory specified is outside the workspace,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can make it more explicit: "is specified outside the /workspace folder, then..."

```

It is worth mentioning that if the directory specified is outside the workspace,
then anything that gets written to it won't persist.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"won't persist (see below for more)."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would have a link to section "Filesystem namespaces and persistence" or is this not necessary?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is referring to the next section (so it's literally below), it's OK to not put a link.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Thanks for the clarification.

@ivotron ivotron merged commit 60c7701 into getpopper:master Jun 11, 2020
@ivotron
Copy link
Collaborator
ivotron commented Jun 11, 2020

thanks a lot @RicardoHE97 , really appreciated 🙏

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

Successfully merging this pull request may close these issues.

cli: add 'dir' attribute for steps
2 participants
0