Github Config for RTL-SDR Streaming on Linux with Docker

Status
Not open for further replies.

mzac

Newbie
Joined
Jul 8, 2008
Messages
2
Reaction score
0
Location
Saint-Constant, Quebec
Not sure if anyone else has posted anything like this but I had to re-build my streaming Raspberry Pi today so I decided to dockerize the setup so it would be easier if I had to set it up again.

Please feel free to try it out and submit any issues or PRs on Github

This works great on my old Raspberry Pi 2!

mzac/docker-rtl_sdr-broadcastify

Sample of the Dockerfile:
Code:
FROM ubuntu:latest

MAINTAINER Zachary McGibbon https://github.com/mzac

# Update package cache, install packages, clean cache
RUN apt update \
    && apt -y upgrade \
    && apt install -y bash git cmake libusb-1.0-0-dev build-essential lame libmp3lame-dev libvorbis-dev libshout3-dev ezstream \
    && apt clean

# Create directory for rtl-sdr code
RUN mkdir -p /opt/rtl-sdr
RUN git clone https://github.com/keenerd/rtl-sdr /opt/rtl-sdr
RUN mkdir -p /opt/rtl-sdr/build

WORKDIR /opt/rtl-sdr/build

# Build rtl-sdr code
RUN cmake ../
RUN make
RUN make install
RUN ldconfig

# Copy ezstream_bcfy.xml config
ADD ezstream_bcfy.xml /etc/ezstream_bcfy.xml

# Create run scrip tir and copy run.sh
RUN mkdir /opt/broadcastify
ADD run.sh /opt/broadcastify
RUN chmod +x /opt/broadcastify/run.sh

WORKDIR /opt/broadcastify

CMD ["/opt/broadcastify/run.sh"]
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,650
Reaction score
184
Location
Massachusetts
Not sure if anyone else has posted anything like this but I had to re-build my streaming Raspberry Pi today so I decided to dockerize the setup so it would be easier if I had to set it up again.

Please feel free to try it out and submit any issues or PRs on Github

This works great on my old Raspberry Pi 2!

mzac/docker-rtl_sdr-broadcastify

Sample of the Dockerfile:
Code:
FROM ubuntu:latest

MAINTAINER Zachary McGibbon https://github.com/mzac

# Update package cache, install packages, clean cache
RUN apt update \
    && apt -y upgrade \
    && apt install -y bash git cmake libusb-1.0-0-dev build-essential lame libmp3lame-dev libvorbis-dev libshout3-dev ezstream \
    && apt clean

# Create directory for rtl-sdr code
RUN mkdir -p /opt/rtl-sdr
RUN git clone https://github.com/keenerd/rtl-sdr /opt/rtl-sdr
RUN mkdir -p /opt/rtl-sdr/build

WORKDIR /opt/rtl-sdr/build

# Build rtl-sdr code
RUN cmake ../
RUN make
RUN make install
RUN ldconfig

# Copy ezstream_bcfy.xml config
ADD ezstream_bcfy.xml /etc/ezstream_bcfy.xml

# Create run scrip tir and copy run.sh
RUN mkdir /opt/broadcastify
ADD run.sh /opt/broadcastify
RUN chmod +x /opt/broadcastify/run.sh

WORKDIR /opt/broadcastify

CMD ["/opt/broadcastify/run.sh"]
thanks for posting this. I am giving it a try. Stumbled through a couple little issues early on but now I am at this point:

pi@raspberrypi:/opt/docker-rtl_sdr-broadcastify $ docker build -t "docker-rtl_sdr-broadcastify:latest"

"docker build" requires exactly 1 argument.

See 'docker build --help'.



Usage: docker build [OPTIONS] PATH | URL | -



Build an image from a Dockerfile



Is there something amiss in the build command listed in your instructions? I copied and pasted it.
 

belvdr

Active Member
Premium Subscriber
Joined
Aug 2, 2013
Messages
2,577
Reaction score
1,660
You are correct, thanks. Never seen a line with a dot like that before.
The dot tells it place the image nto the current directory.
 
Status
Not open for further replies.
Top