update yubico-piv-tool

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
Jessica Frazelle
2015-10-31 22:14:28 -07:00
parent 8ba24e763c
commit 6f4c42fffb
3 changed files with 22 additions and 1 deletions

View File

@@ -10,10 +10,14 @@ FROM debian:sid
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \
pcscd \
usbutils \
yubico-piv-tool \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /root/
COPY entrypoint.sh /usr/local/bin/
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
CMD [ "yubico-piv-tool", "--help" ]

16
yubico-piv-tool/entrypoint.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
init(){
local pcscd_running=$(ps -aux | grep [p]cscd)
if [ -z "$pcscd_running" ]; then
echo "starting pcscd in backgroud"
pcscd --debug --apdu
pcscd --hotplug
else
echo "pcscd is running in already: ${pcscd_running}"
fi
}
init
"$@"