File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,16 @@ COPY aclfile /root/
4
4
COPY startMosquitto.sh /bin
5
5
6
6
RUN yum update -y && yum install -y wget \
7
- && yum install -y epel-release\
8
- && yum update -y epel-release\
9
- && yum install -y mosquitto\
10
- && mkdir /var/log/mosquitto\
11
- && chown mosquitto:mosquitto /var/log/mosquitto\
12
- && touch /etc/mosquitto/pwfile\
13
- && mv /etc/mosquitto/mosquitto.conf.example /etc/mosquitto/mosquitto.conf\
14
- && sed -i '$ i acl_file /etc/mosquitto/aclfile\n password_file /etc/mosquitto/pwfile' /etc/mosquitto/mosquitto.conf\
15
- && mv /root/aclfile /etc/mosquitto/aclfile\
7
+ && yum install -y epel-release \
8
+ && yum update -y epel-release \
9
+ && yum install -y mosquitto \
10
+ && chmod 755 /bin/startMosquitto.sh \
11
+ && mkdir /var/log/mosquitto \
12
+ && chown mosquitto:mosquitto /var/log/mosquitto \
13
+ && touch /etc/mosquitto/pwfile \
14
+ && mv /etc/mosquitto/mosquitto.conf.example /etc/mosquitto/mosquitto.conf \
15
+ && sed -i '$ i acl_file /etc/mosquitto/aclfile\n password_file /etc/mosquitto/pwfile' /etc/mosquitto/mosquitto.conf \
16
+ && mv /root/aclfile /etc/mosquitto/aclfile \
16
17
&& yum clean all
17
18
18
19
EXPOSE 1883
You can’t perform that action at this time.
0 commit comments