Created
February 13, 2016 17:43
-
-
Save rtucker/3d3f07b79afba9da10a8 to your computer and use it in GitHub Desktop.
Nuand/bladeRF issue 454 reproduction 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
# docker build --tag="bladerf-issue454" . | |
# docker run -i -t --rm bladerf-issue454 | |
FROM ubuntu:wily | |
MAINTAINER Ryan Tucker <docker@ryantucker.us> | |
# Resynchronize the package index files | |
RUN apt-get update | |
RUN apt-get -y dist-upgrade | |
# Install the add-apt-repository command | |
RUN apt-get -y install software-properties-common | |
# Activate the PPA | |
RUN add-apt-repository -y ppa:bladerf/bladerf | |
RUN apt-get update | |
# Install the stuff | |
RUN apt-get -y install bladerf libbladerf-dev bladerf-firmware-fx3 bladerf-fpga-hostedx40 | |
# Create a script | |
RUN echo "echo \"break the md5sum\" >> /usr/share/Nuand/bladeRF/hostedx40.rbf" > /tmp/reproduce.bash | |
RUN echo "echo \"127.0.1.1 www.nuand.com\" >> /etc/hosts" >> /tmp/reproduce.bash | |
RUN echo "dpkg-reconfigure bladerf-fpga-hostedx40" >> /tmp/reproduce.bash | |
RUN echo "ls -l /usr/share/Nuand/bladeRF" >> /tmp/reproduce.bash | |
RUN echo "[ -s /usr/share/Nuand/bladeRF/hostedx40.rbf ] || echo \"BAD: THE FILE WAS CLOBBERED\"" >> /tmp/reproduce.bash | |
# Reproduce it... if /usr/share/Nuand/bladeRF/hostedx40.rbf is zero-length, | |
# we've had the problem. | |
CMD ["bash", "/tmp/reproduce.bash"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
change "ppa:bladerf/bladerf" to "ppa:bladerf/bladerf-snapshots" to test snapshot builds