Compare commits

...

7 Commits

Author SHA1 Message Date
Paolo Asperti d8f7d9dc85 Update Dockerfile
continuous-integration/drone/tag Build is passing Details
2021-10-01 15:52:55 +02:00
Paolo Asperti 4a5a806860 Merge branch 'master' of ssh://git@git.asperti.com:1022/paspo/docker-mqtt.git
Conflicts:
	Dockerfile
2021-10-01 15:52:26 +02:00
Paolo Asperti 9e19382e0f
drone update 2021-10-01 15:48:24 +02:00
Paolo Asperti 95942e9948
alpine version bump 2021-10-01 15:41:46 +02:00
Paolo Asperti 1ee1efc57d
don't expose ports by default 2021-10-01 15:41:31 +02:00
Paolo Asperti 6da604ce44
log into docker console 2021-10-01 15:40:56 +02:00
Paolo Asperti 05058884ee
alpine version bump 2021-10-01 15:40:28 +02:00
2 changed files with 12 additions and 23 deletions

View File

@ -1,35 +1,23 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: plugins/docker:linux-amd64
pull: always
settings:
daemon_off: false
dry_run: true
repo: docker.asperti.com/paspo/mqtt
tags:
- latest
when:
event:
exclude:
- tag
- name: build_and_publish
image: plugins/docker:linux-amd64
pull: always
settings:
auto_tag: true
daemon_off: false
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/mqtt
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
force_tag: true
username:
from_secret: docker_username
when:
event:
- tag
trigger:
event:
- tag

View File

@ -1,4 +1,5 @@
FROM alpine:3.12
RUN apk -U upgrade && apk add mosquitto mosquitto-clients openssl
EXPOSE 8883
FROM alpine:3.14
RUN \
apk -U upgrade && apk add mosquitto mosquitto-clients openssl && \
echo "log_dest stdout" >/etc/mosquitto/mosquitto.conf
ENTRYPOINT ["mosquitto", "-c", "/etc/mosquitto/mosquitto.conf"]