4ce0a06ed5
From Vagrantfile: It's just easier to have ssh set up as root from the start so that tests don't need to sudo, which can sometimes cause issues. If we need to test any unprivileged things, we can still just sudo back into the vagrant user. Closes: #344 Approved by: cgwalters
22 lines
652 B
Makefile
22 lines
652 B
Makefile
all:
|
|
echo "Targets: buildimg build install"
|
|
|
|
BUILDER_ARGS = sudo /usr/bin/docker run --rm -ti --privileged -v /var/roothome:/root
|
|
BUILDER_IMG = rpm-ostree-builder
|
|
|
|
BUILDER_RUN = $(BUILDER_ARGS) $(BUILDER_IMG)
|
|
|
|
buildimg:
|
|
sudo docker build -t $(BUILDER_IMG) -f Dockerfile.builder .
|
|
|
|
build:
|
|
$(BUILDER_RUN) ./autogen.sh --prefix=/usr --libdir=/usr/lib64
|
|
$(BUILDER_RUN) sh -c 'make clean && make -j 4'
|
|
|
|
install: build
|
|
sudo sh checkout.sh
|
|
$(BUILDER_ARGS) -v /etc:/host/etc \
|
|
-v /ostree/repo/tmp/vmcheck.ro/usr:/host/usr \
|
|
$(BUILDER_IMG) sudo make install DESTDIR=/host
|
|
sudo VERSION=$(VERSION) sh commit_and_deploy.sh
|