mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
add ykpersonalize
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
8273a35ddc
commit
3739c370d1
41
ykpersonalize/Dockerfile
Normal file
41
ykpersonalize/Dockerfile
Normal 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" ]
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user