Skip to content
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

Oryx Issue #1181

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Mathiyarasy
Copy link

@Mathiyarasy Mathiyarasy commented Nov 14, 2024

Universal Image Latest Version: Caused issue in a Pipeline
Azure DevOps Pipeline generate-kitchensink-automated Failed

This PR aims to do things:

  1. Revert the pinned dotnet version : Oryx: Unpin .NET version 8.0.101
  2. Publish oryx app with --self-contained true tag . Without this tag oryx fails to launch stating compatible .net runtime version not found

@Mathiyarasy Mathiyarasy marked this pull request as ready for review November 15, 2024 08:15
@Mathiyarasy Mathiyarasy requested a review from a team as a code owner November 15, 2024 08:15
Comment on lines +164 to +166
install_dotnet_using_apt
# PINNED_SDK_VERSION="8.0.101"
# install_dotnet_with_script ${PINNED_SDK_VERSION}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could remove all this code and the code comment if Oryx no longer has issues with dotnet 8.0.201+ ?


if ! dotnet --version > /dev/null ; then
echo "(!) Please install Dotnet before installing Oryx"
exit 1
fi

DOTNET_BINARY="/usr/bin/dotnet"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?
install_dotnet_using_apt function is already setting this var

@@ -192,7 +193,7 @@ echo "Building solution '$SOLUTION_FILE_NAME'..."
cd $GIT_ORYX
${DOTNET_BINARY} build "$SOLUTION_FILE_NAME" -c Debug

${DOTNET_BINARY} publish -property:ValidateExecutableReferencesMatchSelfContained=false -r linux-x64 -o ${BUILD_SCRIPT_GENERATOR} -c Release $GIT_ORYX/src/BuildScriptGeneratorCli/BuildScriptGeneratorCli.csproj
${DOTNET_BINARY} publish -property:ValidateExecutableReferencesMatchSelfContained=false -r linux-x64 -o ${BUILD_SCRIPT_GENERATOR} -c Release $GIT_ORYX/src/BuildScriptGeneratorCli/BuildScriptGeneratorCli.csproj --self-contained true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it increase the package/feature size?

Are there any documentation from oryx that --self-contained true should be set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants