fix start script and Dockerfile

This commit is contained in:
Wolfgang Hottgenroth 2019-06-11 23:03:36 +02:00
parent ecdd003031
commit f6f34c735c
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 3 additions and 3 deletions

View File

@ -24,5 +24,5 @@ EXPOSE 9001/tcp
WORKDIR /opt WORKDIR /opt
CMD ["/opt/sbin/mosquitto", "-c", "/opt/etc/mosquitto/mosquitto.conf"] CMD ["env", "LD_LIBRARY_PATH=/opt/lib", "/opt/sbin/mosquitto", "-c", "/opt/etc/mosquitto/mosquitto.conf"]

View File

@ -8,12 +8,12 @@ docker volume inspect $VOLUME > /dev/null || docker volume create $VOLUME
docker pull $IMAGE docker pull $IMAGE
docker run \ docker run \
-it \ -d \
--rm \ --rm \
-p1883:1883 \ -p1883:1883 \
-v $VOLUME:/opt/etc/mosquitto \ -v $VOLUME:/opt/etc/mosquitto \
--link mariadb \ --link mariadb \
--name mosquitto \ --name mosquitto \
$IMAGE /bin/bash $IMAGE