mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
move Dockerfiles, change paths in docker-compose.yaml, change default config for paths in Dockerfile, add Dockerfile for build,
This commit is contained in:
parent
d8e8662c7d
commit
6d3fe8499a
31
Dockerfile
Executable file
31
Dockerfile
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
FROM alpine:3.10 AS build-base
|
||||
RUN apk add git make cmake g++ libusb-dev libpulse
|
||||
|
||||
FROM build-base AS rtl_fm
|
||||
ARG RTL_SDR_VERSION=0.6.0
|
||||
RUN git clone --depth 1 --branch ${RTL_SDR_VERSION} https://github.com/osmocom/rtl-sdr.git /opt/rtl_sdr
|
||||
WORKDIR /opt/rtl_sdr/build
|
||||
RUN cmake .. && make
|
||||
|
||||
FROM build-base AS multimon
|
||||
ARG MULTIMON_VERSION=1.1.8
|
||||
RUN git clone --depth 1 --branch ${MULTIMON_VERSION} https://github.com/EliasOenal/multimon-ng.git /opt/multimon
|
||||
WORKDIR /opt/multimon/build
|
||||
RUN cmake .. && make
|
||||
|
||||
FROM alpine:3.10 AS boswatch
|
||||
ARG BW_VERSION=develop
|
||||
RUN apk add git && \
|
||||
git clone --depth 1 --branch ${BW_VERSION} https://github.com/BOSWatch/BW3-Core.git /opt/boswatch
|
||||
|
||||
|
||||
FROM python:3.6-alpine AS runner
|
||||
LABEL maintainer="bastian@schroll-software.de"
|
||||
|
||||
# for RTL for MM
|
||||
RUN apk add libusb-dev libpulse && \
|
||||
pip3 install pyyaml
|
||||
|
||||
COPY --from=boswatch /opt/boswatch/ /opt/boswatch/
|
||||
COPY --from=multimon /opt/multimon/build/multimon-ng /opt/multimon/multimon-ng
|
||||
COPY --from=rtl_fm /opt/rtl_sdr/build/src/ /opt/rtl_sdr/
|
||||
|
|
@ -2,14 +2,14 @@ version: '3'
|
|||
services:
|
||||
client:
|
||||
build:
|
||||
dockerfile: docker/dockerfiles/Client.Dockerfile
|
||||
dockerfile: docker/localdev/Client.Dockerfile
|
||||
context: .
|
||||
command: python /opt/boswatch/bw_client.py -c client.yaml
|
||||
devices:
|
||||
- "/dev/bus/usb"
|
||||
server:
|
||||
build:
|
||||
dockerfile: docker/dockerfiles/Server.Dockerfile
|
||||
dockerfile: docker/localdev/Server.Dockerfile
|
||||
context: .
|
||||
command: python /opt/boswatch/bw_server.py -c server.yaml
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue