Skip to content

Commit

Permalink
Fixing PATH in various host-process containers (#210)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Rossetti <[email protected]>
  • Loading branch information
marosset authored Mar 10, 2022
1 parent 5cc90c6 commit 67084a0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hostprocess/calico/install/Dockerfile.install
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN unzip cni.zip

FROM $BASE

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

COPY --from=bins /cni/CalicoWindows/cni/calico.exe /calico/cni/calico.exe
COPY --from=bins /cni/CalicoWindows/cni/calico-ipam.exe /calico/cni/calico-ipam.exe
Expand Down
4 changes: 2 additions & 2 deletions hostprocess/calico/kube-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ RUN curl -LO https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/w

FROM $BASE

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

Add start.ps1 /kube-proxy/start.ps1
ADD start.ps1 /kube-proxy/start.ps1
COPY --from=bins /kube-proxy/kube-proxy.exe /kube-proxy/kube-proxy.exe
COPY --from=bins /kube-proxy/hns.psm1 /kube-proxy/hns.psm1

Expand Down
2 changes: 1 addition & 1 deletion hostprocess/calico/node/Dockerfile.node
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN unzip cni.zip

FROM $BASE

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

WORKDIR /calico
COPY --from=bins /cni/CalicoWindows/calico-node.exe /calico
Expand Down
2 changes: 1 addition & 1 deletion hostprocess/flannel/flanneld/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN curl -Lo flanneld.exe https://github.com/coreos/flannel/releases/download/${

FROM $BASE

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

ADD https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/windows/hns.psm1 /flannel/hns.psm1
COPY start.ps1 /flannel/start.ps1
Expand Down
4 changes: 2 additions & 2 deletions hostprocess/flannel/kube-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ RUN curl -LO https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/w

FROM $BASE

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

Add start.ps1 /kube-proxy/start.ps1
ADD start.ps1 /kube-proxy/start.ps1
COPY --from=bins /kube-proxy /kube-proxy

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

0 comments on commit 67084a0

Please sign in to comment.