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-11-28 09:30:54 +00:00
|
|
|
ARG CEPH_REPO_URL=https://download.ceph.com/debian-nautilus/
|
2018-07-07 17:34:56 +00:00
|
|
|
RUN wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
|
2018-08-09 02:35:28 +00:00
|
|
|
RUN apt-add-repository "deb ${CEPH_REPO_URL} xenial main"
|
2015-05-24 05:42:54 +00:00
|
|
|
|
Docker: prevent blocking prompt with add-apt-repository
A blocking message is shown when running 'make test-docker':
STEP 6: RUN add-apt-repository ppa:gophers/archive
Co-installable packages of Go 1.4 through 1.11 for supported versions
of Ubuntu -- currently Trusty, Xenial, Bionic, Cosmic and Disco.
Installing golang-1.X installs the latest point release of Go 1.X. I add
the odd patch to keep older versions of Go building with new toolchains,
but I do *not* make any effort to backport security fixes to Go releases
that are not supported by upstream. Buyer beware!
I aim to start uploading a release when its first beta is released, so
e.g. I uploaded a golang-1.7 package after 1.7 beta 1 was released. But
I don't always keep up with this.
So that these packages can be co-installable, they do not install
anything to /usr/bin. Once you have installed the golang-1.X package,
you will need to add /usr/lib/go-1.X/bin (or maybe /usr/lib/go-tip/bin)
to your $PATH, or you can just invoke /usr/lib/go-1.X/bin/go directly.
The packages all Recommend: appropriate versions of the runtime race
detector support on amd64, which are also built in this PPA
(eventually).
More info: https://launchpad.net/~gophers/+archive/ubuntu/archive
Press [ENTER] to continue or ctrl-c to cancel adding it
By passing the -y switch to add-apt-repository, this message is ignored
and the process continues.
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2019-11-02 13:28:21 +00:00
|
|
|
RUN add-apt-repository -y ppa:gophers/archive
|
2018-08-05 17:46:55 +00:00
|
|
|
|
2018-07-07 17:34:56 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
ceph \
|
|
|
|
libcephfs-dev \
|
|
|
|
librados-dev \
|
2018-08-05 17:46:55 +00:00
|
|
|
librbd-dev \
|
|
|
|
golang-1.10-go
|
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
|
|
|
|
|
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"]
|