Revert "temp: team debugging"

This reverts commit 6533d731f829d79f41bf2f7209e3a636553792b1.
This commit is contained in:
Daniel Hougaard
2024-11-11 21:47:00 +04:00
parent 22f8a3daa7
commit 1d3dca11e7
2 changed files with 35 additions and 10 deletions
+35 -9
View File
@@ -1,22 +1,48 @@
FROM --platform=linux/amd64 node:20-alpine FROM node:20-alpine
# ? App setup # ? Setup a test SoftHSM module. In production a real HSM is used.
ARG SOFTHSM2_VERSION=2.5.0
ENV SOFTHSM2_VERSION=${SOFTHSM2_VERSION} \
SOFTHSM2_SOURCES=/tmp/softhsm2
# install build dependencies including python3
RUN apk --update add \ RUN apk --update add \
alpine-sdk \
autoconf \
automake \
git \
libtool \
openssl-dev \
python3 \ python3 \
make \ make \
g++ \ g++
gcompat \
libstdc++ # build and install SoftHSM2
RUN git clone https://github.com/opendnssec/SoftHSMv2.git ${SOFTHSM2_SOURCES}
WORKDIR ${SOFTHSM2_SOURCES}
RUN git checkout ${SOFTHSM2_VERSION} -b ${SOFTHSM2_VERSION} \
&& sh autogen.sh \
&& ./configure --prefix=/usr/local --disable-gost \
&& make \
&& make install
WORKDIR /root
RUN rm -fr ${SOFTHSM2_SOURCES}
# install pkcs11-tool
RUN apk --update add opensc
RUN softhsm2-util --init-token --slot 0 --label "auth-app" --pin 1234 --so-pin 0000
# ? App setup
RUN apk add --no-cache bash curl && curl -1sLf \ RUN apk add --no-cache bash curl && curl -1sLf \
'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.alpine.sh' | bash \ 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.alpine.sh' | bash \
&& apk add infisical=0.8.1 && apk add --no-cache git && apk add infisical=0.8.1 && apk add --no-cache git
ENV ChrystokiConfigurationPath=/usr/safenet/lunaclient/
WORKDIR /app WORKDIR /app
COPY package.json package.json COPY package.json package.json
-1
View File
@@ -92,7 +92,6 @@ services:
- TELEMETRY_ENABLED=false - TELEMETRY_ENABLED=false
volumes: volumes:
- ./backend/src:/app/src - ./backend/src:/app/src
- "/etc/luna-docker:/usr/safenet/lunaclient"
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"