This has a build error in the gateway service. The echos in the beginning of the build don’t show the ARGs so I believe the environment variables are not getting passed and therefore it doesn’t remove teh _ from one of the .json config files. I can probably fix it if I get some direction.
Step 1/33 : FROM raspbian/stretch as builder
---> 82ca4d7b3224
Step 2/33 : ARG LORA_REGION
---> Running in ae315a72c75f
Removing intermediate container ae315a72c75f
---> b7b6d1dc1227
Step 3/33 : ARG LORA_UDP
---> Running in a8ca73f31dbe
Removing intermediate container a8ca73f31dbe
---> d12ab5be0f4e
Step 4/33 : ARG SPI_SPEED
---> Running in 4dd56aea8233
Removing intermediate container 4dd56aea8233
---> a03d367c34b0
Step 5/33 : ARG PIN_RESET
---> Running in 890a8cf143d3
Removing intermediate container 890a8cf143d3
---> b7ddac895685
Step 6/33 : ARG MINER_URL
---> Running in 989753e7724a
Removing intermediate container 989753e7724a
---> 2c533dbffef7
Step 7/33 : ARG MODEL
---> Running in e7631b969547
Removing intermediate container e7631b969547
---> 395d3f60c2bb
Step 8/33 : RUN echo "Choosen region =>" $LORA_REGION
---> Running in 001079f52f00
Choosen region =>
Removing intermediate container 001079f52f00
---> 4bbc4ea755b6
Step 9/33 : RUN echo "Choosen LoRa UDP port => " $LORA_UDP
---> Running in 725a6a98e8a0
Choosen LoRa UDP port =>
Removing intermediate container 725a6a98e8a0
---> dea6cf7a3962
Step 10/33 : RUN echo "Choosen SPI_SPEED =>" $SPI_SPEED
---> Running in 772f1d708da7
Choosen SPI_SPEED =>
Removing intermediate container 772f1d708da7
---> 9189dda90028
Step 11/33 : RUN echo "Choosen PIN reset =>" $PIN_RESET
---> Running in b362601845d2
Choosen PIN reset =>
Removing intermediate container b362601845d2
---> 9fc64ae58ac3
Step 12/33 : RUN echo "Choosen URL miner =>" $MINER_URL
---> Running in d67fe07f479a
Choosen URL miner =>
Removing intermediate container d67fe07f479a
---> 997a2c10ac1c
Step 13/33 : RUN echo "Choosen RAK MODEL =>" $MODEL
---> Running in 4691a55c2097
Choosen RAK MODEL =>
Removing intermediate container 4691a55c2097
---> fc4397053e0e
Step 14/33 : RUN apt-get update && apt-get install -y git build-essential wget
---> Running in 30764cdf8911
Get:1 http://archive.raspbian.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Get:3 http://archive.raspbian.org/raspbian stretch/rpi Sources [1097 B]
Get:4 http://archive.raspbian.org/raspbian stretch/contrib Sources [88.1 kB]
Get:5 http://archive.raspberrypi.org/debian stretch/main armhf Packages [192 kB]
Get:6 http://archive.raspbian.org/raspbian stretch/firmware Sources [677 B]
Get:7 http://archive.raspbian.org/raspbian stretch/main Sources [12.3 MB]
Get:8 http://archive.raspbian.org/raspbian stretch/non-free Sources [148 kB]
Get:9 http://archive.raspbian.org/raspbian stretch/rpi armhf Packages [1299 B]
Get:10 http://archive.raspbian.org/raspbian stretch/main armhf Packages [16.4 MB]
Get:11 http://archive.raspbian.org/raspbian stretch/firmware armhf Packages [1201 B]
Get:12 http://archive.raspbian.org/raspbian stretch/non-free armhf Packages [120 kB]
Get:13 http://archive.raspbian.org/raspbian stretch/contrib armhf Packages [66.2 kB]
Fetched 29.4 MB in 4s (7055 kB/s)
Reading package lists...
REMOVED LOG ENTRIES
Setting up git (1:2.11.0-3+deb9u7) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Removing intermediate container 30764cdf8911
---> f7a6bfe21feb
Step 15/33 : WORKDIR /build
---> Running in 118604172d57
Removing intermediate container 118604172d57
---> f60c4667100f
Step 16/33 : RUN git clone https://github.com/Lora-net/lora_gateway.git
---> Running in 841215265af0
Cloning into 'lora_gateway'...
Removing intermediate container 841215265af0
---> daff16408dbc
Step 17/33 : COPY loragw_spi.native.c /build/lora_gateway/libloragw/src/
---> c67d3be5fd28
Step 18/33 : RUN if [ -z "$SPI_SPEED" ] ; then echo SPI_SPEED has not been set, resuming... ; else sed -i -e "s/2000000/$SPI_SPEED/g" /build/lora_gateway/libloragw/src/loragw_spi.native.c ; fi
---> Running in 83231524c05c
SPI_SPEED has not been set, resuming...
Removing intermediate container 83231524c05c
---> 6bfafa586c0d
Step 19/33 : RUN git clone https://github.com/Lora-net/packet_forwarder.git
---> Running in fcc9e8a5b5a6
Cloning into 'packet_forwarder'...
Removing intermediate container fcc9e8a5b5a6
---> a52d13089136
Step 20/33 : COPY lora_pkt_fwd.c /build/packet_forwarder/lora_pkt_fwd/src
---> e063ef11eeb8
Step 21/33 : COPY global_conf_US.json .
---> 79a45662dc94
Step 22/33 : COPY global_conf_EU.json .
---> fa21655d571f
Step 23/33 : RUN if [ "$LORA_REGION" = "EU868" ] ; then echo EU config detected && mv global_conf_EU.json global_conf.json ; fi
---> Running in 8df86e873e4d
Removing intermediate container 8df86e873e4d
---> b4c091b9cc76
Step 24/33 : RUN if [ "$LORA_REGION" = "US915" ] ; then echo US config detected && mv global_conf_US.json global_conf.json ; fi
---> Running in 91e9d022a426
Removing intermediate container 91e9d022a426
---> 3efc1c0264d4
Step 25/33 : RUN if [ -z "$MINER_URL" ] ; then echo MINER_URL has not been set, resuming... ; else sed -i -e "s/helium-miner/$MINER_URL/g" global_conf.json ; fi
---> Running in b09a18e2b88c
MINER_URL has not been set, resuming...
Removing intermediate container b09a18e2b88c
---> f89844205228
Step 26/33 : RUN if [ -z "$LORA_UDP" ] ; then echo LORA_UDP has not been set, resuming... ; else sed -i -e "s/1680/$LORA_UDP/g" global_conf.json ; fi
---> Running in 65fe1fb9b650
LORA_UDP has not been set, resuming...
Removing intermediate container 65fe1fb9b650
---> 1b36dcab1529
Step 27/33 : RUN rm -rf /build/packet_forwarder/lora_pkt_fwd/global_conf.json && cp global_conf.json /build/packet_forwarder/lora_pkt_fwd
---> Running in 5c37836e37b9
cp: cannot stat 'global_conf.json': No such file or directory
Removing intermediate container 5c37836e37b9
The command '/bin/sh -c rm -rf /build/packet_forwarder/lora_pkt_fwd/global_conf.json && cp global_conf.json /build/packet_forwarder/lora_pkt_fwd' returned a non-zero code: 1