The files/opt/apb/.kube/config file was being copied to /opt/apb/config...that will not work. This change puts the kubeconfig where it belongs (in /opt/apb/.kube/config) and removes the COPY statements from the nightly dockerfile since we just installed apb-base-scripts.
$ docker run -it --rm --privileged --net=host --entrypoint /bin/cat docker.io/djzager/apb-base:old /opt/apb/.kube/config
/bin/cat: /opt/apb/.kube/config: No such file or directory
Proof that nightly works after removing the COPY statements:
The
files/opt/apb/.kube/config
file was being copied to/opt/apb/config
...that will not work. This change puts the kubeconfig where it belongs (in/opt/apb/.kube/config
) and removes theCOPY
statements from the nightly dockerfile since we just installedapb-base-scripts
.Proof the new one works:
Proof the old one was broken:
Proof that nightly works after removing the
COPY
statements: