-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (34 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ARG ARCH=
FROM ${ARCH}alpine:latest
LABEL Author="Ståle Dahl <stalehd@lab5e.com>"
LABEL Description="LoRaWAN Span Gateway"
EXPOSE 1680/udp
VOLUME /data
# Name of the client certificate, PEM format
ENV certfile=clientcert.crt
# Name of the private key for the client certificate, PEM format
ENV keyfile=private.key
# Name of the client certificate chain, PEM format
ENV chainfile=chain.crt
# The gateway endpoint for span
ENV span_endpoint=gw.lab5e.com:6673
# Log level (debug, info, warning, error)
ENV loglevel=info
# Port for the packet forwarders
ENV forwarder_port=1680
# Log format for service (plain, console, json)
ENV logformat=plain
ARG TARGETARCH
ADD bin/loragw.linux-${TARGETARCH} /loragw
CMD /loragw \
--log-level=${loglevel} \
--log-type=${logformat} \
--cert-file=/data/${certfile} \
--chain=/data/${chainfile} \
--key-file=/data/${keyfile} \
--lora-connection-string=/data/loragw.db \
--lora-gateway-port=${forwarder_port} \
--lora-disable-gateway-checks \
--lora-disable-nonce-check \
--state-file=/data/state.json \
--span-endpoint=${span_endpoint}