Hello all,
I am currently trying to add additional modules to my existing volume mounts in docker.
Following this guide, I created the docker container with no issue. What I found is that after the volume was created, any additional modules that are added to the folder are not loaded into the gateway. The only way I could automatically load the modules was to delete modules.json and restart the gateway. I got the idea to delete modules.json from this guide. Is this expected behavior or am I missing something?
Previously in 8.1, I could just add the modl file, rebuild the image, restart the gateway and it would work.
Reproducible Example:
Dockerfile
ARG IGNITION_VERSION
FROM inductiveautomation/ignition:${IGNITION_VERSION}
COPY *.modl /usr/local/bin/ignition/user-lib/modules/
compose.yaml
services:
gateway:
build:
context: gw-build
## Specify the upstream version to derive from for the build argument in the Docker file.
args:
IGNITION_VERSION: 8.3.7
pull_policy: build
ports:
- 8088:8088
volumes:
- gateway-data:/usr/local/bin/ignition/data
environment:
ACCEPT_IGNITION_EULA: "Y"
GATEWAY_ADMIN_PASSWORD: password
GATEWAY_MODULES_ENABLED: dev.bwdesigngroup.prometheus.PrometheusExporter,project-scan-endpoint
ACCEPT_MODULE_LICENSES: dev.bwdesigngroup.prometheus.PrometheusExporter,project-scan-endpoint
ACCEPT_MODULE_CERTS: dev.bwdesigngroup.prometheus.PrometheusExporter,project-scan-endpoint
IGNITION_EDITION: standard
command: >
-n Ignition-supp-66195
volumes:
gateway-data:
Steps taken
docker compose -f 'compose.yaml' up -d --build 'gateway'docker compose down- Add
modlfiles togw-build/aftergateway-datais created docker compose -f 'compose.yaml' up -d --build 'gateway'
The expected outcome for me at least is that the gateway will have the newly added modules but this is not the case. Below is how I resolved it:
docker exec -it <docker-id> /bin/bash
rm data/modules.json
docker compose down && docker compose -f 'compose.yaml' up -d --build 'gateway'
Thanks in advance!
