mirror of
https://repository.entgra.net/community/entgra-emqx-docker.git
synced 2025-09-16 23:42:18 +00:00
Added conf and data files to the container
This commit is contained in:
parent
903aa172b2
commit
c88adc8626
21
.gitignore
vendored
Normal file
21
.gitignore
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Folder config file
|
||||||
|
Desktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Ignore everything in this directory
|
||||||
|
target
|
||||||
|
.classpath
|
||||||
|
.settings
|
||||||
|
.project
|
||||||
|
*.iml
|
||||||
|
*.iws
|
||||||
|
*.ipr
|
||||||
|
.idea
|
||||||
|
*.ids
|
||||||
|
.editorconfig
|
||||||
|
.gradle
|
||||||
|
|
||||||
|
# Mac crap
|
||||||
|
.DS_Store
|
||||||
15
Dockerfile
15
Dockerfile
@ -1,8 +1,15 @@
|
|||||||
FROM emqx/emqx:4.4.11
|
FROM emqx/emqx:4.4.11
|
||||||
|
|
||||||
|
ARG STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/
|
||||||
|
|
||||||
|
# Copy static files
|
||||||
|
COPY /static/css/* ${STATIC_CONFIG_PATH}/css/
|
||||||
|
COPY /static/img/* ${STATIC_CONFIG_PATH}/img/
|
||||||
|
|
||||||
|
# Copy configuration and data files
|
||||||
|
COPY /configs/emqx_exhook.conf /opt/emqx/etc/plugins/
|
||||||
|
COPY /data/loaded_plugins /opt/emqx/data/
|
||||||
|
|
||||||
EXPOSE 1883 8083 8084 8883 11883 18083 4370 5369
|
EXPOSE 1883 8083 8084 8883 11883 18083 4370 5369
|
||||||
|
|
||||||
COPY ./entrypoint.sh /opt/emqx/bin/entrypoint.sh
|
ENTRYPOINT ["sh", "/opt/emqx/bin/emqx", "foreground"]
|
||||||
USER root
|
|
||||||
RUN chmod +x /opt/emqx/bin/entrypoint.sh
|
|
||||||
ENTRYPOINT ["/opt/emqx/bin/entrypoint.sh"]
|
|
||||||
@ -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://host.docker.internal:9000
|
exhook.server.default.url = http://switch-gear: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
|
||||||
|
|||||||
9
data/loaded_plugins
Normal file
9
data/loaded_plugins
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{emqx_management,true}.
|
||||||
|
{emqx_dashboard,true}.
|
||||||
|
{emqx_modules,false}.
|
||||||
|
{emqx_retainer,true}.
|
||||||
|
{emqx_recon,true}.
|
||||||
|
{emqx_telemetry,true}.
|
||||||
|
{emqx_rule_engine,true}.
|
||||||
|
{emqx_bridge_mqtt,false}.
|
||||||
|
{emqx_exhook,true}.
|
||||||
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo "copying static content"
|
|
||||||
STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/
|
|
||||||
cp /opt/emqx/static/css/* $STATIC_CONFIG_PATH/css/
|
|
||||||
cp /opt/emqx/static/img/* $STATIC_CONFIG_PATH/img/
|
|
||||||
|
|
||||||
cp /opt/emqx/configs/emqx_exhook.conf /opt/emqx/etc/plugins/
|
|
||||||
|
|
||||||
echo "Starting server.."
|
|
||||||
sh /opt/emqx/bin/emqx foreground
|
|
||||||
Loading…
Reference in New Issue
Block a user