Skip to content

Docker container (working also on windows 7)

iz4tow edited this page Aug 22, 2022 · 6 revisions

PRE-REQUISITES

WINDOWS 7

You need to install Docker toolbox for windows, you can download it from here: Download

WINDOWS 10 (but WSL v.2 is reccomended)

You need to install Docker for Windows from here: Download (Working only for Windows 10 and later, NOT for 8/7!)

Ubuntu 18.04 and later

  • sudo apt-get update
  • sudo apt-get install -y ca-certificates curl gnupg lsb-release
  • sudo mkdir -p /etc/apt/keyrings
  • curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
  • echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  • sudo apt-get update && sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

INSTALLATION

Here the Dockerfile do create the container.

###BEGIN OF Dockerfile###

FROM ubuntu:20.04

RUN apt update

RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y apt install -y git make cmake socat libitpp-dev libsndfile1-dev portaudio19-dev gcc g++ sox librtlsdr-dev libncurses5-dev libncursesw5-dev pulseaudio libpulse-dev

RUN git clone /~https://github.com/lwvmobile/mbelib

RUN cd mbelib && mkdir build && cd build && cmake .. && make && make install && cp libmbe* /usr/lib

RUN git clone /~https://github.com/lwvmobile/dsd-fme

RUN cd dsd && mkdir build && cd build && cmake .. && make && make install

RUN DEBIAN_FRONTEND=noninteractive apt install -y sox

###END OF Dockerfile###

  • mkdir IN && mkdir OUT
  • docker build -t dsd-fme .
  • docker run --name dsd1 -v $(pwd)/:/IN -v $(pwd)/:/OUT