mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-19 05:07:54 +00:00
103e4298fb
By selecting a region configuration, devices using the device-profile will only stick to the selected region configuration, rather than the configurations provided by the selected region common-name. This change also renames the region 'name' option to 'id' in the region configuration, as well it adds a 'description' to provide a human readable description, which is used in the drop-down in the UI. This also fixes the JS API generation. In a previous commit the the protobuf package was updated, but the latest protobuf compiler no longer supports generating JS code (this now requires an external plugin). This has been fixed. Please note that if you have implemented custom ADR algorithms that are referring to the 'regionName' key, that you must change this to 'regionConfigId' (see the ADR code example).
13 lines
417 B
Plaintext
Vendored
13 lines
417 B
Plaintext
Vendored
FROM node:19
|
|
|
|
ENV PROJECT_PATH=/chirpstack/api
|
|
RUN apt update && apt install -y protobuf-compiler libprotobuf-dev git bash
|
|
|
|
RUN git clone https://github.com/googleapis/googleapis.git /googleapis
|
|
|
|
ADD https://github.com/grpc/grpc-web/releases/download/1.4.2/protoc-gen-grpc-web-1.4.2-linux-x86_64 /usr/bin/protoc-gen-grpc-web
|
|
RUN chmod +x /usr/bin/protoc-gen-grpc-web
|
|
|
|
RUN mkdir -p $PROJECT_PATH
|
|
WORKDIR $PROJECT_PATH
|