├── README.md ├── Dockerfile ├── Makefile ├── LICENSE └── install-packages.sh /README.md: -------------------------------------------------------------------------------- 1 | 2 | # DEPRECATED: Please follow the [new repo](https://github.com/0xAF/openwebrxplus-docker-builder). 3 | 4 | 5 | ## openwebrxplus-softmbe-docker 6 | OpenWebRX+ with codecserver-softmbe (mbelib), enabling DMR, D-Star, YSF, FreeDV, DRM, NXDN and other Digital modes. 7 | 8 | ## Docker Hub 9 | Check the [Docker Hub](https://hub.docker.com/r/slechev/openwebrxplus-softmbe) page for the image. 10 | 11 | ## Install 12 | See the [info of the nightly image](https://hub.docker.com/r/slechev/openwebrxplus-nightly) and adapt it to this build. 13 | 14 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:bullseye-slim AS build 2 | COPY build-packages.sh / 3 | RUN /build-packages.sh 4 | 5 | ARG ARCH 6 | FROM slechev/openwebrxplus-nightly 7 | LABEL OpenWebRX+ (nightly) with Digital codecs (incl. DMR, D-STAR, YSF) and all receivers. 8 | 9 | COPY --from=build /deb /deb 10 | COPY install-packages.sh / 11 | RUN /install-packages.sh 12 | 13 | ENV S6_CMD_ARG0="/opt/openwebrx/docker/scripts/run.sh" 14 | # ENTRYPOINT ["/init"] 15 | 16 | WORKDIR /opt/openwebrx 17 | 18 | VOLUME /etc/openwebrx 19 | VOLUME /var/lib/openwebrx 20 | 21 | # CMD [] 22 | 23 | EXPOSE 8073 24 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | DATE=$(shell date +%F) 2 | USER=slechev 3 | IMAGE=openwebrxplus-softmbe 4 | 5 | all: 6 | docker buildx create --name owrxp-builder --driver docker-container --bootstrap --use --driver-opt network=host || true 7 | docker buildx build --push --pull --platform=linux/amd64,linux/arm64,linux/arm/v7 -t $(USER)/$(IMAGE):$(DATE) -t $(USER)/$(IMAGE) . 8 | docker buildx rm --keep-state owrxp-builder 9 | 10 | build: 11 | docker build --pull -t $(USER)/$(IMAGE):$(DATE) -t $(USER)/$(IMAGE) . 12 | 13 | run: 14 | @docker run --rm -h $(IMAGE) --name $(IMAGE) --device /dev/bus/usb -p 8073:8073 -v openwebrxplus-settings:/var/lib/openwebrx $(USER)/$(IMAGE) 15 | 16 | admin: 17 | @docker exec -it $(USER)/$(IMAGE) /usr/bin/openwebrx admin adduser af 18 | 19 | push: 20 | @docker push $(USER)/$(IMAGE):$(DATE) 21 | @docker push $(USER)/$(IMAGE) 22 | 23 | dev: 24 | @S6_CMD_ARG0=/bin/bash docker run -it --rm -p 8073:8073 --device /dev/bus/usb --name owrxp-build --entrypoint /bin/bash $(USER)/$(IMAGE) 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Stanislav Lechev [0xAF] 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /install-packages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -euxo pipefail 3 | export MAKEFLAGS="-j12" 4 | 5 | #echo "+ init..." 6 | #apt update 7 | #apt-get -y install --no-install-recommends wget gpg ca-certificates 8 | # 9 | #echo "+ Add repos and update..." 10 | #if [[ ! -f /etc/apt/trusted.gpg.d/openwebrx-plus.gpg ]]; then 11 | # wget -O - https://luarvique.github.io/ppa/openwebrx-plus.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/openwebrx-plus.gpg 12 | # echo "deb [signed-by=/etc/apt/trusted.gpg.d/openwebrx-plus.gpg] https://luarvique.github.io/ppa/debian ./" > /etc/apt/sources.list.d/openwebrx-plus.list 13 | # wget -O - https://repo.openwebrx.de/debian/key.gpg.txt | gpg --dearmor -o /usr/share/keyrings/openwebrx.gpg 14 | # echo "deb [signed-by=/usr/share/keyrings/openwebrx.gpg] https://repo.openwebrx.de/debian/ bullseye main" > /etc/apt/sources.list.d/openwebrx.list 15 | #fi 16 | #apt update 17 | 18 | dpkg -i /deb/libmbe1_1.3.0_*.deb 19 | 20 | 21 | echo "+ Install codecserver-softmbe..." 22 | dpkg -i /deb/libcodecserver_*.deb 23 | dpkg -i /deb/codecserver-driver-softmbe_0.0.1_*.deb 24 | rm -rf /deb 25 | 26 | # add the softmbe library to the codecserver config 27 | linklib=$(dpkg -L codecserver-driver-softmbe | grep libsoftmbe.so) 28 | ln -s $linklib /usr/local/lib/codecserver/ 29 | mkdir -p /usr/local/etc/codecserver 30 | #cat >> /etc/codecserver/codecserver.conf << _EOF_ 31 | cat >> /usr/local/etc/codecserver/codecserver.conf << _EOF_ 32 | 33 | # add softmbe 34 | [device:softmbe] 35 | driver=softmbe 36 | _EOF_ 37 | 38 | #mkdir -p /etc/services.d/codecserver 39 | #cat >> /etc/services.d/codecserver/run << _EOF_ 40 | ##!/usr/bin/execlineb -P 41 | #/usr/bin/codecserver 42 | #_EOF_ 43 | 44 | sed -i 's/set -euo pipefail/set -euo pipefail\ncd \/opt\/openwebrx/' /opt/openwebrx/docker/scripts/run.sh 45 | sed -i 's/set -euo pipefail/set -euo pipefail\ncd \/opt\/openwebrx/' /run.sh 46 | 47 | #echo "+ Clean..." 48 | #SUDO_FORCE_REMOVE=yes apt-get -y purge --autoremove $BUILD_PACKAGES 49 | #apt-get clean 50 | #rm -rf /var/lib/apt/lists/* 51 | #rm -rf /files 52 | --------------------------------------------------------------------------------