diff --git a/Dockerfile b/distros/Dockerfile.centos similarity index 63% rename from Dockerfile rename to distros/Dockerfile.centos index 0449c05..e56d864 100644 --- a/Dockerfile +++ b/distros/Dockerfile.centos @@ -1,8 +1,6 @@ -FROM alpine:3.1 +FROM centos -RUN apk update && \ - apk upgrade && \ - apk --update add docker +RUN yum install -y docker net-tools audit procps-ng; yum clean all RUN mkdir /docker-bench-security diff --git a/distros/Dockerfile.rhel b/distros/Dockerfile.rhel new file mode 100644 index 0000000..22c1481 --- /dev/null +++ b/distros/Dockerfile.rhel @@ -0,0 +1,14 @@ +FROM rhel7 + +RUN yum install -y yum-utils; yum clean all +RUN yum-config-manager --disable "*" &>/dev/null +RUN yum-config-manager --enable rhel-7-server-rpms --enable rhel-7-server-extras-rpms +RUN yum install -y docker net-tools audit procps-ng; yum clean all + +RUN mkdir /docker-bench-security + +COPY . /docker-bench-security + +WORKDIR /docker-bench-security + +ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"]