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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user