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

Implemented Port Labeling and Driver Configurations #415

Merged
merged 27 commits into from
Nov 17, 2015
Merged

Conversation

diptanu
Copy link
Contributor

@diptanu diptanu commented Nov 14, 2015

Opening this PR so that the team can check out how this is shaping up. This is not tested, and tests haven't been fixed or added yet.

@@ -134,8 +157,7 @@ func (d *DockerDriver) createContainer(ctx *ExecContext, task *structs.Task) (do
env.SetTaskLocalDir(filepath.Join("/", allocdir.TaskLocal))

config := &docker.Config{
Env: env.List(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason this got moved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are setting the port map later, so moved it down.

@cbednarski
Copy link
Contributor

This is a huge improvement. 👍

@@ -23,6 +24,34 @@ type DockerDriver struct {
fingerprint.StaticFingerprinter
}

type DockerDriverConfig struct {
ImageName string `mapstructure:"image"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we put comments on what the fields do, here and for all the drivers

PortMap []map[string]int `mapstructure:"port_map"` // A map of host port labels and the ports exposed on the container
Privileged bool `mapstructure:"privileged"` // Flag to run the container in priviledged mode
DNS string `mapstructure:"dns_server"` // DNS Server for containers
SearchDomains string `mapstructure:"search_domains"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Missed one? :)

@dadgar
Copy link
Contributor

dadgar commented Nov 16, 2015

You also need to update the website docs for the drivers and the example json in the http api pages.

@dadgar
Copy link
Contributor

dadgar commented Nov 17, 2015

LGTM. Follow up PR with docs.

diptanu added a commit that referenced this pull request Nov 17, 2015
Implemented Port Labeling and Driver Configurations
@diptanu diptanu merged commit a17ce1e into master Nov 17, 2015
@diptanu diptanu deleted the f-port-labels branch November 17, 2015 03:37
benbuzbee pushed a commit to benbuzbee/nomad that referenced this pull request Jul 21, 2022
@github-actions
Copy link

github-actions bot commented May 3, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants