Docker run scripts with sh which doesn't support [[

Change-Id: I368f5b89fbfded0f173b97058061a03783ce1829
Closes-Bug: #1531883
This commit is contained in:
Artur Zarzycki 2016-01-08 14:05:37 +01:00
parent 46ceb9fccc
commit 1bd0d2a1f7

View File

@ -4,7 +4,7 @@ MAINTAINER {{ maintainer }}
ADD plugins-archive / ADD plugins-archive /
COPY extend_start.sh /usr/local/bin/kolla_extend_start COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start \ RUN chmod 755 /usr/local/bin/kolla_extend_start \
&& if [[ "$(ls /plugins)" ]]; then \ && if [ "$(ls /plugins)" ]; then \
pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \ pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \
fi fi