2020-12-18 22:28:10 +00:00
|
|
|
FROM ubuntu:18.04
|
2019-08-08 14:01:01 +00:00
|
|
|
LABEL maintainer="Chef Software, Inc. <docker@chef.io>"
|
2017-09-14 19:16:29 +00:00
|
|
|
|
2021-05-26 22:09:42 +00:00
|
|
|
ARG VERSION=4.37.20
|
2020-12-18 21:01:11 +00:00
|
|
|
ARG CHANNEL=stable
|
2017-09-14 19:16:29 +00:00
|
|
|
|
2020-12-18 22:28:10 +00:00
|
|
|
ENV PATH=/opt/inspec/bin:/opt/inspec/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
|
|
|
|
# Run the entire container with the default locale to be en_US.UTF-8
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y locales && \
|
|
|
|
locale-gen en_US.UTF-8 && \
|
|
|
|
update-locale LANG=en_US.UTF-8 && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
|
|
LANGUAGE=en_US:en \
|
|
|
|
LC_ALL=en_US.UTF-8
|
|
|
|
|
2020-12-19 01:08:36 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /share
|
|
|
|
|
2020-12-18 22:28:10 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y wget rpm2cpio cpio && \
|
|
|
|
wget "http://packages.chef.io/files/${CHANNEL}/inspec/${VERSION}/el/7/inspec-${VERSION}-1.el7.x86_64.rpm" -O /tmp/inspec.rpm && \
|
2020-12-18 21:01:11 +00:00
|
|
|
rpm2cpio /tmp/inspec.rpm | cpio -idmv && \
|
|
|
|
rm -rf /tmp/inspec.rpm
|
2019-04-26 17:34:08 +00:00
|
|
|
|
2021-02-26 15:13:07 +00:00
|
|
|
# Install any packages that make life easier for an InSpec installation
|
|
|
|
RUN apt-get install -y git
|
|
|
|
|
2016-04-13 03:58:18 +00:00
|
|
|
ENTRYPOINT ["inspec"]
|
2020-12-19 01:08:36 +00:00
|
|
|
CMD ["help"]
|
|
|
|
VOLUME ["/share"]
|
|
|
|
WORKDIR /share
|