Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-09-01 14:54:08 -04:00
parent 567722f1c5
commit 8936dc3533
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 10 additions and 43 deletions

View File

@ -3,14 +3,21 @@ LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apk --no-cache add \
ca-certificates \
git \
python \
py-boto \
py-paramiko
RUN git clone --depth 1 https://github.com/newsapps/beeswithmachineguns /usr/src/beeswithmachineguns \
RUN buildDeps=' \
build-base \
git \
python-dev \
' \
set -x \
&& apk --no-cache add $buildDeps \
&& git clone --depth 1 https://github.com/newsapps/beeswithmachineguns /usr/src/beeswithmachineguns \
&& cd /usr/src/beeswithmachineguns \
&& python setup.py install \
&& rm -rf /usr/src/beeswithmachineguns
&& rm -rf /usr/src/beeswithmachineguns \
&& apk del $buildDeps
ENTRYPOINT [ "bees" ]

View File

@ -1,35 +0,0 @@
FROM golang:latest
RUN apt-get update && apt-get install -y \
sqlite3 \
&& rm -rf /var/lib/apt/lists/*
ENV SOFTHSM_VERSION 2.3.0rc1
RUN buildDeps=' \
autoconf \
automake \
build-essential \
libtool \
libssl-dev \
libsqlite3-dev \
' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& git clone --depth 1 --branch "${SOFTHSM_VERSION}" https://github.com/opendnssec/SoftHSMv2.git /usr/src/SoftHSMv2 \
&& cd /usr/src/SoftHSMv2 \
&& sh autogen.sh \
&& ./configure --with-objectstore-backend-db \
&& make \
&& make install \
&& rm -rf /usr/src/SoftHSMv2 \
&& apt-get purge -y --auto-remove $buildDeps \
&& mkdir -p /softhsm2/tokens
# Default locations for the SoftHSM2 configuration and PKCS11 bindings
ENV SOFTHSM2_CONF="/etc/softhsm2/softhsm2.conf"
ENV LIBDIR="/usr/local/lib/softhsm/"
COPY ./softhsm2.conf /etc/softhsm2/softhsm2.conf
ENTRYPOINT ["softhsm2-util"]

View File

@ -1,5 +0,0 @@
# SoftHSM v2 configuration file
directories.tokendir = /softhsm2/tokens
objectstore.backend = db
log.level = INFO