Public Repository

Last pushed: a year ago
Short Description
A simple image containing an instance of stunnel configured with a PSK service as sample.
Full Description

A simple image containing an instance of stunnel configured with a PSK service as sample.
The Dockerfile:

FROM blitznote/debootstrap-amd64:16.04
MAINTAINER Matteo Murgida

RUN apt-get update
RUN apt-get install -y build-essential wget tar libssl-dev

ENV STUNNEL_VERSION 5.36

RUN wget --no-check-certificate -qO - https://www.stunnel.org/downloads/stunnel-$STUNNEL_VERSION.tar.gz | tar -C /usr/local/src -zxv

# Build stunnel
RUN cd /usr/local/src/stunnel-$STUNNEL_VERSION && ./configure && make && make install
RUN rm -rf /usr/local/src/stunnel-$STUNNEL_VERSION

RUN mkdir -p /root/conf

RUN echo 'fips=no\n\
foreground=no\n\
\n\
[PSK service 1]\n\
accept = 8883\n\
connect = localhost:1883\n\
ciphers = PSK\n\
PSKsecrets = /root/conf/psk.txt'  > /root/conf/stunnel.conf

RUN echo anidentity:s87df68dsf76gvsd87f6g8gehyf > /root/conf/psk.txt

ENTRYPOINT stunnel /root/conf/stunnel.conf && tail -f /dev/null
Docker Pull Command
Owner
teomurgi