ceph-csi/scripts/Dockerfile.devel
Niels de Vos 2c6c0decbe containerized-build: set WORKDIR and use in make target
By setting the WORKDIR in the container image, there is no need to pass
it on the commandline in the Makefile. This makes the line for the make
target a little cleaner.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-04-23 03:41:06 +00:00

23 lines
453 B
Docker

FROM ceph/ceph:v15
ARG GOROOT=/usr/local/go
ENV GOPATH=/go \
GOROOT=${GOROOT} \
GO111MODULE=on \
PATH="${GOROOT}/bin:${GOPATH}/bin:${PATH}"
RUN mkdir -p /usr/local/go && \
curl https://storage.googleapis.com/golang/go1.13.9.linux-amd64.tar.gz | tar xzf - -C ${GOROOT} --strip-components=1
RUN dnf -y install \
git \
make \
gcc \
librados-devel \
librbd-devel \
&& dnf -y update \
&& true
WORKDIR "/go/src/github.com/ceph/ceph-csi"