Merge pull request #43 from digitalocean/fix_ceph_connection

bug: fix installation of ceph libraries, add docker tags
This commit is contained in:
Vaibhav Bhembre 2016-12-29 15:57:59 -05:00 committed by GitHub
commit d5a8c64171
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,9 @@ dist: trusty
go:
- 1.5
env:
- DOCKER_TAG=$TRAVIS_TAG
before_install:
- sudo apt-get update
- sudo apt-get install -y librados-dev librbd-dev
@ -26,5 +29,5 @@ script:
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push digitalocean/ceph_exporter;
docker push digitalocean/ceph_exporter:$DOCKER_TAG;
fi

View File

@ -11,7 +11,8 @@ RUN apt-get update && \
RUN echo "deb https://download.ceph.com/debian-jewel trusty main" >> /etc/apt/sources.list
RUN apt-get install -y --force-yes librados-dev librbd-dev
RUN apt-get update && \
apt-get install -y --force-yes librados-dev librbd-dev
RUN \
mkdir -p /goroot && \