Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
Change concourse and uaa ports (1443 & 1444) to prevent conflicts with
Browse files Browse the repository at this point in the history
CF router & kubernetes api
  • Loading branch information
rkoster committed Oct 8, 2019
1 parent 2369a5f commit c33765d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
42 changes: 23 additions & 19 deletions bucc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@ import (
)

const (
dockerSocket = "/run/docker.sock"
dockerSocket = "/run/docker.sock"
concoursePort = "1443"
uaaPort = "1444"
)

type Vars struct {
DirectorName string `json:"director_name"`
Alias string `json:"alias"`
DockerHost string `json:"docker_host"`
Network string `json:"network"`
InternalCIDR string `json:"internal_cidr"`
InternalGW string `json:"internal_gw"`
InternalIP string `json:"internal_ip"`
HostIP string `json:"host_ip"`
ConcourseDomain string `json:"concourse_domain"`
DirectorName string `json:"director_name"`
Alias string `json:"alias"`
DockerHost string `json:"docker_host"`
Network string `json:"network"`
InternalCIDR string `json:"internal_cidr"`
InternalGW string `json:"internal_gw"`
InternalIP string `json:"internal_ip"`
HostIP string `json:"host_ip"`
ConcourseHostPort string `json:"concourse_host_port"`
UAAHostPort string `json:"uaa_host_port"`
}

func writeVars(path string, c *config.NodeConfig) error {
Expand All @@ -35,15 +38,16 @@ func writeVars(path string, c *config.NodeConfig) error {
}

vars := Vars{
DirectorName: "molten-core",
Alias: "mc",
DockerHost: dockerSocket,
Network: config.BOSHDockerNetworkName,
InternalCIDR: c.Subnet.CIDR(),
InternalGW: gw.String(),
InternalIP: buccIP.String(),
HostIP: "0.0.0.0",
ConcourseDomain: c.PublicIP.String(),
DirectorName: "moltencore",
Alias: "mc",
DockerHost: dockerSocket,
Network: config.BOSHDockerNetworkName,
InternalCIDR: c.Subnet.CIDR(),
InternalGW: gw.String(),
InternalIP: buccIP.String(),
HostIP: c.PublicIP.String(),
ConcourseHostPort: concoursePort,
UAAHostPort: uaaPort,
}

data, err := json.Marshal(vars)
Expand Down
3 changes: 1 addition & 2 deletions bucc/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ func (c *Client) Up() error {
"--recreate",
"--cpi",
"docker",
"--flannel",
"--unix-sock",
"--concourse-lb",
"--host-bind-concourse",
}, false)
}

Expand Down

0 comments on commit c33765d

Please sign in to comment.