使用外部插件為Gnuradio構建Docker
Docker的意圖是:
- 為了允許Gnuradio運行時穩定的環境。
- 為了允許用戶一種簡單的方法來構建Gnuradio OTT模塊而不弄亂其日常系統。
- 為了允許OTT模塊開發人員從先前版本的Gnuradio移植時一個簡單的環境。
用途
- 使用Ubuntu 24.04作為基礎。
- gnuradio 3.10(來自Ubuntu Repo)
測試的SDR HW
- hackrf一個。
在Ubuntu 24.04軟件包中,仍應適用於啟用OSMOCOM的所有驅動程序。
目前已編譯Gnuradio模塊
- gr-lora_sdr(https://github.com/tapparelj/gr-lora_sdr)
- gr-satellites(https://github.com/daniestevez/gr-satellites)
- gr-adapt(https://github.com/karel/gr-adapt)
- GR-Inspector(https://github.com/radioconda/gr-inspector)
- gr-difi(https://github.com/difi-consortium/gr-difi.git)
- gr-satnogs(https://gitlab.com/librespacefoundation/satnogs/gr-satnogs/-/tree/gnuradio-3.10?ref_type=heads)
- gr-ieee802-15-4(https://github.com/bastibl/gr-ieee802-15-4.git)
- gr-iridium(https://github.com/muccc/gr-iridium.git)
(隨時發送任何添加的公關)
來自Ubuntu Repo中的OTT模塊
- GR-Air-Modes
- GR-Fosphor
- gr-funcube
- GR-GSM
- gr-hpsdr
- gr-iqbal
- gr-limesdr
- gr-osmosdr
- Gr-Radar
- GR-RDS
Dockerfiles
- Dockerfile-ubuntu-base-Ubuntu基礎和要求
- dockerfile-sdr-apps-來自Ubuntu-Repo的SDR相關軟件包。
- dockerfile-custom-builds- gnuradio組件的源代碼構建。
構建Docker-image
$ ./docker_build.sh
運行圖像
$ ./docker_run.sh
設置模塊路徑
在開始Gnuradio-Companion之前,必須在目前手動設置模塊路徑。
$ Export PythonPath =/usr/lib/python3.12/dist-packages:/usr/lib/python3.12/site-packages:$ pythonpath
共享文件夾。
- 在主機上創建 /home /gnuradio,並將其作為容器和主機之間的共享存儲。允許在構建/會話之間保存gnuradio設置等。
- AS /HOME /GNURADIO已設置為共享,如果您更新“ DockerFile-Custom-Builds”,並將UID設置為與普通用戶相同的UID,則可以使生活更輕鬆。
托多的
- github動作以構建Docker圖像。
- gnuradio示例
- 某種類型的設置可以運行網絡訪問的內容,例如https://github.com/gnuradio/gr-bokehgui
- 將要包含在Docker-image中的內容拆分,並使每個源代碼模塊安裝其自己的依賴項。