Skip to content

Commit 67084a0

Browse files
authored
Fixing PATH in various host-process containers (#210)
Signed-off-by: Mark Rossetti <[email protected]>
1 parent 5cc90c6 commit 67084a0

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

hostprocess/calico/install/Dockerfile.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN unzip cni.zip
1212

1313
FROM $BASE
1414

15-
ENV PATH="C:\Program Files\PowerShell;C:\utils;C:\Windows\system32;C:\Windows;"
15+
ENV PATH="C:\Windows\system32;C:\Windows;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"
1616

1717
COPY --from=bins /cni/CalicoWindows/cni/calico.exe /calico/cni/calico.exe
1818
COPY --from=bins /cni/CalicoWindows/cni/calico-ipam.exe /calico/cni/calico-ipam.exe

hostprocess/calico/kube-proxy/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ RUN curl -LO https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/w
1212

1313
FROM $BASE
1414

15-
ENV PATH="C:\Program Files\PowerShell;C:\utils;C:\Windows\system32;C:\Windows;"
15+
ENV PATH="C:\Windows\system32;C:\Windows;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"
1616

17-
Add start.ps1 /kube-proxy/start.ps1
17+
ADD start.ps1 /kube-proxy/start.ps1
1818
COPY --from=bins /kube-proxy/kube-proxy.exe /kube-proxy/kube-proxy.exe
1919
COPY --from=bins /kube-proxy/hns.psm1 /kube-proxy/hns.psm1
2020

hostprocess/calico/node/Dockerfile.node

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN unzip cni.zip
1212

1313
FROM $BASE
1414

15-
ENV PATH="C:\Program Files\PowerShell;C:\utils;C:\Windows\system32;C:\Windows;"
15+
ENV PATH="C:\Windows\system32;C:\Windows;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"
1616

1717
WORKDIR /calico
1818
COPY --from=bins /cni/CalicoWindows/calico-node.exe /calico

hostprocess/flannel/flanneld/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN curl -Lo flanneld.exe https://github.com/coreos/flannel/releases/download/${
2626

2727
FROM $BASE
2828

29-
ENV PATH="C:\Program Files\PowerShell;C:\utils;C:\Windows\system32;C:\Windows;"
29+
ENV PATH="C:\Windows\system32;C:\Windows;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"
3030

3131
ADD https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/windows/hns.psm1 /flannel/hns.psm1
3232
COPY start.ps1 /flannel/start.ps1

hostprocess/flannel/kube-proxy/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ RUN curl -LO https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/w
1212

1313
FROM $BASE
1414

15-
ENV PATH="C:\Program Files\PowerShell;C:\utils;C:\Windows\system32;C:\Windows;"
15+
ENV PATH="C:\Windows\system32;C:\Windows;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"
1616

17-
Add start.ps1 /kube-proxy/start.ps1
17+
ADD start.ps1 /kube-proxy/start.ps1
1818
COPY --from=bins /kube-proxy /kube-proxy
1919

2020
ENTRYPOINT ["PowerShell", "/c", "$env:CONTAINER_SANDBOX_MOUNT_POINT/kube-proxy/start.ps1"]

0 commit comments

Comments
 (0)