forked from community/entgra-emqx-docker
parent
903aa172b2
commit
c88adc8626
@ -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
|
@ -1,8 +1,15 @@
|
||||
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
|
||||
|
||||
COPY ./entrypoint.sh /opt/emqx/bin/entrypoint.sh
|
||||
USER root
|
||||
RUN chmod +x /opt/emqx/bin/entrypoint.sh
|
||||
ENTRYPOINT ["/opt/emqx/bin/entrypoint.sh"]
|
||||
ENTRYPOINT ["sh", "/opt/emqx/bin/emqx", "foreground"]
|
@ -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