Change template name as generic vlues

pull/1/head
Pasindu Rupasinghe 4 months ago
parent 5ee07c57a9
commit b6fa700fdc

@ -1,11 +1,9 @@
1. docker build -t registry.entgra.io/entgra-emqx:4.4.11 -f Dockerfile . 1. docker build -t registry.entgra.io/entgra-emqx:4.4.11-entgra-v2 -f Dockerfile .
2. docker-compose up -d 2. Change Application server hostname in docker-compose
3. docker exec -it $(docker ps -aq -n 1) /bin/bash 3. docker-compose up -d
4. docker-compose down 4. docker exec -it $(docker ps -aq -n 1) /bin/bash
5. docker-compose down
Note:
``` ```
For more emqx-docker things: For more emqx-docker things:

@ -48,7 +48,7 @@
## The gRPC server url ## The gRPC server url
## ##
## exhook.server.$name.url = url() ## exhook.server.$name.url = url()
exhook.server.default.url = http://${SG_HOSTNAME}:9000 exhook.server.default.url = http://${SERVER_HOSTNAME}:9000
#exhook.server.default.ssl.cacertfile = etc/certs/cacert.pem #exhook.server.default.ssl.cacertfile = etc/certs/cacert.pem
#exhook.server.default.ssl.certfile = etc/certs/cert.pem #exhook.server.default.ssl.certfile = etc/certs/cert.pem

@ -2,7 +2,7 @@ version: "3.8"
services: services:
entgra-emqx: entgra-emqx:
image: registry.entgra.io/entgra-emqx:4.4.11 image: registry.entgra.io/entgra-emqx:4.4.11-entgra-v2
container_name: entgra-emqx container_name: entgra-emqx
restart: always restart: always
extra_hosts: extra_hosts:
@ -20,7 +20,7 @@ services:
environment: environment:
# Hostname configurations # Hostname configurations
- SG_HOSTNAME=switchgear - SERVER_HOSTNAME=host_name
# - MGT_HTTPS_PORT=9443 # - MGT_HTTPS_PORT=9443
# - MGT_HTTP_PORT=9763 # - MGT_HTTP_PORT=9763
# #

@ -3,7 +3,7 @@
CONFIG_PATH=/opt/emqx/etc/plugins/emqx_exhook.conf CONFIG_PATH=/opt/emqx/etc/plugins/emqx_exhook.conf
# Set emqx_exhook.conf configs # Set emqx_exhook.conf configs
sed -i 's/${SG_HOSTNAME}/'$SG_HOSTNAME'/g' $CONFIG_PATH sed -i 's/${SERVER_HOSTNAME}/'$SERVER_HOSTNAME'/g' $CONFIG_PATH
echo "Starting server.." echo "Starting server.."
sh /opt/emqx/bin/emqx foreground sh /opt/emqx/bin/emqx foreground

Loading…
Cancel
Save