*: remove bzr dependency
This commit is contained in:
parent
456af5f48c
commit
5caa821c80
@ -20,7 +20,7 @@ EXPOSE 6060 6061
|
|||||||
ADD . /go/src/github.com/coreos/clair/
|
ADD . /go/src/github.com/coreos/clair/
|
||||||
WORKDIR /go/src/github.com/coreos/clair/
|
WORKDIR /go/src/github.com/coreos/clair/
|
||||||
|
|
||||||
RUN apk add --no-cache git bzr rpm xz dumb-init && \
|
RUN apk add --no-cache git rpm xz dumb-init && \
|
||||||
go install -v github.com/coreos/clair/cmd/clair && \
|
go install -v github.com/coreos/clair/cmd/clair && \
|
||||||
mv /go/bin/clair /clair && \
|
mv /go/bin/clair /clair && \
|
||||||
rm -rf /go /usr/local/go
|
rm -rf /go /usr/local/go
|
||||||
|
@ -87,14 +87,12 @@ To build Clair, you need to latest stable version of [Go] and a working [Go envi
|
|||||||
In addition, Clair requires some additional binaries be installed on the system [$PATH] as runtime dependencies:
|
In addition, Clair requires some additional binaries be installed on the system [$PATH] as runtime dependencies:
|
||||||
|
|
||||||
* [git]
|
* [git]
|
||||||
* [bzr]
|
|
||||||
* [rpm]
|
* [rpm]
|
||||||
* [xz]
|
* [xz]
|
||||||
|
|
||||||
[Go]: https://github.com/golang/go/releases
|
[Go]: https://github.com/golang/go/releases
|
||||||
[Go environment]: https://golang.org/doc/code.html
|
[Go environment]: https://golang.org/doc/code.html
|
||||||
[git]: https://git-scm.com
|
[git]: https://git-scm.com
|
||||||
[bzr]: http://bazaar.canonical.com/en
|
|
||||||
[rpm]: http://www.rpm.org
|
[rpm]: http://www.rpm.org
|
||||||
[xz]: http://tukaani.org/xz
|
[xz]: http://tukaani.org/xz
|
||||||
[$PATH]: https://en.wikipedia.org/wiki/PATH_(variable)
|
[$PATH]: https://en.wikipedia.org/wiki/PATH_(variable)
|
||||||
|
@ -180,7 +180,7 @@ func main() {
|
|||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
// Check for dependencies.
|
// Check for dependencies.
|
||||||
for _, bin := range []string{"git", "bzr", "rpm", "xz"} {
|
for _, bin := range []string{"git", "rpm", "xz"} {
|
||||||
_, err := exec.LookPath(bin)
|
_, err := exec.LookPath(bin)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithError(err).WithField("dependency", bin).Fatal("failed to find dependency")
|
log.WithError(err).WithField("dependency", bin).Fatal("failed to find dependency")
|
||||||
|
Loading…
Reference in New Issue
Block a user