summaryrefslogtreecommitdiffstats
path: root/bin/entrypoint.sh
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-05-08 16:24:28 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-05-15 16:20:45 -0700
commitc2a9c2799e0efaf04ca813dc160333363ac156a5 (patch)
tree8add9412f6f5ce684a79511bdde1a2dcfc159328 /bin/entrypoint.sh
parent7793a619f0fe6a879221e675249cccc632216a11 (diff)
Adding support for containerized tss and abrmd
Adding a dockerfile to build a container that has tss, abrmd and tpm2-tools installed on it. Issue-ID: AAF-275 Change-Id: I8bda86d36290785950cf3c23d6527e1245652f42 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'bin/entrypoint.sh')
-rwxr-xr-xbin/entrypoint.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh
new file mode 100755
index 0000000..b13c681
--- /dev/null
+++ b/bin/entrypoint.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -e
+
+# Start DBUS
+mkdir -p /var/run/dbus
+stdbuf -oL -eL dbus-daemon --system --nofork 2>&1 1> /var/log/dbus-daemon.log &
+
+# Start Resource Manager
+hostip=$(ip route show | awk '/default/ {print $3}')
+echo "Connecting to $hostip\n"
+tpm2-abrmd -a $hostip -t socket \ No newline at end of file