-
Notifications
You must be signed in to change notification settings - Fork 28
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
Stack network stage 2 #304
Conversation
32d69dd
to
baaabb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small fixes, mostly in comments
}) | ||
} else if len(list) == 2 { | ||
if strings.Index(list[0],"/") < 0 { | ||
//create names volume |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/names/named
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
} else if len(list) == 2 { | ||
if strings.Index(list[0],"/") < 0 { | ||
//create names volume | ||
fmt.Println("create named volume"+list[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/volume"/volume "/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
} | ||
if len(list) == 1 { | ||
//create a anonymous volume | ||
fmt.Println("create anonymous volume") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean "implicit bind type volume?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A volume create by the container with no name and not bind to a host directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from what I see it's still bind to a host directory, it's just implicit (source is same as the target)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, no explicite bind.
508b517
to
d545b02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally
6ca352e
to
0b66049
Compare
0b66049
to
39ce68a
Compare
Works great! LGTM 👍 |
#280
Be able to create custom networks and associate stack services to them in order to establish private communication between services from separate stacks.
test:
Regression tests:
minor:
make test
) add volumes/mount in stack file #299make test
)