Avoid interactive when building containers

Fixed error observed locally when trying to reproduce CI command failure:

debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring openafs-client
--------------------------

AFS filespace is organized into cells or administrative domains. Each
workstation belongs to one cell.  Usually the cell is the DNS domain name of
the site.

AFS cell this workstation belongs to: ^C

Change-Id: I5e818d1fcdac360b13947c750c536ed5d0811cb9
This commit is contained in:
Sorin Sbarnea 2020-07-07 09:58:13 +01:00
parent 22ddf90cc3
commit 5a1954eb7b
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@
# limitations under the License.
FROM docker.io/opendevorg/python-builder:3.7 as builder
ENV DEBIAN_FRONTEND=noninteractive
# Optional location of Zuul API endpoint.
ARG REACT_APP_ZUUL_API
@ -42,6 +43,7 @@ RUN mkdir /tmp/openshift-install \
&& tar xvfz openshift-client.tgz --strip-components=1 -C /tmp/openshift-install
FROM docker.io/opendevorg/python-base:3.7 as zuul
ENV DEBIAN_FRONTEND=noninteractive
COPY --from=builder /output/ /output
RUN /output/install-from-bindep \
@ -53,6 +55,7 @@ VOLUME /var/lib/zuul
CMD ["/usr/local/bin/zuul"]
FROM zuul as zuul-executor
ENV DEBIAN_FRONTEND=noninteractive
COPY --from=builder /usr/local/lib/zuul/ /usr/local/lib/zuul
COPY --from=builder /tmp/openshift-install/kubectl /usr/local/bin/kubectl
COPY --from=builder /tmp/openshift-install/oc /usr/local/bin/oc