-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux: add Docker build scripts for CentOS6.
- Loading branch information
Neil Mckee
authored and
Neil Mckee
committed
Jan 13, 2017
1 parent
22a4f9b
commit 3f720fa
Showing
4 changed files
with
28 additions
and
2 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,14 @@ | ||
FROM centos:6 | ||
RUN echo "UPDATE" && yum -y update | ||
RUN echo "DEVTOOLS" && yum -y groupinstall "Development Tools" | ||
RUN echo "EXTRAS" && yum -y install \ | ||
git \ | ||
libpcap-devel \ | ||
libvirt-devel \ | ||
libnfnetlink-devel \ | ||
libxml2-devel \ | ||
rpm-build \ | ||
dbus-devel | ||
RUN mkdir /packages && chown 777 /packages | ||
COPY build_hsflowd /root/build_hsflowd | ||
ENTRYPOINT ["/root/build_hsflowd"] |
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 @@ | ||
#!/bin/bash | ||
echo "build_hsflowd on platform: $1" | ||
|
||
git clone https://github.com/sflow/host-sflow \ | ||
&& cd host-sflow \ | ||
&& make rpm FEATURES="ULOG NFLOG PCAP DOCKER KVM OVS DBUS" | ||
|
||
for rpm in `ls *.rpm`; do cp "$rpm" "/packages/${rpm/hsflowd/hsflowd-$1}"; done | ||
echo "" | ||
echo "files in /packages:" | ||
ls -l /packages | ||
|
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