add ykpersonalize

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
Jessica Frazelle 2015-10-10 21:49:12 -07:00
parent 8273a35ddc
commit 3739c370d1
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 43 additions and 3 deletions

41
ykpersonalize/Dockerfile Normal file
View File

@ -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 <jess@docker.com>
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" ]

View File

@ -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" ]