Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from project-casa/develop
Browse files Browse the repository at this point in the history
v1.2.1
  • Loading branch information
roeldev authored May 11, 2019
2 parents 24edbf5 + b169109 commit daa9626
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Mosquitto MQTT broker
[![Latest release][latest-release-img]][latest-release-url]
[![Build status][build-status-img]][build-status-url]
[![Layers][image-layers-img]][image-layers-url]
![Image size][image-size-img]
[![Image size][image-size-img]][image-size-url]

[latest-release-img]: https://img.shields.io/github/release/project-casa/mosquitto.svg?label=latest
[latest-release-url]: https://github.com/project-casa/mosquitto/releases
Expand All @@ -13,6 +13,7 @@ Mosquitto MQTT broker
[image-layers-img]: https://img.shields.io/microbadger/layers/roeldev/casa-mosquitto/latest.svg
[image-layers-url]: https://microbadger.com/images/roeldev/casa-mosquitto
[image-size-img]: https://img.shields.io/microbadger/image-size/roeldev/casa-mosquitto/latest.svg
[image-size-url]: https://hub.docker.com/r/roeldev/casa-mosquitto/tags


This Docker image adds a default password and creates CA and server certificates so the MQTT broker can be accessed
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ LABEL maintainer="Roel Schut" \
org.label-schema.vcs-url="https://github.com/project-casa/mosquitto" \
org.label-schema.schema-version="1.0"

COPY docker/versions /etc/profile.d/
ENV ENV="/etc/motd"
COPY docker/motd /etc/motd.d/
COPY docker/motd.sh /etc/motd
COPY docker/mosquitto_certs.sh /usr/bin/mosquitto_certs

RUN set -x && \
Expand Down
4 changes: 4 additions & 0 deletions docker/hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ LABEL_VCS_REF=$( git rev-parse --short HEAD )
DOCKERFILE_PATH="$( dirname ${cwd} )/Dockerfile"

echo "docker build \
--build-arg DOCKER_REPO=${DOCKER_REPO} \
--build-arg DOCKER_TAG=${DOCKER_TAG} \
--build-arg LABEL_BUILD_DATE=${LABEL_BUILD_DATE} \
--build-arg LABEL_VCS_REF=${LABEL_VCS_REF} \
--file ${DOCKERFILE_PATH} \
--tag ${IMAGE_NAME} \
"$( dirname "$( dirname "${cwd}" )" )""

docker build \
--build-arg DOCKER_REPO=${DOCKER_REPO} \
--build-arg DOCKER_TAG=${DOCKER_TAG} \
--build-arg LABEL_BUILD_DATE=${LABEL_BUILD_DATE} \
--build-arg LABEL_VCS_REF=${LABEL_VCS_REF} \
--file ${DOCKERFILE_PATH} \
Expand Down
10 changes: 10 additions & 0 deletions docker/motd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

for script in /etc/motd.d/*.sh
do
if [ -r ${script} ]
then
. ${script}
fi
done
echo
File renamed without changes.
File renamed without changes.

0 comments on commit daa9626

Please sign in to comment.