Skip to content

cameo69/signald-with-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

signald-with-tcp

Based on signald/signald, but adds listening TCP port to connect to instead of UNIX-socket.

Installation

Install from docker hub cameo69/signald-with-tcp or build yourself.

Build

Build image:

docker build --force-rm --tag signald-with-tcp .

Run

Run image:

docker run -it --rm -v $(pwd)/run:/signald -p 12345:12345 signald-with-tcp

Motivation

  1. Docker image signald/signald is equipped with a UNIX socket for communication which does not work for Docker on Mac OS. This is supported by this issue #483.

    To use a signald container on Mac OS the TCP socket has been added.

    Create a UNIX socket on Mac OS (or other system) to communicate with the TCP socket inside local docker container, use:

    socat UNIX-LISTEN:signald.sock,reuseaddr,fork TCP-CONNECT:localhost:12345
    
  2. TCP sockets can be used directly from other docker containers, especially Node-RED.

About

Extends docker file signald/signald with access via TCP socket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published