File tree Expand file tree Collapse file tree 5 files changed +61
-0
lines changed
Expand file tree Collapse file tree 5 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM debian:buster
2+ MAINTAINER sa2kng <knegge@gmail.com>
3+
4+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install wget gnupg && rm -rf /var/lib/apt/lists/*
5+ RUN echo deb http://download.opensuse.org/repositories/home:/librespace:/satnogs/Debian_10/ ./> /etc/apt/sources.list.d/satnogs.list
6+ RUN wget -qO - http://download.opensuse.org/repositories/home:/librespace:/satnogs/Debian_10/Release.key | DEBIAN_FRONTEND=noninteractive apt-key --keyring /etc/apt/trusted.gpg.d/satnogs.gpg add -
7+
8+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install supervisor software-properties-common libhamlib-utils vorbis-tools unzip git python3-pip python3-urllib3 python3-certifi python3-chardet python3-cycler python3-decorator python3-idna python3-kiwisolver python3-pyparsing python3-tz python3-tzlocal python3-libhamlib2 rtl-sdr satnogs-flowgraphs gr-soapy gr-satnogs && rm -rf /var/lib/apt/lists/*
9+ # RUN pip3 install satnogs-client
10+
11+ RUN groupadd -g 995 satnogs && useradd -g satnogs -G dialout,plugdev -m -d /var/lib/satnogs -s /bin/false -u 999 satnogs
12+ ADD supervisord.conf /etc/supervisor/supervisord.conf
13+ # RUN echo "#!/bin/bash\n/usr/bin/rigctld -T 127.0.0.1 -m 1 &\n/usr/local/bin/satnogs-client" >> /usr/local/bin/satnogs-run.sh && chmod 0755 /usr/local/bin/satnogs-run.sh
14+ RUN echo "#!/bin/bash\n /usr/bin/rigctld -T 127.0.0.1 -m 1 &\n /var/lib/satnogs/.local/bin/satnogs-client" >> /usr/local/bin/satnogs-run.sh && chmod 0755 /usr/local/bin/satnogs-run.sh
15+ WORKDIR /var/lib/satnogs
16+ USER satnogs
17+ RUN pip3 install satnogs-client
18+ RUN mkdir -p /var/lib/satnogs/.gnuradio/prefs/ && echo -n "gr::vmcircbuf_mmap_shm_open_factory" > /var/lib/satnogs/.gnuradio/prefs/vmcircbuf_default_factory
19+ # RUN volk_profile
20+
21+ # choose to simply fork the rigctld in background and satnogs-client in foreground, or use supervisord for the two
22+ CMD ["/usr/bin/supervisord" ,"-c/etc/supervisor/supervisord.conf" ]
23+ # CMD ["/usr/local/bin/satnogs-run.sh"]
24+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ docker build -t satnogs-client:latest .
3+ # --no-cache
4+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ docker run --name satnogs-node --device=/dev/bus/usb/ --tmpfs /tmp -v $( pwd) /satnogs-config:/var/lib/satnogs/.env -it satnogs-client:latest
Original file line number Diff line number Diff line change 1+ SATNOGS_API_TOKEN=""
2+ SATNOGS_STATION_ID=""
3+ SATNOGS_STATION_LAT=""
4+ SATNOGS_STATION_LON=""
5+ SATNOGS_STATION_ELEV=""
6+ SATNOGS_SOAPY_RX_DEVICE="driver=rtlsdr"
7+ SATNOGS_RX_SAMP_RATE="1.024e6"
8+ SATNOGS_PPM_ERROR="0"
9+ SATNOGS_RF_GAIN="20.7"
10+ SATNOGS_ANTENNA="RX"
11+ SATNOGS_LOG_LEVEL="INFO"
12+
Original file line number Diff line number Diff line change 1+ [supervisord]
2+ nodaemon=true
3+ user=satnogs
4+ loglevel=debug
5+
6+ [program:satnogs]
7+ #command=/usr/local/bin/satnogs-client
8+ command=/var/lib/satnogs/.local/bin/satnogs-client
9+ #stdout_logfile=/dev/fd/1
10+ #stdout_logfile_maxbytes=0
11+ #redirect_stderr=true
12+ autostart=true
13+ autorestart=true
14+
15+ [program:rigctld]
16+ command=/usr/bin/rigctld -T 127.0.0.1 -m 1
17+ autostart=true
18+ autorestart=true
19+
You can’t perform that action at this time.
0 commit comments