Skip to content

Commit

Permalink
added missing apt-add-repository
Browse files Browse the repository at this point in the history
  • Loading branch information
suculent committed Mar 18, 2024
1 parent 1206bac commit cd201c5
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions services/broker/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@ FROM thinxcloud/mosquitto
LABEL name="thinxcloud/mosquitto" version="1.5.8"

# for early testing
RUN apt-add-repository ppa:mosquitto-dev/mosquitto-ppa \
RUN apt-get update --fix-missing \
&& apt-get install -y software-properties-common \
&& apt-add-repository ppa:mosquitto-dev/mosquitto-ppa \
&& apt-get update \
&& apt-get install mosquitto \
&& apt-get install mosquitto-clients \
&& apt clean

# mock directory structure for mosquitto data
COPY ./test/mosquitto/mosquitto.conf /etc/mosquitto/mosquitto.conf

# this must happen in the run-script!!! othervise env-var can not be externalized; happens only in test of files backend
#RUN mkdir -p /mqtt/auth && \
# PASS=$(/mosquitto/pw -h bcrypt -c 10 -p mosquitto) && \
# echo "thinx:${PASS}" > /mqtt/auth/thinx.pw && \
# echo "Written thinx:${PASS} to /mqtt/auth/thinx.pw" && \
# cat /mqtt/auth/thinx.pw

COPY ./test/mosquitto/auth/thinx.acl /mqtt/auth/thinx.acl

0 comments on commit cd201c5

Please sign in to comment.