Create /var/cache/swift in source installation

Due to lack of /var/cache/swift directory, swift services
are unable to access /var/cache/swift/container.recon file.

Closes-Bug: 1569182

Change-Id: Ifc4763d40256e43f51728e1dd4b3986c4f0ba0fc
This commit is contained in:
Michal Rostecki 2016-04-10 19:34:29 +02:00
parent 12735f01da
commit 3f85c54598
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ ADD swift-base-archive /swift-base-source
RUN ln -s swift-base-source/* swift \
&& useradd --user-group swift \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /swift \
&& mkdir -p /etc/swift /var/log/swift /home/swift \
&& mkdir -p /etc/swift /var/cache/swift /var/log/swift /home/swift \
&& cp -r /swift/etc/* /etc/swift/ \
&& chown -R swift: /etc/swift /var/log/swift /home/swift
&& chown -R swift: /etc/swift /var/cache/swift /var/log/swift /home/swift
{% endif %}