From 3739c370d1ec582b487cad7a442488446a8b7358 Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Sat, 10 Oct 2015 21:49:12 -0700 Subject: [PATCH] add ykpersonalize Signed-off-by: Jessica Frazelle --- ykpersonalize/Dockerfile | 41 ++++++++++++++++++++++++++++++++++++++ yubico-piv-tool/Dockerfile | 5 ++--- 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 ykpersonalize/Dockerfile diff --git a/ykpersonalize/Dockerfile b/ykpersonalize/Dockerfile new file mode 100644 index 0000000..c40516e --- /dev/null +++ b/ykpersonalize/Dockerfile @@ -0,0 +1,41 @@ +# Run ykpersonalize in a container +# +# docker run --rm -it \ +# --device /dev/bus/usb \ +# --device /dev/usb +# --name ykpersonalize \ +# jess/ykpersonalize +# +FROM debian:sid +MAINTAINER Jessica Frazelle + +RUN apt-get update && apt-get install -y \ + ca-certificates \ + curl \ + usbutils \ + yubico-piv-tool \ + && rm -rf /var/lib/apt/lists/* + +ENV YKPERS_VERSION 1.6.1 + +RUN buildDeps=' \ + build-essential \ + libjson0-dev \ + libusb-1.0-0-dev \ + libyubikey-dev \ + pkg-config \ + ' \ + && set -x \ + && apt-get update && apt-get install -y $buildDeps --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* \ + && curl -sSL "https://yubico.github.io/yubikey-personalization/releases/ykpers-${YKPERS_VERSION}.tar.gz" -o /tmp/ykpersonalize.tar.gz \ + && mkdir -p /usr/src/ykpersonalize \ + && tar -xzf /tmp/ykpersonalize.tar.gz -C /usr/src/ykpersonalize --strip-components 1 \ + && cd /usr/src/ykpersonalize \ + && ./configure \ + && make check install \ + && rm -rf /tmp/ykpersonalize* \ + && rm -rf /usr/src/ykpersonalize \ + && apt-get purge -y --auto-remove $buildDeps + +CMD [ "ykpersonalize", "--help" ] diff --git a/yubico-piv-tool/Dockerfile b/yubico-piv-tool/Dockerfile index f4d839c..3626133 100644 --- a/yubico-piv-tool/Dockerfile +++ b/yubico-piv-tool/Dockerfile @@ -1,4 +1,4 @@ -# Run znc in a container +# Run yubico-piv-tool in a container # # docker run --rm -it \ # --device /dev/bus/usb \ @@ -14,5 +14,4 @@ RUN apt-get update && apt-get install -y \ yubico-piv-tool \ && rm -rf /var/lib/apt/lists/* -ENTRYPOINT [ "yubico-piv-tool" ] -CMD [ "--help" ] +CMD [ "yubico-piv-tool", "--help" ]