Skip to content

Commit

Permalink
Add Docker build for ubuntu18
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Oct 18, 2019
1 parent 8ea9c4e commit 8ca29f6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker_build/ubuntu18/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git-all \
libpcap-dev \
libvirt-dev \
libnfnetlink-dev \
libxml2-dev \
libssl-dev \
libdbus-1-dev
RUN mkdir /packages && chown 777 /packages
COPY build_hsflowd /root/build_hsflowd
ENTRYPOINT ["/root/build_hsflowd"]



12 changes: 12 additions & 0 deletions docker_build/ubuntu18/build_hsflowd
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 deb FEATURES="NFLOG PCAP TCP DOCKER KVM OVS DBUS SYSTEMD"

for deb in `ls *.deb`; do cp "$deb" "/packages/${deb/hsflowd/hsflowd-$1}"; done
echo ""
echo "files in /packages:"
ls -l /packages

0 comments on commit 8ca29f6

Please sign in to comment.