Skip to content

Commit

Permalink
Add cleanup make targets to EL9 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Feb 2, 2024
1 parent be7371b commit 53d71cb
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rpms/EL9/fits/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,13 @@ rpm-clean:
@echo "==> Cleaning up previous RPMs builds."
@rm -rf $(RPM_TOPDIR)

cleanup:
@echo "==> Remove artifacts created as root."
@docker run -i \
--rm \
--volume "$(shell pwd):$(DOCKER_VOLUME)" \
$(DOCKER_IMAGE) \
bash -c "rm -rf /src/*.rpm"

rpm-test:
@docker run --rm --volume="$(shell pwd):$(DOCKER_VOLUME)" rockylinux:9 bash -c "yum install -y epel-release && yum localinstall -y --nogpgcheck $(DOCKER_VOLUME)/$(NAME)-$(VERSION)*.rpm"
8 changes: 8 additions & 0 deletions rpms/EL9/jhove/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,13 @@ rpm-clean:
@echo "==> Cleaning up previous RPMs builds."
@rm -rf $(RPM_TOPDIR)

cleanup:
@echo "==> Remove artifacts created as root."
@docker run -i \
--rm \
--volume "$(shell pwd):$(DOCKER_VOLUME)" \
$(DOCKER_IMAGE) \
bash -c "rm -rf /src/*.rpm"

rpm-test:
@docker run --rm --volume="$(shell pwd):$(DOCKER_VOLUME)" rockylinux:9 bash -c "yum install -y epel-release && yum localinstall -y --nogpgcheck $(DOCKER_VOLUME)/$(NAME)-$(VERSION)*.rpm"
8 changes: 8 additions & 0 deletions rpms/EL9/nailgun/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,13 @@ rpm-clean:
@echo "==> Cleaning up previous RPMs builds."
@rm -rf $(RPM_TOPDIR)

cleanup:
@echo "==> Remove artifacts created as root."
@docker run -i \
--rm \
--volume "$(shell pwd):$(DOCKER_VOLUME)" \
$(DOCKER_IMAGE) \
bash -c "rm -rf /src/*.rpm"

rpm-test:
@docker run --rm --volume="$(shell pwd):$(DOCKER_VOLUME)" rockylinux:9 bash -c "yum install -y epel-release && yum localinstall -y --nogpgcheck $(DOCKER_VOLUME)/$(NAME)-$(VERSION)*.rpm"
8 changes: 8 additions & 0 deletions rpms/EL9/siegfried/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,13 @@ rpm-clean:
@echo "==> Cleaning up previous RPMs builds."
@rm -rf $(RPM_TOPDIR)

cleanup:
@echo "==> Remove artifacts created as root."
@docker run -i \
--rm \
--volume "$(shell pwd):$(DOCKER_VOLUME)" \
$(DOCKER_IMAGE) \
bash -c "rm -rf /src/*.rpm"

rpm-test:
docker run --rm --volume="$(shell pwd):$(DOCKER_VOLUME)" rockylinux:9 bash -c "rpm -i $(DOCKER_VOLUME)/$(NAME)-$(VERSION)*.rpm && sf -version"
8 changes: 8 additions & 0 deletions rpms/EL9/temporal-ui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,13 @@ rpm-clean:
@echo "==> Cleaning up previous RPMs builds."
@rm -rf $(RPM_TOPDIR)

cleanup:
@echo "==> Remove artifacts created as root."
@docker run -i \
--rm \
--volume "$(shell pwd):$(DOCKER_VOLUME)" \
$(DOCKER_IMAGE) \
bash -c "rm -rf /src/*.rpm"

rpm-test:
docker run --rm --volume="$(shell pwd):$(DOCKER_VOLUME)" rockylinux:9 bash -c "rpm -i $(DOCKER_VOLUME)/$(NAME)-$(VERSION)*.rpm && sf -version"
8 changes: 8 additions & 0 deletions rpms/EL9/temporal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,13 @@ rpm-clean:
@echo "==> Cleaning up previous RPMs builds."
@rm -rf $(RPM_TOPDIR)

cleanup:
@echo "==> Remove artifacts created as root."
@docker run -i \
--rm \
--volume "$(shell pwd):$(DOCKER_VOLUME)" \
$(DOCKER_IMAGE) \
bash -c "rm -rf /src/*.rpm"

rpm-test:
docker run --rm --volume="$(shell pwd):$(DOCKER_VOLUME)" rockylinux:9 bash -c "rpm -i $(DOCKER_VOLUME)/$(NAME)-$(VERSION)*.rpm && sf -version"

0 comments on commit 53d71cb

Please sign in to comment.