forked from machine-drivers/docker-machine-kvm
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a Containerfile.rpmbuild file in order to test the new spec file in a centos container.
- Loading branch information
1 parent
ba106f5
commit 47e644b
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM registry.centos.org/centos | ||
WORKDIR $APP_ROOT/src | ||
RUN yum -y install git-core rpm-build dnf-plugins-core 'dnf-command(builddep)' | ||
COPY . . | ||
RUN mkdir -p ~/rpmbuild/SOURCES/ && \ | ||
export VERSION=$(rpmspec -q --qf %{Version} --srpm crc-driver-libvirt.spec) && \ | ||
git archive --format=tar --prefix=machine-driver-libvirt-${VERSION}/ HEAD | gzip >~/rpmbuild/SOURCES/machine-driver-libvirt-${VERSION}.tar.gz | ||
RUN yum config-manager --set-enabled powertools && \ | ||
yum -y builddep crc-driver-libvirt.spec && \ | ||
rpmbuild -bb -v crc-driver-libvirt.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters