diff --git a/.goosarch b/.goosarch new file mode 100644 index 0000000..1a61703 --- /dev/null +++ b/.goosarch @@ -0,0 +1,11 @@ +darwin/amd64 +darwin/386 +freebsd/amd64 +freebsd/386 +linux/arm +linux/arm64 +linux/amd64 +linux/386 +solaris/amd64 +windows/amd64 +windows/386 diff --git a/.travis.yml b/.travis.yml index 64454c8..5f04ff7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,39 +18,39 @@ jobs: deploy: provider: releases file: - - cross/bane-linux-amd64.md5 - - cross/bane-windows-386.sha256 - - cross/bane-linux-arm - - cross/bane-darwin-amd64.md5 - cross/bane-darwin-amd64 - - cross/bane-solaris-amd64.md5 - - cross/bane-linux-arm64.sha256 - - cross/bane-linux-arm.sha256 - - cross/bane-linux-386.sha256 + - cross/bane-darwin-amd64.md5 + - cross/bane-darwin-amd64.sha256 + - cross/bane-darwin-386 - cross/bane-darwin-386.md5 - - cross/bane-windows-386.md5 + - cross/bane-darwin-386.sha256 + - cross/bane-freebsd-amd64 - cross/bane-freebsd-amd64.md5 - - cross/bane-linux-arm64.md5 - - cross/bane-linux-arm64 - cross/bane-freebsd-amd64.sha256 + - cross/bane-freebsd-386 - cross/bane-freebsd-386.md5 + - cross/bane-freebsd-386.sha256 + - cross/bane-linux-arm + - cross/bane-linux-arm.md5 + - cross/bane-linux-arm.sha256 + - cross/bane-linux-arm64 + - cross/bane-linux-arm64.md5 + - cross/bane-linux-arm64.sha256 + - cross/bane-linux-amd64 + - cross/bane-linux-amd64.md5 - cross/bane-linux-amd64.sha256 + - cross/bane-linux-386 - cross/bane-linux-386.md5 - - cross/bane-freebsd-386 + - cross/bane-linux-386.sha256 + - cross/bane-solaris-amd64 + - cross/bane-solaris-amd64.md5 - cross/bane-solaris-amd64.sha256 - cross/bane-windows-amd64 - cross/bane-windows-amd64.md5 - cross/bane-windows-amd64.sha256 - - cross/bane-linux-arm.md5 - - cross/bane-darwin-386.sha256 - - cross/bane-darwin-amd64.sha256 - cross/bane-windows-386 - - cross/bane-solaris-amd64 - - cross/bane-darwin-386 - - cross/bane-linux-386 - - cross/bane-freebsd-amd64 - - cross/bane-freebsd-386.sha256 - - cross/bane-linux-amd64 + - cross/bane-windows-386.md5 + - cross/bane-windows-386.sha256 skip_cleanup: true on: tags: true diff --git a/.traviskey b/.traviskey new file mode 100644 index 0000000..6e509b2 --- /dev/null +++ b/.traviskey @@ -0,0 +1 @@ +LMrByDP/cIjxaGdXAOrDGtlzsiBt//LRrhrwpdimdl6rnijkc+NlhRhGNItceJzQLs6kz5sihHY1YVaeqzJXnJ+Eo4b0Kz1BQwpOk5DRn85y+tTg2G7HvCIjrWsVleCnbmAK/IbOsVdY7HlK7s0i9eG+7fYfSGiNMevwwtfQjiKH3yFu+nUPPH4Z85Lvz8Wvjg0Nmhnt+nY4R7IFHgMNVGsUn1qjUrrCK8X9fuY3ulnK6nghQ/KSrxyJdkfWWOqs8EfxMpcKH6iL5wYeAXxEFp97WJiqjqIh2RfGjB4q/nRWVWDviVUxUxrgIFh4AEtZMphdKsNhoyyLMZB42O1daP7SCR498xeCZLpx4jTfOTJ6QhD2zJ56rkXlvcEDomCIo+A3fHUiknKLmEnRE6aQQTkn3E49D7A+GG15x/3ec6WBizR1Ht8nMxDh7Z5glVqs8Sf/AHry3RLEYbO6HS2j3Axx6yS9dg5K8keOpKygVpyNNFUb1KDpO/ZJdq4GaBqyjHZoh/PBNvYxHsMhVL9L57LBabckV5pTjGunTTY6CHmhPdzWCVCl1SRRUw1spqZMxydQSkxYd04QqAVsb3vw4f+iA0uTSgWRKpcC0CVjiML1BIxnjXDmBP7v6+oVaEHF9Gyj9+StvodS7GUWScL8p1NvQlHaC4bdzKytMTMuzmc= diff --git a/Gopkg.toml b/Gopkg.toml index 8624c5c..5523827 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -19,6 +19,10 @@ # name = "github.com/x/y" # version = "2.4.0" +[prune] + non-go = true + go-tests = true + unused-packages = true [[override]] name = "github.com/Sirupsen/logrus" diff --git a/Makefile b/Makefile index e19e739..e77215b 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ GO_LDFLAGS_STATIC=-ldflags "-w $(CTIMEVAR) -extldflags -static" GO := go # List the GOOS and GOARCH to build -GOOSARCHES = darwin/amd64 darwin/386 freebsd/amd64 freebsd/386 linux/arm linux/arm64 linux/amd64 linux/386 solaris/amd64 windows/amd64 windows/386 +GOOSARCHES = $(shell cat .goosarch) .PHONY: build build: $(NAME) ## Builds a dynamic executable or package diff --git a/README.md b/README.md index 692b0da..b2ecfe0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # bane -[![Travis CI](https://travis-ci.org/genuinetools/bane.svg?branch=master)](https://travis-ci.org/genuinetools/bane) +[![Travis CI](https://img.shields.io/travis/genuinetools/bane.svg?style=for-the-badge)](https://travis-ci.org/genuinetools/bane) +[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://godoc.org/github.com/genuinetools/bane) +[![Github All Releases](https://img.shields.io/github/downloads/genuinetools/bane/total.svg?style=for-the-badge)](https://github.com/genuinetools/bane/releases) AppArmor profile generator for docker containers. Basically a better AppArmor profile, than creating one by hand, because who would ever do that. @@ -15,15 +17,11 @@ profile, than creating one by hand, because who would ever do that. #### Binaries -- **darwin** [386](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-darwin-386) / [amd64](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-darwin-amd64) -- **freebsd** [386](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-freebsd-386) / [amd64](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-freebsd-amd64) -- **linux** [386](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-linux-386) / [amd64](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-linux-amd64) / [arm](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-linux-arm) / [arm64](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-linux-arm64) -- **solaris** [amd64](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-solaris-amd64) -- **windows** [386](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-windows-386) / [amd64](https://github.com/genuinetools/bane/releases/download/v0.4.1/bane-windows-amd64) +For installation instructions from binaries please visit the [Releases Page](https://github.com/genuinetools/bane/releases). #### Via Go -```bash +```console $ go get github.com/genuinetools/bane ``` @@ -132,4 +130,3 @@ For the above `sample.toml` the generated profile is available as [docker-nginx- This was originally a proof of concept for what will hopefully become a native security profile in the Docker engine. For more information on this, see [docker/docker#17142](https://github.com/docker/docker/issues/17142). -