forked from open-power/secvarctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Eric Richter <[email protected]>
- Loading branch information
1 parent
1e6a07c
commit e848a38
Showing
3 changed files
with
65 additions
and
7 deletions.
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,4 @@ | ||
FROM almalinux:8 | ||
#RUN yum -y update && yum clean all | ||
RUN yum -y install cmake openssl openssl-devel gcc rpm-build | ||
|
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,22 @@ | ||
#!/bin/bash | ||
|
||
VERSION=1.0 | ||
|
||
if [ -z ${ARCH}]; then | ||
echo "ARCH must be set to a valid rpm build architecture" | ||
exit | ||
fi | ||
|
||
# Generate source tarball | ||
ln -s . secvarctl-${VERSION} | ||
tar czf secvarctl-${VERSION}.tar.gz secvarctl-${VERSION}.tar.gz | ||
mkdir -p /root/rpmbuild/SOURCES | ||
|
||
# Run Build | ||
rpmbuild -ba secvarctl.spec | ||
|
||
# Move generated RPMs out of container | ||
mkdir -p rpms | ||
cp /root/rpmbuild/RPMS/${ARCH}/*.rpm rpms/ | ||
cp /root/rpmbuild/SRPMS/*.rpm rpms/ | ||
# Note: srpm s the same for all arches, so really only the first to complete needs to be done |