forked from google/cadvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid compiling cadvisor statically for the docker image by deriving …
…the image from a stripped down busybox image. Log failures encountered while dumping to influxdb Handle critical failures in cadvisor gracefully without getting stuck.
- Loading branch information
Showing
5 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
FROM scratch | ||
MAINTAINER dengnan@google.com vmarmol@google.com | ||
|
||
# NOTE: Run prepare.sh before building this Docker image. | ||
FROM progrium/busybox | ||
MAINTAINER dengnan@google.com vmarmol@google.com vishnuk@google.com | ||
|
||
# Grab cadvisor from the staging directory. | ||
ADD cadvisor /usr/bin/cadvisor | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["/usr/bin/cadvisor"] | ||
CMD ["-log_dir", "/"] | ||
ENTRYPOINT ["/usr/bin/cadvisor"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
godep go build -a github.com/google/cadvisor | ||
|
||
sudo docker build -t google/cadvisor:test . |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters