Fix tar command path for magnum conductor using ubuntu

In ubuntu, the tar binary path is /bin/tar instead of /usr/bin/tar.
Change to use tar directly for all os.

TrivialFix

Change-Id: I12562d3ac186acab651ffae715e5c7788cd98b7e
This commit is contained in:
liyingjun 2016-08-16 23:18:12 +08:00
parent e3ca26f9e5
commit 3486d5bda3

View File

@ -17,7 +17,7 @@ RUN {{ macros.install_packages(magnum_conductor_packages | customizable("package
# Install kubectl binary (ugh)
RUN cd /tmp \
&& curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.15.0/kubernetes.tar.gz -o /tmp/kubernetes.tar.gz \
&& /usr/bin/tar -xzvf /tmp/kubernetes.tar.gz \
&& tar -xzvf /tmp/kubernetes.tar.gz \
&& cp -a /tmp/kubernetes/platforms/linux/amd64/kubectl /usr/bin/kubectl \
&& rm -rf /tmp/kubernetes