-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile, RPM upload to package cloud
- Loading branch information
William GARCIA
committed
Jan 30, 2016
1 parent
48056ac
commit 0682a5a
Showing
6 changed files
with
58 additions
and
53 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 |
---|---|---|
@@ -1,3 +1 @@ | ||
dist | ||
dpkg* | ||
.vagrant | ||
*.rpm |
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,13 @@ | ||
FROM centos:6 | ||
|
||
MAINTAINER William GARCIA <[email protected]> | ||
|
||
RUN yum -y update && yum -y install xz rpm-build yum-utils wget tar gcc ncurses-devel | ||
|
||
ADD ./entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
WORKDIR /root | ||
VOLUME /root | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] |
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 was deleted.
Oops, something went wrong.
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,32 @@ | ||
#!/bin/bash | ||
|
||
set -o xtrace | ||
set -o errexit | ||
set -o pipefail | ||
|
||
readonly NAME=start-stop-daemon | ||
readonly VERSION=$(grep Version: "/root/build/$NAME.spec" | tr -s " "| cut -d " " -f 2) | ||
readonly PKG_SOURCE="http://http.debian.net/debian/pool/main/d/dpkg/dpkg_$VERSION.tar.xz" | ||
|
||
cd /root | ||
|
||
wget $PKG_SOURCE | ||
tar -xf dpkg_$VERSION.tar.xz | ||
tar -czf dpkg_$VERSION.tar.gz dpkg-$VERSION/ | ||
mkdir -p dist/{BUILD,RPMS,SPECS,SOURCES,SRPMS,install} | ||
mv dpkg_$VERSION.tar.gz dist/SOURCES | ||
cp /root/build/start-stop-daemon.spec /root/ | ||
|
||
cd /root/build/ | ||
|
||
chown -R `stat -c "%u:%g" .` . | ||
yum-builddep -y -t start-stop-daemon.spec | ||
ls -al /root/ | ||
|
||
rpmbuild -ba \ | ||
--define "_topdir /root/dist" \ | ||
--define "buildroot /root/dist/BUILDROOT" \ | ||
--clean \ | ||
/root/start-stop-daemon.spec | ||
|
||
cp /root/dist/RPMS/x86_64/* . |