mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-24 23:30:20 +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
|
.PHONY: containerized-build containerized-test
|
||||||
containerized-build: .devel-container-id
|
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
|
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
|
$(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 \
|
librbd-devel \
|
||||||
&& dnf -y update \
|
&& dnf -y update \
|
||||||
&& true
|
&& true
|
||||||
|
|
||||||
|
WORKDIR "/go/src/github.com/ceph/ceph-csi"
|
||||||
|
Loading…
Reference in New Issue
Block a user