Browse Source

Make signer and signer_client work with minimal changes

run-locally
Jan Dittberner 5 months ago
committed by Jan Dittberner
parent
commit
0857806acf
  1. 4
      docker-compose.yml
  2. 2
      docker/run-signer
  3. 6
      docker/run-signer_client

4
docker-compose.yml

@ -101,6 +101,7 @@ services:
volumes:
- certstaging:/srv/certs
- signersockets:/srv/sockets
- webdbincl:/home/cacert/www/includes/
depends_on:
- db
- smtp
@ -126,4 +127,5 @@ volumes:
maildir: { }
certstaging: { }
signersockets: { }
signerdata: { }
signerdata: { }
webdbincl: { }

2
docker/run-signer

@ -23,7 +23,7 @@ if [ ! -f /srv/ca/gpg/gpg_root_0/secring.gpg ]; then cp /srv/testca/gpg/gpg_root
if [ ! -f /srv/ca/gpg/gpg_root_0/pubring.gpg ]; then cp /srv/testca/gpg/gpg_root_0/pubring.gpg /srv/ca/gpg/gpg_root_0/pubring.gpg; fi
rm -f /srv/sockets/signer
socat -d -d PTY,link=/dev/ttyUSB0 UNIX-LISTEN:/srv/sockets/signer 2>&1 &
socat -d -d "PTY,link=${SERIAL_PORT}" UNIX-LISTEN:/srv/sockets/signer 2>&1 &
sleep 1
cd /srv/CommModule/

6
docker/run-signer_client

@ -2,10 +2,12 @@
set -eu
socat -d -d UNIX:/srv/sockets/signer PTY,link=/dev/ttyS0 2>&1 &
export SERIAL_PORT=/dev/ttyUSB0
socat -d -d "UNIX:/srv/sockets/signer" "PTY,link=${SERIAL_PORT}" 2>&1 &
sleep 1
export SERIAL_PORT=/dev/ttyS0
echo "<?php mysql_connect(\"${MYSQL_WEBDB_HOSTNAME}\", \"${MYSQL_WEBDB_USER}\", \"${MYSQL_WEBDB_PASSWORD}\");" > "/home/cacert/www/includes/mysql.php"
cd /srv/CommModule/

Loading…
Cancel
Save