'MQTT Transmitter now references modules/MQTTtransmitter.modl'
'new transmitter only runs on fresh volume so delete volume if you need to install a new module'
This commit is contained in:
@@ -18,9 +18,11 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: gw-build
|
context: gw-build
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
additional_contexts:
|
||||||
|
modules: modules
|
||||||
args:
|
args:
|
||||||
IGNITION_VERSION: ${IGNITION_VERSION:-latest}
|
IGNITION_VERSION: ${IGNITION_VERSION:-latest}
|
||||||
SUPPLEMENTAL_MODULES: "mqtttransmissionnightly"
|
SUPPLEMENTAL_MODULES: ""
|
||||||
BASE_GWBK_NAME: base.gwbk
|
BASE_GWBK_NAME: base.gwbk
|
||||||
GATEWAY_ADMIN_USERNAME: admin
|
GATEWAY_ADMIN_USERNAME: admin
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ ARG SUPPLEMENTAL_MQTTTRANSMISSIONNIGHTLY_DOWNLOAD_URL="https://ignition-modules-
|
|||||||
ARG SUPPLEMENTAL_MQTTTRANSMISSIONNIGHTLY_DOWNLOAD_SHA256="notused"
|
ARG SUPPLEMENTAL_MQTTTRANSMISSIONNIGHTLY_DOWNLOAD_SHA256="notused"
|
||||||
ARG SUPPLEMENTAL_MODULES
|
ARG SUPPLEMENTAL_MODULES
|
||||||
|
|
||||||
|
# Local MQTT module built/placed in the sibling `modules/` directory (see the
|
||||||
|
# "modules" additional build context wired up in docker-compose.yml)
|
||||||
|
ARG SUPPLEMENTAL_MQTT_LOCAL_MODULE=MQTTtransmitter.modl
|
||||||
|
|
||||||
# Set working directory for this prep image and ensure that exits from sub-shells bubble up and report an error
|
# Set working directory for this prep image and ensure that exits from sub-shells bubble up and report an error
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
SHELL [ "/usr/bin/env", "-S", "bash", "-euo", "pipefail", "-O", "inherit_errexit", "-c" ]
|
SHELL [ "/usr/bin/env", "-S", "bash", "-euo", "pipefail", "-O", "inherit_errexit", "-c" ]
|
||||||
@@ -28,6 +32,9 @@ SHELL [ "/usr/bin/env", "-S", "bash", "-euo", "pipefail", "-O", "inherit_errexit
|
|||||||
COPY --chmod=0755 retrieve-modules.sh .
|
COPY --chmod=0755 retrieve-modules.sh .
|
||||||
RUN if [ -n "${SUPPLEMENTAL_MODULES:-}" ]; then ./retrieve-modules.sh -m "${SUPPLEMENTAL_MODULES}"; fi
|
RUN if [ -n "${SUPPLEMENTAL_MODULES:-}" ]; then ./retrieve-modules.sh -m "${SUPPLEMENTAL_MODULES}"; fi
|
||||||
|
|
||||||
|
# Pull in the MQTT module straight from the local modules/ folder
|
||||||
|
COPY --from=modules ${SUPPLEMENTAL_MQTT_LOCAL_MODULE} ./
|
||||||
|
|
||||||
# Set CERTIFICATES/EULAS acceptance in gateway backup config db
|
# Set CERTIFICATES/EULAS acceptance in gateway backup config db
|
||||||
COPY *.gwbk ./
|
COPY *.gwbk ./
|
||||||
COPY --chmod=0755 register-module.sh register-password.sh ./
|
COPY --chmod=0755 register-module.sh register-password.sh ./
|
||||||
|
|||||||
Reference in New Issue
Block a user