mirror of
https://github.com/ceph/go-ceph
synced 2024-12-23 14:45:42 +00:00
9cd28289b5
Bump the golang version to 1.14.7. Go 1.14 is now the older supported version, with the recent release of Go. Signed-off-by: John Mulligan <jmulligan@redhat.com>
32 lines
837 B
Docker
32 lines
837 B
Docker
ARG CEPH_VERSION
|
|
FROM ceph/daemon-base:latest-${CEPH_VERSION:-nautilus}
|
|
|
|
ENV CEPH_VERSION=${CEPH_VERSION:-nautilus}
|
|
|
|
RUN true && \
|
|
yum clean all && \
|
|
cv="$(rpm -q --queryformat '%{version}-%{release}' ceph-common)" && \
|
|
yum install -y \
|
|
git wget curl make \
|
|
/usr/bin/cc /usr/bin/c++ \
|
|
"libcephfs-devel-${cv}" "librados-devel-${cv}" "librbd-devel-${cv}" && \
|
|
true
|
|
|
|
ENV GOTAR=go1.14.7.linux-amd64.tar.gz
|
|
RUN true && \
|
|
curl -o /tmp/${GOTAR} https://dl.google.com/go/${GOTAR} && \
|
|
tar -x -C /opt/ -f /tmp/${GOTAR} && \
|
|
rm -f /tmp/${GOTAR} && \
|
|
true
|
|
|
|
ENV PATH="${PATH}:/opt/go/bin"
|
|
ENV GOROOT=/opt/go
|
|
ENV GO111MODULE=on
|
|
ENV GOPATH /go
|
|
WORKDIR /go/src/github.com/ceph/go-ceph
|
|
VOLUME /go/src/github.com/ceph/go-ceph
|
|
|
|
COPY micro-osd.sh /
|
|
COPY entrypoint.sh /
|
|
ENTRYPOINT ["/entrypoint.sh"]
|