-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from PaulGarneau/master
feat(rpm): add consul rpms [AB#80688]
- Loading branch information
Showing
4 changed files
with
47 additions
and
14 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,16 @@ | ||
FROM amazonlinux:1 | ||
MAINTAINER Levels Beyond | ||
|
||
ENV RPMVER 1.7.2 | ||
|
||
RUN yum update -y | ||
RUN yum install -y rpmdevtools mock | ||
|
||
RUN cd /root && rpmdev-setuptree | ||
ADD SOURCES/* /root/rpmbuild/SOURCES/ | ||
ADD SPECS/* /root/rpmbuild/SPECS/ | ||
RUN ln -s /root/rpmbuild/RPMS /RPMS | ||
|
||
VOLUME ["/RPMS"] | ||
|
||
CMD set -x && cd /root && spectool --define "_version ${RPMVER}" -g -R rpmbuild/SPECS/consul.spec && rpmbuild --define "_version ${RPMVER}" -ba rpmbuild/SPECS/consul.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
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