docker构建测试失败,emqx安装不了

This commit is contained in:
kerwincui
2022-05-30 03:38:09 +08:00
parent 9b23b5e712
commit 6a3fab6198
2 changed files with 68 additions and 4 deletions

View File

@@ -15,19 +15,25 @@ RUN apt-get update && \
echo "1. 安装网络工具和设置时区 =====================" && \
apt-get install wget -y --no-install-recommends && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "2. 更换国内源 =============================" && \
wget http://qiniu.xiwen.online/Debian10.list && \
mv Debian10.list /etc/apt/sources.list && \
apt update && apt upgrade -y && \
echo "3. 安装压缩工具 ============================" && \
apt install zip -y && \
apt install zip -y && \
echo "4. 安装nginx ==============================" && \
apt-get install nginx -y --no-install-recommends && \
echo "5. 安装redis ===============================" && \
apt-get install redis-server -y --no-install-recommends && \
echo "6. 修改redis配置 =============================" && \
sed -i "s/# requirepass foobared/requirepass wumei-smart/g" /etc/redis/redis.conf && \
sed -i "s/bind 127.0.0.1/# bind 127.0.0.1/g" /etc/redis/redis.conf
# echo "6. 安装 emqx =============================" && \
# apt update && apt install -y \
# apt-transport-https \
@@ -53,9 +59,7 @@ RUN apt-get update && \
# COPY ./emqx4.0/emqx_web_hook.conf /etc/emqx/plugins/emqx_web_hook.conf
# COPY ./emqx4.0/loaded_plugins /var/lib/emqx/loaded_plugins
COPY ./nginx.conf /etc/nginx/nginx.conf
# 拷贝前后端压缩文件到容器,容器内解压后删除
# COPY ./wumei-smart.tar /var/
# RUN cd /var && tar -xvf wumei-smart.tar && rm wumei-smart.tar
# 解压前端和后端文件并放置到对应位置