summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMohammed Naser <mnaser@vexxhost.com>2019-02-07 14:51:15 -0500
committerPaul Belanger <pabelanger@redhat.com>2019-02-23 09:20:41 -0500
commit2a36eea3414c7d9a45b05c54ec47cfdff491524c (patch)
tree0210a16f4ae142eba023e883a9ea16a360964661 /Dockerfile
parentd60346181ba5f076a214f5d02103e0a3b24b10ac (diff)
downloadzuul-2a36eea3414c7d9a45b05c54ec47cfdff491524c.tar.gz
docker: add state folder
Most configuration options depend on storing state data inside the /var/lib/zuul path which does not exist by default, causing a lot of configurations to not work out of the box. This patch creates the folder in the zuul base image, which will reduce the number of options to be moved around to store state. Change-Id: I22d05ca26324ffc02cd0b8d2a3059247a21ffdd9
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 4801f79c6..a859675c8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -35,6 +35,7 @@ RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/s
RUN /output/install-from-bindep \
&& pip install --cache-dir=/output/wheels -r /output/zuul_base/requirements.txt \
&& rm -rf /output
+VOLUME /var/lib/zuul
CMD ["/usr/local/bin/zuul"]
FROM zuul as zuul-executor