Skip to content

Instantly share code, notes, and snippets.

@rtucker
Created February 13, 2016 17:43
Show Gist options
  • Save rtucker/3d3f07b79afba9da10a8 to your computer and use it in GitHub Desktop.
Save rtucker/3d3f07b79afba9da10a8 to your computer and use it in GitHub Desktop.
Nuand/bladeRF issue 454 reproduction Dockerfile
# 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"]
@rtucker
Copy link
Author

rtucker commented Feb 14, 2016

change "ppa:bladerf/bladerf" to "ppa:bladerf/bladerf-snapshots" to test snapshot builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment