From b9420319795369bf3c3e0c52e57d52d7b050f58d Mon Sep 17 00:00:00 2001 From: Scott McCarty Date: Thu, 2 Jul 2015 14:23:58 -0400 Subject: [PATCH 1/2] Created customized Dockerfiles for RHEL and CentOS Signed-off-by: Scott McCarty --- distros/Dockerfile.centos | 15 +++++++++++++++ distros/Dockerfile.rhel | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 distros/Dockerfile.centos create mode 100644 distros/Dockerfile.rhel diff --git a/distros/Dockerfile.centos b/distros/Dockerfile.centos new file mode 100644 index 0000000..a108268 --- /dev/null +++ b/distros/Dockerfile.centos @@ -0,0 +1,15 @@ +# REPOSITORY https://github.com/docker/docker-bench-security + +MAINTAINER smccarty@redhat.com + +FROM centos + +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"] diff --git a/distros/Dockerfile.rhel b/distros/Dockerfile.rhel new file mode 100644 index 0000000..5ffe582 --- /dev/null +++ b/distros/Dockerfile.rhel @@ -0,0 +1,18 @@ +# REPOSITORY https://github.com/docker/docker-bench-security + +FROM rhel7 + +MAINTAINER smccarty@redhat.com + +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"] From 9429cdd79fe18aa6973d0e3794e2b18c4cf72d84 Mon Sep 17 00:00:00 2001 From: Scott McCarty Date: Mon, 6 Jul 2015 13:07:07 -0400 Subject: [PATCH 2/2] Changed the repository to my fork fatherlinux/docker-bench-security Signed-off-by: Scott McCarty --- distros/Dockerfile.centos | 2 +- distros/Dockerfile.rhel | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distros/Dockerfile.centos b/distros/Dockerfile.centos index a108268..81e2824 100644 --- a/distros/Dockerfile.centos +++ b/distros/Dockerfile.centos @@ -1,4 +1,4 @@ -# REPOSITORY https://github.com/docker/docker-bench-security +# REPOSITORY https://github.com/fatherlinux/docker-bench-security MAINTAINER smccarty@redhat.com diff --git a/distros/Dockerfile.rhel b/distros/Dockerfile.rhel index 5ffe582..7c7f8d8 100644 --- a/distros/Dockerfile.rhel +++ b/distros/Dockerfile.rhel @@ -1,4 +1,4 @@ -# REPOSITORY https://github.com/docker/docker-bench-security +# REPOSITORY https://github.com/fatherlinux/docker-bench-security FROM rhel7