Update v4 test version. Add command to import TTN device repo.

This commit is contained in:
Orne Brocaar 2022-07-04 14:46:21 +01:00
parent 7964e1def4
commit f35940f6e4
4 changed files with 20 additions and 2 deletions

2
.gitignore vendored
View File

@ -4,4 +4,4 @@
# data folder
/data
/lorawan-devices

4
Makefile Normal file
View File

@ -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

View File

@ -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:

View File

@ -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