Fix Docker builds (#4373)

Fix Docker builds
This commit is contained in:
Clinton Wolfe 2019-08-08 16:58:10 -04:00 committed by GitHub
commit 25f9c1c845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -10,4 +10,4 @@
set -evx
sed -i -r "s/^ARG VERSION=.*/ARG VERSION=${VERSION}/" Dockerfile
sed -i -r "s/^ARG VERSION=.*/ARG VERSION=${EXPEDITOR_VERSION}/" Dockerfile

View file

@ -1,9 +1,13 @@
FROM ruby:alpine
MAINTAINER Chef Software, Inc. <docker@chef.io>
LABEL maintainer="Chef Software, Inc. <docker@chef.io>"
ARG VERSION=
ARG EXPEDITOR_VERSION
ARG VERSION=4.10.4
ARG GEM_SOURCE=https://rubygems.org
# Allow VERSION below to be controlled by either VERSION or EXPEDITOR_VERSION build arguments
ENV VERSION ${EXPEDITOR_VERSION:-${VERSION}}
RUN mkdir -p /share
RUN apk add --update build-base libxml2-dev libffi-dev git openssh-client
RUN gem install --no-document --source ${GEM_SOURCE} --version ${VERSION} inspec