Skip to content

Commit

Permalink
Dist changes for auditor docker image
Browse files Browse the repository at this point in the history
This should eventually resolve this issue [1].

[1] https://gitlab.com/cinc-project/organization-subjects/-/issues/11
  • Loading branch information
ramereth committed May 12, 2021
1 parent b531c42 commit 72fdca7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ubuntu:18.04
LABEL maintainer="Chef Software, Inc. <docker@chef.io>"
LABEL maintainer="Cinc Project <docker@cinc.sh>"

ARG VERSION=4.37.8
ARG CHANNEL=stable

ENV PATH=/opt/inspec/bin:/opt/inspec/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PATH=/opt/cinc-auditor/bin:/opt/cinc-auditor/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 && \
Expand All @@ -22,14 +22,14 @@ RUN mkdir -p /share

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 && \
rpm2cpio /tmp/inspec.rpm | cpio -idmv && \
rm -rf /tmp/inspec.rpm
wget "http://ftp-osl.osuosl.org/pub/cinc/files/${CHANNEL}/cinc-auditor/${VERSION}/el/7/cinc-auditor-${VERSION}-1.el7.x86_64.rpm" -O /tmp/cinc-auditor.rpm && \
rpm2cpio /tmp/cinc-auditor.rpm | cpio -idmv && \
rm -rf /tmp/cinc-auditor.rpm

# Install any packages that make life easier for an InSpec installation
RUN apt-get install -y git

ENTRYPOINT ["inspec"]
ENTRYPOINT ["cinc-auditor"]
CMD ["help"]
VOLUME ["/share"]
WORKDIR /share

0 comments on commit 72fdca7

Please sign in to comment.