mirror of
/repos/mqtt-broker-docker-image.git
synced 2025-12-30 08:01:36 +01:00
initial commit
This commit is contained in:
parent
18135b70eb
commit
71a1d8fbb5
17
Dockerfile
17
Dockerfile
@ -1,12 +1,19 @@
|
|||||||
FROM phusion/baseimage:0.9.16
|
FROM aiko/baseimage-pi:0.9.16
|
||||||
|
|
||||||
MAINTAINER Vojta Orgoň (villlem@gmail.com)
|
MAINTAINER Aiko Mastboom (docker@aiko.sh)
|
||||||
|
|
||||||
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
|
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
|
||||||
|
|
||||||
RUN add-apt-repository ppa:mosquitto-dev/mosquitto-ppa -y
|
#RUN /bin/true \
|
||||||
RUN apt-get update
|
# && apt-get update \
|
||||||
RUN apt-get install -y mosquitto mosquitto-clients
|
# && apt-get install -y python-software-properties \
|
||||||
|
# && add-apt-repository ppa:mosquitto-dev/mosquitto-ppa -y
|
||||||
|
RUN /bin/true \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y mosquitto mosquitto-clients
|
||||||
|
|
||||||
|
# Clean up APT when done.
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
ADD mosquitto-broker.sh /etc/service/mosquitto-broker/run
|
ADD mosquitto-broker.sh /etc/service/mosquitto-broker/run
|
||||||
|
|
||||||
|
|||||||
19
Makefile
Normal file
19
Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
DOCKER_IMAGE_VERSION=0.10.36
|
||||||
|
DOCKER_IMAGE_NAME=aiko/rpi-node
|
||||||
|
DOCKER_IMAGE_TAGNAME=$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_VERSION)
|
||||||
|
|
||||||
|
default: build
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build -t $(DOCKER_IMAGE_TAGNAME) .
|
||||||
|
docker tag -f $(DOCKER_IMAGE_TAGNAME) $(DOCKER_IMAGE_NAME):latest
|
||||||
|
|
||||||
|
push:
|
||||||
|
docker push $(DOCKER_IMAGE_NAME)
|
||||||
|
|
||||||
|
test:
|
||||||
|
docker run --rm $(DOCKER_IMAGE_TAGNAME) /bin/echo "Success."
|
||||||
|
|
||||||
|
version:
|
||||||
|
docker run --rm $(DOCKER_IMAGE_TAGNAME) node --version
|
||||||
|
docker run --rm $(DOCKER_IMAGE_TAGNAME) npm --version
|
||||||
Loading…
x
Reference in New Issue
Block a user