diff --git a/.env b/.env new file mode 100644 index 0000000..e28f441 --- /dev/null +++ b/.env @@ -0,0 +1,11 @@ +#rigctld settings +RIG_MODEL="" +RIG_DEVICE="" +RIGCTLD_ARGS="" +PTT_METHOD="" + +#direwolf settings +DIREWOLF_PORT= +ALSA_DEVICE= + + diff --git a/README.md b/README.md index e45ec4a..5110ca3 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,23 @@ a draft repo for making a containerized farpn node don't take this too seriously, this is just me messing around TODOs: +- implement build/run `rigctld` in a container - implement build/run `direwolf` in a container - implement build/run `bpq` in a container + +SOMEDAY: +- implement other packet terminal in a container? - implement build/run `pat` in a container +- pick a better license Process: - attempt to do this with a compose file to make reproducable + +Assumptions: +- runs rootless +- access to audio device might be a problem? + +Purpose: +- Learn something about these new fangled containers +- implement a method to get a FARPN node easily stood up, but not necessarily targeted at new users. +- diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..e78abde --- /dev/null +++ b/compose.yaml @@ -0,0 +1,51 @@ +version: '0.1' +services: + rigctld: + build: + context: . + dockerfile_inline: + FROM debian + RUN ... + container_name: rigctld + devices: + - "/dev/snd:/dev/snd" + - "/dev/ttyUSB:/dev/ttyUSB0" + ports: 4534:4534 + direwolf: + container_name: direwolf + depends_on: + - rigctld + ports: + 8000:8000 + linbpq: + build: + context: . + dockerfile_inline: + FROM debian + RUN ... + container_name: bpq + depends_on: + - direwolf + secrets: + bbs-password: + environment: BBSPASS + admin-password: + environment: ADMINPASS + volumes: + - /var/linbpq + ports: + - "8000:8000" + - "8001:8001" + expose: + - "8001" + restart: unless-stopped +configs: + initial_config: + file: ./initial_settings.json + runtime_config: + file: ./runtime_settings.json +volumes: + bpq-data: +networks: + farpn-local: {} + farpn-ygg: {} diff --git a/config/asound.conf b/config/asound.conf new file mode 100644 index 0000000..e69de29 diff --git a/config/direwolf.config b/config/direwolf.config new file mode 100644 index 0000000..e69de29 diff --git a/config/linbpq.cfg b/config/linbpq.cfg new file mode 100644 index 0000000..e69de29 diff --git a/config/linmail.cfg b/config/linmail.cfg new file mode 100644 index 0000000..e69de29