forked from Thalhammer/jwt-cpp
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devcontainers fix, test and add wolfssl
refactored installer to have a script that could be reused
- Loading branch information
1 parent
0129f53
commit 99bcb7f
Showing
6 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update && apt-get -y install \ | ||
autoconf \ | ||
build-essential \ | ||
clang-format \ | ||
clang-tidy \ | ||
cmake \ | ||
doxygen \ | ||
graphviz \ | ||
git \ | ||
g++ \ | ||
libgtest-dev \ | ||
libtool \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# https://www.warp.dev/terminus/dockerfile-run-sh | ||
COPY ./.github/actions/install/wolfssl/install.sh /wolfssl/install.sh | ||
RUN /wolfssl/install.sh | ||
|
||
ENV JWT_SSL_LIBRARY="wolfSSL" | ||
ENV CMAKE_C_CLANG_TIDY="clang-tidy;-fix" | ||
ENV CMAKE_CXX_CLANG_TIDY="clang-tidy;-fix" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /bin/sh | ||
set -e # Exit on error | ||
DEFAULT_VERSION="v5.3.0-stable" | ||
VERSION="${1:-$DEFAULT_VERSION}" | ||
|
||
cd /tmp | ||
wget -O wolfssl.tar.gz https://github.com/wolfSSL/wolfssl/archive/$VERSION.tar.gz | ||
tar -zxf wolfssl.tar.gz | ||
cd wolfssl-* | ||
autoreconf -fiv | ||
./configure --prefix=/usr/local --enable-opensslall --enable-opensslextra --disable-examples --disable-crypttests --enable-harden --enable-all --enable-all-crypto | ||
make | ||
|
||
# Depending if we run in on a GitHub Actions or from within a Docker image we have different permissions | ||
if [[ $EUID > 0 ]]; then | ||
# If we are not root then we need to sudo | ||
sudo make install | ||
else | ||
# Default docker image does not have users setup so we are only root and can not sudo | ||
make install | ||
fi | ||
|
||
cd /tmp | ||
rm wolfssl.tar.gz | ||
rm -rf wolfssl-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters