Run all import-lorawan-devices steps within Docker.

This commit is contained in:
Orne Brocaar 2022-10-07 15:33:15 +01:00
parent 79fb95cde8
commit 9ea0dc01f4
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,6 @@
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
docker-compose run --rm --entrypoint bash --user root chirpstack -c '\
apt-get update && \
apt-get install -y make git && \
git clone https://github.com/TheThingsNetwork/lorawan-devices /tmp/lorawan-devices && \
chirpstack -c /etc/chirpstack import-ttn-lorawan-devices -d /tmp/lorawan-devices'

View File

@ -48,8 +48,7 @@ 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.
command of ChirpStack. Please note that for this step you need to have the `make` command installed.
## Usage