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

@iaguis
Copy link
Member

@iaguis iaguis commented Oct 9, 2015

Based on #770

Implement positional --mount

--mount flags preceding any apps apply globally to all apps,
--mount flags succeeding any apps apply only to the nearest preceding app.

Add --inject-volume flag

This flag allows injecting volumes into apps using source and target
paths.

Example:

rkt run app.aci --inject-volume /data:/var/lib/data

Fixes #1467
Fixes #761

@iaguis iaguis self-assigned this Oct 9, 2015
@iaguis iaguis added this to the v0.10.0 milestone Oct 9, 2015
@iaguis iaguis force-pushed the mount-inject-volumes branch 6 times, most recently from 8010974 to f1aaca5 Compare October 12, 2015 12:03
rkt/cli_apps.go Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

This error looks like a copypasta from above.

Copy link
Member Author

Choose a reason for hiding this comment

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

It happens if the second part is empty (for example, /etc:) and I thought returning the same error msg would be fine. Any suggestions? I can create an error variable to avoid repetition.

@iaguis iaguis force-pushed the mount-inject-volumes branch 2 times, most recently from bd45056 to 4c89e4c Compare October 20, 2015 15:23
@iaguis iaguis changed the title [WIP] stage1: implement PodManifest.Mounts and --inject-volumes stage1: implement PodManifest.Mounts and --inject-volumes Oct 20, 2015
@iaguis iaguis force-pushed the mount-inject-volumes branch from 4c89e4c to 267ee6d Compare October 20, 2015 15:27
Vito Caputo and others added 3 commits October 21, 2015 10:57
--mount flags preceding any apps apply globally to all apps,
--mount flags succeeding any apps apply only to the nearest preceding app.

also moves the volume list into rktApps.
Currently only checks for volume<->mount connectivity.
@iaguis iaguis force-pushed the mount-inject-volumes branch 2 times, most recently from 360109d to 19a08a5 Compare October 21, 2015 09:13
This flag allows injecting volumes into apps using source and target
paths.

Example:
    rkt run app.aci --inject-volume /data:/var/lib/data
@iaguis iaguis force-pushed the mount-inject-volumes branch from 19a08a5 to d04c8b2 Compare October 21, 2015 11:46
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto.

@iaguis iaguis force-pushed the mount-inject-volumes branch from edab3e1 to ace29cb Compare October 21, 2015 15:07
@iaguis
Copy link
Member Author

iaguis commented Oct 21, 2015

Updated.

@krnowak
Copy link
Collaborator

krnowak commented Oct 21, 2015

LFAD.

iaguis added a commit that referenced this pull request Oct 21, 2015
stage1: implement PodManifest.Mounts and --inject-volumes
@iaguis iaguis merged commit dcdfae3 into rkt:master Oct 21, 2015
jonboulle added a commit to jonboulle/rkt that referenced this pull request Oct 23, 2015
The syntax of `--inject-volume` has been somewhat contentious [1][1] and
it seems pretty clear we do not want the flag to remain as-is.
Furthermore, there's actually no immediate need for it since the same
functionality can be achieved through a combination of the `--volume`
and `--mount` flags (which landed in the same PR as `--inject-volume`).
Hence, remove it for now, guide people towards the alternative, and we
can put further thought into re-adding something similar in future
(which would essentially just be a convenience).

[1]: rkt#1656
[2]: rkt#1582
jonboulle added a commit to jonboulle/rkt that referenced this pull request Oct 23, 2015
The syntax of `--inject-volume` has been somewhat contentious [1][1] and
it seems pretty clear we do not want the flag to remain as-is.
Furthermore, there's actually no immediate need for it since the same
functionality can be achieved through a combination of the `--volume`
and `--mount` flags (which landed in the same PR as `--inject-volume`).
Hence, remove it for now, guide people towards the alternative, and we
can put further thought into re-adding something similar in future
(which would essentially just be a convenience).

[1]: rkt#1656
[2]: rkt#1582
jonboulle added a commit to jonboulle/rkt that referenced this pull request Oct 23, 2015
The syntax of `--inject-volume` has been somewhat [contentious][1] and
it seems pretty clear we do not want the flag to remain as-is.
Furthermore, there's actually no immediate need for it since the same
functionality can be achieved through a combination of the `--volume`
and `--mount` flags (which landed in the [same PR][2] as `--inject-volume`).
Hence, remove it for now, guide people towards the alternative, and we
can put further thought into re-adding something similar in future
(which would essentially just be a convenience).

[1]: rkt#1656
[2]: rkt#1582
jonboulle added a commit to jonboulle/rkt that referenced this pull request Oct 23, 2015
The syntax of `--inject-volume` has been somewhat [contentious][1] and
it seems pretty clear we do not want the flag to remain as-is.
Furthermore, there's actually no immediate need for it since the same
functionality can be achieved through a combination of the `--volume`
and `--mount` flags (which landed in the [same PR][2] as `--inject-volume`).
Hence, remove it for now, guide people towards the alternative, and we
can put further thought into re-adding something similar in future
(which would essentially just be a convenience).

[1]: rkt#1656
[2]: rkt#1582
jonboulle added a commit to jonboulle/rkt that referenced this pull request Oct 23, 2015
The syntax of `--inject-volume` has been somewhat [contentious][1] and
it seems pretty clear we do not want the flag to remain as-is.
Furthermore, there's actually no immediate need for it since the same
functionality can be achieved through a combination of the `--volume`
and `--mount` flags (which landed in the [same PR][2] as `--inject-volume`).
Hence, remove it for now, guide people towards the alternative, and we
can put further thought into re-adding something similar in future
(which would essentially just be a convenience).

[1]: rkt#1656
[2]: rkt#1582
iaguis added a commit to iaguis/rkt that referenced this pull request Oct 27, 2015
In rkt#1582 we added support for
PodManifest.Mounts but we didn't consider the kvm flavor.

This commit adds support for the kvm flavor and refactors the code a
bit.
iaguis added a commit to iaguis/rkt that referenced this pull request Oct 27, 2015
In rkt#1582 we added support for
PodManifest.Mounts but we didn't consider the kvm flavor.

This commit adds support for the kvm flavor and refactors the code a
bit.
iaguis added a commit to iaguis/rkt that referenced this pull request Oct 27, 2015
In rkt#1582 we added support for
PodManifest.Mounts but we didn't consider the kvm flavor.

This commit adds support for the kvm flavor and refactors the code a
bit.
iaguis added a commit to iaguis/rkt that referenced this pull request Oct 27, 2015
In rkt#1582 we added support for
PodManifest.Mounts but we didn't consider the kvm flavor.

This commit adds support for the kvm flavor and refactors the code a
bit.
iaguis added a commit to iaguis/rkt that referenced this pull request Oct 27, 2015
In rkt#1582 we added support for
PodManifest.Mounts but we didn't consider the kvm flavor.

This commit adds support for the kvm flavor and refactors the code a
bit.
iaguis added a commit to iaguis/rkt that referenced this pull request Oct 28, 2015
In rkt#1582 we added support for
PodManifest.Mounts but we didn't consider the kvm flavor.

This commit adds support for the kvm flavor and refactors the code a
bit.
iaguis added a commit to iaguis/rkt that referenced this pull request Oct 28, 2015
In rkt#1582 we added support for
PodManifest.Mounts but we didn't consider the kvm flavor.

This commit adds support for the kvm flavor and refactors the code a
bit.
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.

3 participants