forked from pryorda/vmware_exporter
-
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.
- Loading branch information
Daniel Pryor
committed
Jun 26, 2018
1 parent
d750b12
commit a863090
Showing
3 changed files
with
160 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config.yml |
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,17 +1,16 @@ | ||
FROM python:2-slim | ||
FROM python:2.7-alpine | ||
|
||
WORKDIR /usr/src/app | ||
LABEL MAINTAINER Daniel Pryor <dpryor@pryorda.net> | ||
|
||
RUN buildDeps="gcc python-dev" \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends $buildDeps \ | ||
&& pip install --no-cache-dir vmware_exporter \ | ||
&& SUDO_FORCE_REMOVE=yes \ | ||
&& apt-get purge -y --auto-remove \ | ||
-o APT::AutoRemove::RecommendsImportant=false \ | ||
$buildDeps \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
WORKDIR /opt/vmware_exporter/ | ||
|
||
COPY . /opt/vmware_exporter/ | ||
|
||
RUN set -x; buildDeps="gcc python-dev musl-dev libffi-dev openssl openssl-dev" \ | ||
&& apk add --no-cache --update $buildDeps \ | ||
&& pip install -r requirements.txt \ | ||
&& apk del $buildDeps | ||
|
||
EXPOSE 9272 | ||
|
||
ENTRYPOINT ["vmware_exporter"] | ||
ENTRYPOINT ["/opt/vmware_exporter/vmware_exporter/vmware_exporter.py", "-c", "/opt/vmware_exporter/config.yml"] |
Oops, something went wrong.