diff --git a/Dockerfile b/Dockerfile index 421ae03..e38bf1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 as builder +FROM ubuntu:20.04 as builder MAINTAINER Vaibhav Bhembre ARG TEST @@ -12,30 +12,30 @@ RUN apt-get update && \ apt-get install -y apt-transport-https build-essential git curl wget RUN wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add - -RUN echo "deb https://download.ceph.com/debian-nautilus bionic main" >> /etc/apt/sources.list +RUN echo "deb https://download.ceph.com/debian-nautilus focal main" >> /etc/apt/sources.list RUN apt-get update && \ apt-get install -y --force-yes librados-dev librbd-dev RUN \ mkdir -p /goroot && \ - curl https://storage.googleapis.com/golang/go1.16.3.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1 + curl https://storage.googleapis.com/golang/go1.18.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1 ADD . $APPLOC WORKDIR $APPLOC RUN go get -d -# The `-tags nautilus` instructs go-ceph to enable additional support nautilus release. +# The `-tags pacific` instructs go-ceph to enable additional support nautilus release. # See https://github.com/ceph/go-ceph#installation -RUN if [ -n "${TEST}" ]; then go test -tags nautilus -v -race -count=1 ./...; fi -RUN go build -tags nautilus -o /bin/ceph_exporter +RUN if [ -n "${TEST}" ]; then go test -tags pacific -v -race -count=1 ./...; fi +RUN go build -tags pacific -o /bin/ceph_exporter -FROM ubuntu:18.04 +FROM ubuntu:20.04 MAINTAINER Vaibhav Bhembre RUN apt-get update && \ apt-get install -y apt-transport-https curl wget gnupg RUN wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add - -RUN echo "deb https://download.ceph.com/debian-nautilus bionic main" >> /etc/apt/sources.list && \ +RUN echo "deb https://download.ceph.com/debian-nautilus focal main" >> /etc/apt/sources.list && \ apt-get update && \ apt-get install -y --force-yes librados2 librbd1 ceph-common && \ rm -rf /var/lib/apt/lists/* diff --git a/go.mod b/go.mod index 94044a7..7f00c73 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/digitalocean/ceph_exporter -go 1.17 +go 1.18 require ( github.com/Jeffail/gabs v1.4.0