-
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.
- Loading branch information
Harel Ben Attia
committed
Apr 5, 2017
1 parent
28f997d
commit c324cad
Showing
3 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker build -v `pwd`:/q -f dist/rpm-builder-Dockerfile |
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,12 @@ | ||
|
||
FROM centos:centos6 | ||
|
||
RUN yum install -y which curl gcc make rpm rpm-build | ||
|
||
RUN curl -sSL https://get.rvm.io | bash | ||
|
||
RUN /bin/bash -l -c "rvm install 2.4.1" && /bin/bash -l -c "gem install ronn" | ||
|
||
ENTRYPOINT "/bin/bash" | ||
|
||
|
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 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
d=`pwd` | ||
cid=`docker run -i -d -v ${d}:/q q-text-as-data-rpm-builder:0.1` | ||
|
||
function kill_container { | ||
tmp=`docker kill ${cid}` | ||
} | ||
trap kill_container EXIT | ||
|
||
sleep 1 | ||
docker exec -it ${cid} /bin/bash -i -c "/q/dist/create-rpm $1 $2" | ||
|
||
docker cp ${cid}:/q/dist/rpm_build_area/RPMS/noarch/q-text-as-data-1.6.0-1.el6.noarch.rpm ./ |