Skip to content

Commit

Permalink
Threaded slow sync calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Pryor committed Jun 26, 2018
1 parent d750b12 commit a863090
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 107 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config.yml
23 changes: 11 additions & 12 deletions Dockerfile
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"]
Loading

0 comments on commit a863090

Please sign in to comment.