diff options
Diffstat (limited to 'app-emulation/docker-bench-security')
5 files changed, 73 insertions, 0 deletions
diff --git a/app-emulation/docker-bench-security/Manifest b/app-emulation/docker-bench-security/Manifest new file mode 100644 index 000000000000..fd66ff6e6567 --- /dev/null +++ b/app-emulation/docker-bench-security/Manifest @@ -0,0 +1,6 @@ +AUX docker-bench-security 174 BLAKE2B 926bbcc72936dacd4b83e5627532a47759a6856c57c4aa8d698fef82846f671f337b22645d6ff08ece4218d699074d158d8871e43bc6dc66410edb86c03d678c SHA512 b8701d2084660f2d60fd33e3bbe7947f1ec2e37516afe668c8b4f483b250dadd1517c541830ce30587baf0a1cfcf6e2ca4393e0572a223cccd12b935e43d3a59 +DIST docker-bench-security-1.3.2.tar.gz 414608 BLAKE2B 27977df473c341783aab400bbe5064e267d6f53aa62ffd6f95386572e059616750eb06b98ad3044efaf565f929e6ebfb5d57607b227718032fa33d70ce65eed5 SHA512 7d271167584ff99fdaff15b1d303f1cedeb5888057437cc3bfae8260aff96f98d8a0173c4d4e5718bf8ee4e0ffe3ae0280f0026cf386ae32c38e8302159a2226 +DIST docker-bench-security-1.3.3.tar.gz 274361 BLAKE2B b0a3fef0fedd7353a11f18603af0a9bd5a9c5674df8e0c2988f3b7430739b1fe1c37b3bc29323f39604e8f9d3af66e4a64b97c1e4bb1ef253cc39e9b1e1cb6e2 SHA512 0b9a8bb3cc0bf0887f3b3462c3529568f6cc4d327f66fe482ceb24865a3df51ffee48a1a12c93ca13401f23bf1cd47b3e8b25c99537f63a823ff173d54994fe9 +EBUILD docker-bench-security-1.3.2.ebuild 668 BLAKE2B d4048afc8766f6bc383195c4b8d57e0ed7d0398755992ade7e63f875f8968c03365ded9dd87f3e2a235effe15b92d5a6ad01855a25c09bac7746649ae28f870a SHA512 fb65eca8b06ba2f89c9d0986399c0d12a14a22957c41cf48a1c5deb7746981407a74b1c00675d4b5379c8cfa5544464d09035c739003bc21a0d7e969902e2421 +EBUILD docker-bench-security-1.3.3.ebuild 668 BLAKE2B d4048afc8766f6bc383195c4b8d57e0ed7d0398755992ade7e63f875f8968c03365ded9dd87f3e2a235effe15b92d5a6ad01855a25c09bac7746649ae28f870a SHA512 fb65eca8b06ba2f89c9d0986399c0d12a14a22957c41cf48a1c5deb7746981407a74b1c00675d4b5379c8cfa5544464d09035c739003bc21a0d7e969902e2421 +MISC metadata.xml 441 BLAKE2B 66bd366b9efa04a0318e25eea8872a382d310e9dedd7e8de194e69021f02e57750c1d4fc937c1a2ab1fe9178a521589b2aba3e63e2847e90df9a6aea60d4dc42 SHA512 608fe54f06d9bdb6ac5e563de54f5c4eb4af1eb5973bce41e2fb64242c92cfa8173fa8615536794154cc6dbfb654e2bf9c38bec73a05c4126d3a2fa671822715 diff --git a/app-emulation/docker-bench-security/docker-bench-security-1.3.2.ebuild b/app-emulation/docker-bench-security/docker-bench-security-1.3.2.ebuild new file mode 100644 index 000000000000..6e423e8ccc19 --- /dev/null +++ b/app-emulation/docker-bench-security/docker-bench-security-1.3.2.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Test for best practices around deploying docker containers" +HOMEPAGE="https://github.com/docker/docker-bench-security" +SRC_URI="https://github.com/docker/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=app-emulation/docker-1.10" + +src_install() { +dobin "${FILESDIR}/docker-bench-security" +exeinto /usr/lib/${PN} +doexe ${PN}.sh +insinto /usr/lib/${PN} +doins -r *lib.sh tests + dodoc -r benchmark_log.png CONTRIBUTING.md distros docker-compose.yml \ + Dockerfile MAINTAINERS README.md +} diff --git a/app-emulation/docker-bench-security/docker-bench-security-1.3.3.ebuild b/app-emulation/docker-bench-security/docker-bench-security-1.3.3.ebuild new file mode 100644 index 000000000000..6e423e8ccc19 --- /dev/null +++ b/app-emulation/docker-bench-security/docker-bench-security-1.3.3.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Test for best practices around deploying docker containers" +HOMEPAGE="https://github.com/docker/docker-bench-security" +SRC_URI="https://github.com/docker/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=app-emulation/docker-1.10" + +src_install() { +dobin "${FILESDIR}/docker-bench-security" +exeinto /usr/lib/${PN} +doexe ${PN}.sh +insinto /usr/lib/${PN} +doins -r *lib.sh tests + dodoc -r benchmark_log.png CONTRIBUTING.md distros docker-compose.yml \ + Dockerfile MAINTAINERS README.md +} diff --git a/app-emulation/docker-bench-security/files/docker-bench-security b/app-emulation/docker-bench-security/files/docker-bench-security new file mode 100644 index 000000000000..3a79d1b3af4d --- /dev/null +++ b/app-emulation/docker-bench-security/files/docker-bench-security @@ -0,0 +1,7 @@ +#!/bin/sh +if [ $(id -u) -ne 0 ]; then + printf "%s\n" "This script must be run as root." + exit 1 +fi +cd "$(dirname $0)/../lib/docker-bench-security" +./docker-bench-security.sh diff --git a/app-emulation/docker-bench-security/metadata.xml b/app-emulation/docker-bench-security/metadata.xml new file mode 100644 index 000000000000..eb6d1553ceb4 --- /dev/null +++ b/app-emulation/docker-bench-security/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <longdescription lang="en"> + The Docker Bench for Security is a script that checks for dozens of + common best-practices around deploying Docker containers in production. + </longdescription> +</pkgmetadata> |