Skip to content

Commit

Permalink
Fix dotnetcore ai agent in dotnet 7 dockerfile (#2453)
Browse files Browse the repository at this point in the history
* fix dotnetcore ai agent

* changes

---------

Co-authored-by: Sarath chandra Bussa <sbussa@microsoft.com>
  • Loading branch information
CodingIsBliss and Sarath chandra Bussa authored Jun 12, 2024
1 parent e0a1217 commit af695e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions images/runtime/dotnetcore/7.0/bullseye.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,13 @@ ENV CNB_STACK_ID="oryx.stacks.skeleton"
LABEL io.buildpacks.stack.id="oryx.stacks.skeleton"

COPY --from=startupCmdGen /opt/startupcmdgen/startupcmdgen /opt/startupcmdgen/startupcmdgen
RUN --mount=type=secret,id=oryx_sdk_storage_account_access_token \
set -e \

COPY DotNetCoreAgent.${USER_DOTNET_AI_VERSION}.zip /DotNetCoreAgent/appinsights.zip
RUN set -e \
&& echo $USER_DOTNET_AI_VERSION \
&& ln -s /opt/startupcmdgen/startupcmdgen /usr/local/bin/oryx \
&& apt-get update \
&& apt-get install unzip -y \
&& apt-get upgrade --assume-yes \
&& mkdir -p /DotNetCoreAgent \
&& curl -o /DotNetCoreAgent/appinsights.zip "https://oryxsdksstaging.blob.core.windows.net/appinsights-agent/DotNetCoreAgent.$USER_DOTNET_AI_VERSION.zip$(cat /run/secrets/oryx_sdk_storage_account_access_token)" \
&& cd DotNetCoreAgent \
&& unzip appinsights.zip && rm appinsights.zip
7 changes: 3 additions & 4 deletions images/runtime/dotnetcore/7.0/buster.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,13 @@ ENV CNB_STACK_ID="oryx.stacks.skeleton"
LABEL io.buildpacks.stack.id="oryx.stacks.skeleton"

COPY --from=startupCmdGen /opt/startupcmdgen/startupcmdgen /opt/startupcmdgen/startupcmdgen
RUN --mount=type=secret,id=oryx_sdk_storage_account_access_token \
set -e \

COPY DotNetCoreAgent.${USER_DOTNET_AI_VERSION}.zip /DotNetCoreAgent/appinsights.zip
RUN set -e \
&& echo $USER_DOTNET_AI_VERSION \
&& ln -s /opt/startupcmdgen/startupcmdgen /usr/local/bin/oryx \
&& apt-get update \
&& apt-get install unzip -y \
&& apt-get upgrade --assume-yes \
&& mkdir -p /DotNetCoreAgent \
&& curl -o /DotNetCoreAgent/appinsights.zip "https://oryxsdksstaging.blob.core.windows.net/appinsights-agent/DotNetCoreAgent.$USER_DOTNET_AI_VERSION.zip$(cat /run/secrets/oryx_sdk_storage_account_access_token)" \
&& cd DotNetCoreAgent \
&& unzip appinsights.zip && rm appinsights.zip

0 comments on commit af695e3

Please sign in to comment.