-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lft and iperf in containers for emulation testing
- Loading branch information
Showing
4 changed files
with
20 additions
and
4 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,2 +1,5 @@ | ||
klint-*/* | ||
!klint-*/Dockerfile | ||
linux-router/* | ||
!linux-router/Dockerfile | ||
!linux-router/*.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,20 @@ LABEL org.opencontainers.image.authors="[email protected]" | |
|
||
COPY start.sh /start.sh | ||
|
||
RUN apk add --upgrade --no-cache iproute2 && \ | ||
RUN apk add --upgrade --no-cache iproute2 iperf3 && \ | ||
chmod +x /start.sh | ||
|
||
# Build lft | ||
# http://pwhois.org/lft/ | ||
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=lft | ||
RUN apk add --upgrade --no-cache libpcap-dev alpine-sdk gcc && \ | ||
curl -o lft-3.91.tar.gz -L http://pwhois.org/dl/index.who?file=lft-3.91.tar.gz && \ | ||
tar xf lft-3.91.tar.gz && \ | ||
cd lft-3.91 && \ | ||
./configure --prefix=/ && \ | ||
make && \ | ||
make install | ||
|
||
RUN rm -rf /lft-3.91.tar.gz /lft-3.91 | ||
|
||
ENTRYPOINT ["/start.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 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