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

adding EXPOSE command #41

Merged
merged 4 commits into from
Mar 20, 2018
Merged

adding EXPOSE command #41

merged 4 commits into from
Mar 20, 2018

Conversation

sharifelgamal
Copy link
Contributor

@sharifelgamal sharifelgamal commented Mar 20, 2018

Fixes #8

func TestUpdateExposedPorts(t *testing.T) {
cfg := &manifest.Schema2Config{
ExposedPorts: manifest.Schema2PortSet{
"8080/tcp": {},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a few test cases with udp in here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

// Add any new ones in
for _, p := range ports {
// Add the default protocol if one isn't specified
if !strings.Contains(p, "/") {
Copy link
Collaborator

@priyawadhwa priyawadhwa Mar 20, 2018

Choose a reason for hiding this comment

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

I think you may also have to make sure that a specified protocol is valid

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we throw an error when we find an invalid protocol? or just ignore it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yah, let's throw an error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@sharifelgamal sharifelgamal merged commit c168125 into GoogleContainerTools:master Mar 20, 2018
@priyawadhwa priyawadhwa mentioned this pull request Mar 20, 2018
11 tasks
@priyawadhwa priyawadhwa added the area/dockerfile-command For all bugs related to dockerfile file commands label Feb 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dockerfile-command For all bugs related to dockerfile file commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants