Skip to content

Commit

Permalink
Merge pull request #1 from PaulGarneau/master
Browse files Browse the repository at this point in the history
feat(rpm): add consul rpms [AB#80688]
  • Loading branch information
PaulGarneau authored Apr 13, 2020
2 parents 97c2e5e + 42803c1 commit 096bcac
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 14 deletions.
37 changes: 25 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,29 @@

version: '3'
services:
centos6:
build:
context: .
dockerfile: ./docker/centos6/Dockerfile
volumes:
- ./RPMS:/RPMS
centos6:
environment:
- RPMVER
build:
context: .
dockerfile: ./docker/centos6/Dockerfile
volumes:
- ../centos6:/RPMS

centos7:
build:
context: .
dockerfile: ./docker/centos7/Dockerfile
volumes:
- ./RPMS:/RPMS
centos7:
environment:
- RPMVER
build:
context: .
dockerfile: ./docker/centos7/Dockerfile
volumes:
- ../centos7:/RPMS

amzn2018:
environment:
- RPMVER
build:
context: .
dockerfile: ./docker/centos7/Dockerfile
volumes:
- ../amzn2018:/RPMS
16 changes: 16 additions & 0 deletions docker/amzn2018/Dockerfile
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
4 changes: 3 additions & 1 deletion docker/centos6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM centos:centos6
MAINTAINER Sebastien Le Digabel "sledigabel@gmail.com"

ENV RPMVER 1.7.2

RUN yum update -y
RUN yum install -y rpmdevtools mock

Expand All @@ -11,4 +13,4 @@ RUN ln -s /root/rpmbuild/RPMS /RPMS

VOLUME ["/RPMS"]

CMD set -x && cd /root && spectool -g -R rpmbuild/SPECS/consul.spec && rpmbuild -ba rpmbuild/SPECS/consul.spec
CMD set -x && cd /root && spectool --define "_version ${RPMVER}" -g -R rpmbuild/SPECS/consul.spec && rpmbuild --define "_version ${RPMVER}" -ba rpmbuild/SPECS/consul.spec
4 changes: 3 additions & 1 deletion docker/centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM centos:centos7
MAINTAINER Sebastien Le Digabel "sledigabel@gmail.com"

ENV RPMVER 1.7.2

RUN yum update -y
RUN yum install -y rpmdevtools mock

Expand All @@ -11,4 +13,4 @@ RUN ln -s /root/rpmbuild/RPMS /RPMS

VOLUME ["/RPMS"]

CMD set -x && cd /root && spectool -g -R rpmbuild/SPECS/consul.spec && rpmbuild -ba rpmbuild/SPECS/consul.spec
CMD set -x && cd /root && spectool --define "_version ${RPMVER}" -g -R rpmbuild/SPECS/consul.spec && rpmbuild --define "_version ${RPMVER}" -ba rpmbuild/SPECS/consul.spec

0 comments on commit 096bcac

Please sign in to comment.