From fc52e48d03287c22899a7b5f61f825c2fdd8102b Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Wed, 14 Feb 2024 02:32:56 +0000 Subject: [PATCH] chore: .NET, SPX and OpenSSL v1 needed --- .devcontainer/devcontainer.json | 3 ++- .devcontainer/post-create.sh | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 00f262c0..17132c70 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,6 +8,7 @@ }, "postCreateCommand": "./.devcontainer/post-create.sh", "remoteEnv": { - "PATH": "${containerEnv:PATH}:/home/vscode/.dotnet/tools" + "PATH": "${containerEnv:PATH}:/home/vscode/.dotnet/tools", + "SSL_CERT_DIR": "/etc/ssl/certs" } } diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 1ffbccec..17f86442 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -1,8 +1,17 @@ #!/bin/bash +# Build and install OpenSSL 1.1.1u +wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf - +cd openssl-1.1.1u +./config --prefix=/usr/local +make -j $(nproc) +sudo make install_sw install_ssldirs +sudo ldconfig +cd .. && sudo rm -R openssl-1.1.1u + # Install .NET 6.0 SDK and the Speech CLI tool -# sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0 -# dotnet tool install --global Microsoft.CognitiveServices.Speech.CLI +sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0 +dotnet tool install --global Microsoft.CognitiveServices.Speech.CLI # Install the Azure Speech SDK for Python python -m pip install azure-cognitiveservices-speech