1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-16 23:20:56 +00:00

Log RKE components to a specific location

This commit is contained in:
moelsayed
2018-03-21 19:20:58 +02:00
parent 63cee2f239
commit ef7b997e2a
14 changed files with 161 additions and 32 deletions

View File

@@ -13,9 +13,12 @@ const (
NginxProxyEnvName = "CP_HOSTS"
)
func runNginxProxy(ctx context.Context, host *hosts.Host, prsMap map[string]v3.PrivateRegistry, proxyProcess v3.Process) error {
func runNginxProxy(ctx context.Context, host *hosts.Host, prsMap map[string]v3.PrivateRegistry, proxyProcess v3.Process, alpineImage string) error {
imageCfg, hostCfg, _ := GetProcessConfig(proxyProcess)
return docker.DoRunContainer(ctx, host.DClient, imageCfg, hostCfg, NginxProxyContainerName, host.Address, WorkerRole, prsMap)
if err := docker.DoRunContainer(ctx, host.DClient, imageCfg, hostCfg, NginxProxyContainerName, host.Address, WorkerRole, prsMap); err != nil {
return err
}
return createLogLink(ctx, host, NginxProxyContainerName, WorkerRole, alpineImage, prsMap)
}
func removeNginxProxy(ctx context.Context, host *hosts.Host) error {