From f35940f6e4ea2d726419b3e1adecc4ae46e2d696 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Mon, 4 Jul 2022 14:46:21 +0100 Subject: [PATCH] Update v4 test version. Add command to import TTN device repo. --- .gitignore | 2 +- Makefile | 4 ++++ README.md | 13 +++++++++++++ docker-compose.yml | 3 ++- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index c9808ca..b265cc3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ # data folder /data - +/lorawan-devices diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..38ddc5e --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +import-lorawan-devices: + rm -rf lorawan-devices + git clone https://github.com/TheThingsNetwork/lorawan-devices + docker-compose run --rm chirpstack -c /etc/chirpstack import-ttn-lorawan-devices -d /opt/lorawan-devices diff --git a/README.md b/README.md index c229cc9..8f2caaa 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,19 @@ PostgreSQL and Redis data is persisted in Docker volumes, see the `docker-compos Before using this `docker-compose.yml` file, make sure you have [Docker](https://www.docker.com/community-edition) installed. +## Importing TTN device repository + +To import the TTN [lorawan-devices](https://github.com/TheThingsNetwork/lorawan-devices) +repository (optional step), run the following command: + +```bash +make import-lorawan-devices +``` + +This will clone the `lorawan-devices` repository and execute the `import-ttn-lorawan-devices` +command of ChirpStack. Please note that for this step, you need to have the `git` and `make` +commands installed. + ## Usage To start the ChirpStack simply run: diff --git a/docker-compose.yml b/docker-compose.yml index fda750c..e08d77f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,11 +2,12 @@ version: "3" services: chirpstack: - image: chirpstack/chirpstack:4.0.0-test.5 + image: chirpstack/chirpstack:4.0.0-test.7 command: -c /etc/chirpstack restart: unless-stopped volumes: - ./configuration/chirpstack:/etc/chirpstack + - ./lorawan-devices:/opt/lorawan-devices depends_on: - postgres - mosquitto