Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@s-urbaniak
Copy link
Contributor

This adds --user and --group app flags to override the user and/or the
group for the run subcommand.

Fixes #1920

@s-urbaniak
Copy link
Contributor Author

@steveej PTAL (your turn now) ;-)
@alban @jonboulle PTAL

@jonboulle
Copy link
Contributor

semaphail?

CHANGELOG.md Outdated

#### New features and UX changes

- Add `--user`/`--group` option to rkt run/prepare ([#xxx](https://github.com/coreos/rkt/pull/xxx)). This option allows overriding the user/group.
Copy link
Member

Choose a reason for hiding this comment

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

You know the number now #xxx :)

Copy link
Member

Choose a reason for hiding this comment

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

This option allows overriding the user/group specified in the image manifest.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@s-urbaniak s-urbaniak force-pushed the ugid-run branch 2 times, most recently from 58fde34 to 4b4cd20 Compare April 14, 2016 12:14
@jonboulle
Copy link
Contributor

LGTM on green

ctx := testutils.NewRktRunCtx()
defer ctx.Cleanup()

t.Logf("Running test: user, group")
Copy link
Member

Choose a reason for hiding this comment

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

Log not necessary

@alban
Copy link
Member

alban commented Apr 14, 2016

one nitpick & LGTM on green

@s-urbaniak s-urbaniak force-pushed the ugid-run branch 2 times, most recently from 6abbaaa to ff58a55 Compare April 14, 2016 12:25
This adds --user and --group app flags to override the user and/or the
group for the run subcommand.

Fixes rkt#1920

#### New features and UX changes

- Add `--user`/`--group` option to rkt run/prepare ([#2419](https://github.com/coreos/rkt/pull/2419)). This option allows overriding the user/group specified in the image manifest.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/option/flag

Copy link
Member

Choose a reason for hiding this comment

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

@iaguis
Copy link
Member

iaguis commented Apr 14, 2016

This is green now and the review changes are docs so we can merge it right-away if it looks good.

| `--stage1-from-dir` | `` | A stage1 image file inside the default stage1 images directory | Image to use as stage1 |
| `--store-only` | `false` | `true` or `false` | Use only available images in the store (do not discover or download from remote URLs). See [image fetching behavior](../image-fetching-behavior.md) |
| `--volume` | `` | Volume syntax (`NAME,kind=KIND,source=PATH,readOnly=BOOL`). See [Mount Volumes into a Pod](run.md#mount-volumes-into-a-pod) | Volumes to make available in the pod |
| `--user` | none | username or UID | user override for the preceding image (example: '--user=user') |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Capitalize first letters in "username" and "user". Like it is done in other table rows.

@steveej
Copy link
Contributor

steveej commented Apr 14, 2016

This is green now and the review changes are docs so we can merge it right-away if it looks good.

With a working doc-only-change-detection that would make a lot of sense :-)

@steveej
Copy link
Contributor

steveej commented Apr 14, 2016

Thanks @s-urbaniak! please follow-up with the doc changes.

cmdPrepare.Flags().Var((*appExec)(&rktApps), "exec", "override the exec command for the preceding image")
cmdPrepare.Flags().Var((*appMount)(&rktApps), "mount", "mount point binding a volume to a path within an app")
cmdPrepare.Flags().Var((*appAsc)(&rktApps), "signature", "local signature file to use in validating the preceding image")
cmdPrepare.Flags().Var((*appUser)(&rktApps), "user", "user override for the preceding image (example: '--user=user')")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could consider rather creating a function that adds these flags to the passed flagSet? That way we can avoid the repeating of descriptions and others.

@steveej steveej merged commit 1b18844 into rkt:master Apr 14, 2016
@iaguis
Copy link
Member

iaguis commented Apr 14, 2016

Thanks @s-urbaniak! please follow-up with the doc changes.

and the non-doc changes 🍭

@jonboulle
Copy link
Contributor

is there an issue for this?

On Thu, Apr 14, 2016 at 3:10 PM, Stefan Junker [email protected]
wrote:

This is green now and the review changes are docs so we can merge it
right-away if it looks good.

With a working doc-only-change-detection that would make a lot of sense :-)


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#2419 (comment)

@iaguis
Copy link
Member

iaguis commented Apr 14, 2016

is there an issue for this?

Welp, #1920 (see the OP 😃)

@jonboulle
Copy link
Contributor

GitHub didn't let my email reply to a specific comment. Bah humbug. I was talking about #2419 (comment)

@iaguis
Copy link
Member

iaguis commented Apr 14, 2016

is there an issue for this?

#2423

@jonboulle
Copy link
Contributor

<3

On Thu, Apr 14, 2016 at 4:18 PM, Iago López Galeiras <
[email protected]> wrote:

is there an issue for this?

#2423 #2423


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#2419 (comment)

@s-urbaniak s-urbaniak deleted the ugid-run branch April 20, 2016 06:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants