-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker image #12
Comments
I am not planning a Docker Image at the moment, when I have more time I will at least make a tutorial and a docker file.
Operating system support should be understood on two levels:
BouncyHsmBouncyHsm is .NET 8.0 application without native dependencies, run on all supported platforms https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md. I tried it myself on Debian 12, RockyLinux 9, AlmaLinux 9, Ubuntu 24.04. BouncyHsm.Pkcs11lib.soBouncyHsm.Pkcs11lib is written in pure C with no external dependencies, so it should compile with gcc/Clang for any linux/unix system or architecture. Github actions compile the native library on Ubuntu, and it works for Debian based systems (with the same version of glibc). On REHEL based systems (RockyLinux 9, AlmaLinux 9), I compile the library directly on them https://github.com/harrison314/BouncyHsm/blob/main/Doc/BuildPkcs11Lib.md. Final note: The BouncyHSM application and the native library do not need to be on the same node (virtual machine). The native library only needs to set the TCP endpoint to which it should be connected via the environment variable. So it goes to test applications that run for example on FreeBSD (not supported for .NET 8) and have BouncyHSM running on another node that already supports .NET 8 (eg. Debian). |
I have recently built a simple image around BouncyHsm based on the prebuilt artifacts. below FROM alpine:3.20.3
ENV APP_VERSION=1.1.0
WORKDIR /unzip
ADD https://github.com/harrison314/BouncyHsm/releases/download/v${APP_VERSION}/BouncyHsm.zip .
RUN apk --update add unzip && rm -rf /var/cache/apk/* && unzip BouncyHsm.zip && rm BouncyHsm.zip
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /App
COPY --from=0 /unzip /App
EXPOSE 8080
EXPOSE 8765
VOLUME /App/bin
CMD ["dotnet", "BouncyHsm.dll"] |
Would be very convenient to just have docker image to use it. As it looks that already support linux os?
The text was updated successfully, but these errors were encountered: