Skip to content

Commit

Permalink
Move waterfall.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Dec 17, 2023
1 parent 8d247d2 commit 11f0025
Show file tree
Hide file tree
Showing 10 changed files with 1,206 additions and 11 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,20 @@ jobs:
cd gamutrflib && \
poetry install --no-interaction && \
cd .. && \
cd gamutrfwaterfall && \
poetry install --no-interaction && \
cd .. && \
poetry install --no-interaction && \
poetry install --no-interaction -C utils/mavlink-api && \
sudo dpkg -r --force-depends python3-numpy
- name: Code Quality - Black
run: |
poetry run black augment --check
poetry run black gamutrf --check
poetry run black utils --check
poetry run black gamutrflib --check
poetry run black gamutrfwaterfall --check
poetry run black torchserve --check
poetry run black augment --check
poetry run black utils --check
- name: Code Quality - Pylint
run: |
poetry run pylint --fail-under=6 gamutrf/
Expand All @@ -71,12 +76,14 @@ jobs:
sudo pip3 install pytype=="$(grep -E "pytype = " pyproject.toml | grep -Eo "[0-9\.]+")" && \
sudo pip3 install -U pyserial && \
pytype -k gamutrf/ && \
pytype -k gamutrflib/ && \
pytype -k gamutrfwaterfall/ && \
pytype -k utils/mavlink-api
- name: Test with pytest
env:
PYTHONPATH: /usr/local/lib/python3.10/dist-packages:/usr/lib/python3/dist-packages
run: |
poetry run pytest --cov-report term-missing --cov=. --cov-report=xml tests/
poetry run pytest --cov-report term-missing --cov=. --cov-report=xml tests/ gamutrfwaterfall/tests
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ jobs:
docker build -f docker/Dockerfile.driver docker -t iqtlabs/gamutrf-driver:latest
docker build -f docker/Dockerfile.uhd-sr docker -t iqtlabs/gamutrf-uhd-sr:latest
docker build -f docker/Dockerfile.base docker -t iqtlabs/gamutrf-base:latest
docker build -f docker/Dockerfile.waterfall docker -t iqtlabs/gamutrf-waterfall:latest
docker build -f Dockerfile . -t iqtlabs/gamutrf:latest
docker build -f docker/Dockerfile.torchsig . -t iqtlabs/gamutrf-torchsig:latest
docker run -t iqtlabs/gamutrf:latest gamutrf-compress_dirs --help
docker run -t iqtlabs/gamutrf:latest gamutrf-offline --help
docker run -t iqtlabs/gamutrf:latest gamutrf-scan --help
docker run -t iqtlabs/gamutrf:latest gamutrf-sigfinder --help
docker run -t iqtlabs/gamutrf:latest gamutrf-waterfall --help
docker run -t iqtlabs/gamutrf:latest gamutrf-worker --help
docker run -t iqtlabs/gamutrf-waterfall:latest gamutrf-waterfall --help
sudo apt-get update && sudo apt-get install -qy python3-pip
docker compose -f orchestrator.yml -f worker.yml -f docker/monitoring.yml -f specgram.yml build
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,6 @@ tests/gamutrf_test_dir/*.tar*
*.DS_Store

\#*
torchserve/*mar
torchserve/*txt
torchserve/*pt
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ RUN apt-get update && apt-get install --no-install-recommends -y -q \
libev-dev \
python3 \
python3-dev \
python3-pyqt5 \
python3-pyqt5.sip \
python3-pip && \
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2 && \
poetry config virtualenvs.create false && \
Expand Down Expand Up @@ -75,10 +73,7 @@ RUN if [ "$(arch)" = "x86_64" ] ; then \
libzmq5 \
mesa-vulkan-drivers \
python3 \
python3-pyqt5 \
python3-pyqt5.sip \
python3-zmq \
sox \
uhd-host \
wget \
zstd && \
Expand Down
43 changes: 43 additions & 0 deletions docker/Dockerfile.waterfall
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# nosemgrep:github.workflows.config.dockerfile-source-not-pinned
FROM ubuntu:22.04 as installer
ENV DEBIAN_FRONTEND noninteractive
ENV PATH="${PATH}:/root/.local/bin"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && apt-get install --no-install-recommends -y -q \
ca-certificates \
curl \
gcc \
git \
libcairo2-dev \
libev-dev \
python3 \
python3-dev \
python3-pyqt5 \
python3-pyqt5.sip \
python3-pip && \
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2 && \
poetry config virtualenvs.create false
WORKDIR /gamutrflib
COPY gamutrflib /gamutrflib/
RUN poetry install --no-interaction --no-ansi --no-dev
WORKDIR /gamutrfwaterfall
COPY gamutrfwaterfall /gamutrfwaterfall/
RUN poetry install --no-interaction --no-ansi --no-dev

FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
ENV PATH="${PATH}:/root/.local/bin"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && apt-get install --no-install-recommends -y -q \
curl \
git \
libev4 \
libcairo2 \
python3 \
python3-pyqt5 \
python3-pyqt5.sip
COPY --from=installer /root/.local /root/.local
COPY --from=installer /usr/local /usr/local
COPY --from=installer /gamutrflib /gamutrflib
COPY --from=installer /gamutrfwaterfall /gamutrfwaterfall
CMD ["gamutrf-waterfall", "--help"]
File renamed without changes.
Loading

0 comments on commit 11f0025

Please sign in to comment.