2018-07-07 17:34:56 +00:00
|
|
|
FROM ubuntu:xenial
|
2015-05-24 05:42:54 +00:00
|
|
|
|
2018-07-07 17:34:56 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
apt-transport-https \
|
|
|
|
git \
|
|
|
|
software-properties-common \
|
|
|
|
uuid-runtime \
|
|
|
|
wget
|
2015-05-24 05:42:54 +00:00
|
|
|
|
2019-12-17 15:50:58 +00:00
|
|
|
ARG CEPH_VERSION
|
|
|
|
ENV CEPH_VERSION=${CEPH_VERSION:-nautilus}
|
|
|
|
ARG CEPH_REPO_URL=https://download.ceph.com/debian-${CEPH_VERSION}/
|
2018-07-07 17:34:56 +00:00
|
|
|
RUN wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
|
2020-01-29 18:52:18 +00:00
|
|
|
RUN true && \
|
|
|
|
apt-add-repository "deb ${CEPH_REPO_URL} xenial main" && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y ceph libcephfs-dev librados-dev librbd-dev curl gcc g++
|
2015-05-24 05:42:54 +00:00
|
|
|
|
2020-01-29 18:52:18 +00:00
|
|
|
ENV GOTAR=go1.12.16.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}
|
2015-05-24 05:42:54 +00:00
|
|
|
|
2018-10-10 22:06:47 +00:00
|
|
|
# add user account to test permissions
|
|
|
|
RUN groupadd -g 1010 bob
|
|
|
|
RUN useradd -u 1010 -g bob -M bob
|
|
|
|
|
2020-01-29 18:52:18 +00:00
|
|
|
ENV PATH="${PATH}:/opt/go/bin"
|
|
|
|
ENV GOROOT=/opt/go
|
|
|
|
ENV GO111MODULE=on
|
2018-07-07 17:34:56 +00:00
|
|
|
ENV GOPATH /go
|
|
|
|
WORKDIR /go/src/github.com/ceph/go-ceph
|
2015-08-31 14:34:42 +00:00
|
|
|
VOLUME /go/src/github.com/ceph/go-ceph
|
2015-05-24 05:42:54 +00:00
|
|
|
|
2018-07-07 17:34:56 +00:00
|
|
|
COPY micro-osd.sh /
|
|
|
|
COPY entrypoint.sh /
|
2019-11-07 19:09:52 +00:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|