Hermetix makes certain dev tools available on the Docker host from Docker containers.
It provides a REST API for sending messages via the Messages app on the host and for running developer tools via xcrun.
- Works only on OS X.
- Messages via the Messages app will only be sent to recipients if there is already an existing dialogue with the user on the host. Otherwise, the request will be silently ignored.
Make sure the host is running the SSH daemon:
sudo systemsetup -setremotelogin on
There must be a valid RSA keypair in the current user's ~/.ssh/ directory. It's assumed that the private key is named id_rsa:
ssh-keygen -t rsa
The current user's SSH public key must be added to ~/.ssh/authorized_keys.
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
To start the container:
docker run -p 443:443 -e USER=`whoami` -e HOST=`ipconfig getifaddr en0` -v ~/.ssh/:/app/ssh augustzf/hermetix
To send a message from the host:
http --verify=tls/DooraRootCA.pem get "https://hermetix?msg=<message>&rec=<email or mobile number>"
Where msg
is the message to be sent and rec
is the recipient. rec
can be a mobile number or email address.
To send messages from other orchestrated containers, make sure you use the right hostname.
Note that Hermetix uses its own self-signed certificate.