mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
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>
This commit is contained in:
parent
ceef252a24
commit
2c6c0decbe
2
Makefile
2
Makefile
@ -79,7 +79,7 @@ cephcsi:
|
||||
|
||||
.PHONY: containerized-build containerized-test
|
||||
containerized-build: .devel-container-id
|
||||
$(CONTAINER_CMD) run --rm -v $(PWD):/go/src/github.com/ceph/ceph-csi$(SELINUX_VOL_FLAG) $(CSI_IMAGE_NAME):devel make -C /go/src/github.com/ceph/ceph-csi cephcsi
|
||||
$(CONTAINER_CMD) run --rm -v $(PWD):/go/src/github.com/ceph/ceph-csi$(SELINUX_VOL_FLAG) $(CSI_IMAGE_NAME):devel make cephcsi
|
||||
|
||||
containerized-test: .test-container-id
|
||||
$(CONTAINER_CMD) run --rm -v $(PWD):/go/src/github.com/ceph/ceph-csi$(SELINUX_VOL_FLAG) $(CSI_IMAGE_NAME):test make test
|
||||
|
@ -18,3 +18,5 @@ RUN dnf -y install \
|
||||
librbd-devel \
|
||||
&& dnf -y update \
|
||||
&& true
|
||||
|
||||
WORKDIR "/go/src/github.com/ceph/ceph-csi"
|
||||
|
Loading…
Reference in New Issue
Block a user