From 88d058cdd8417290a8fca895cfc100b59bfaad30 Mon Sep 17 00:00:00 2001 From: Tom Duffield Date: Thu, 22 Aug 2019 10:43:08 -0500 Subject: [PATCH] Fix the build arguments in the Dockerfile We need to support the prefixed `EXPEDITOR_` build arguments in our Dockerfile. We are leaving the non-prefixed arguments in there for back-compat. Signed-off-by: Tom Duffield --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a2bccf870..a5b1a6fbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,17 @@ FROM ubuntu:18.04 -MAINTAINER Chef Software, Inc. +LABEL maintainer="Chef Software, Inc. " +ARG EXPEDITOR_CHANNEL ARG CHANNEL=stable +ARG EXPEDITOR_VERSION ARG VERSION=4.3.13 ENV DEBIAN_FRONTEND=noninteractive \ PATH=/opt/chefdk/bin:/opt/chefdk/embedded/bin:/root/.chefdk/gem/ruby/2.6.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +# Allow the build arg below to be controlled by either build arguments +ENV VERSION ${EXPEDITOR_VERSION:-${VERSION}} +ENV CHANNEL ${EXPEDITOR_CHANNEL:-${CHANNEL}} + # Run the entire container with the default locale to be en_US.UTF-8 RUN apt-get update && \ apt-get install -y locales && \