File tree Expand file tree Collapse file tree
src/api/Elastic.Documentation.Mcp.Lambda Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -107,23 +107,21 @@ let private runLocalContainer _ =
107107
108108let private publishContainers _ =
109109
110- let createImage project =
110+ let createImage projectPath containerName =
111111 let ci = Environment.environVarOrNone " GITHUB_ACTIONS"
112112 let pr = prNumber()
113- let baseImageTag =
114- match project with
115- | _ -> " 9.0-noble-chiseled-aot"
113+ let baseImageTag = " 9.0-noble-chiseled-aot"
116114 let labels = imageTags()
117115 let args =
118- [ " publish" ; $ " src/tooling/ %s {project}/ %s {project}.csproj " ]
116+ [ " publish" ; projectPath ]
119117 @ [
120118 " /t:PublishContainer" ;
121119 " -p" ; " DebugType=none" ;
122120 " -p" ; $" ContainerBaseImage=mcr.microsoft.com/dotnet/nightly/runtime-deps:%s {baseImageTag}" ;
123121 " -p" ; $" ContainerImageTags=\" %s {labels};%s {Software.Version.Normalize()}\" "
124- " -p" ; $" ContainerRepository=elastic/%s {project }"
122+ " -p" ; $" ContainerRepository=elastic/%s {containerName }"
125123 ]
126-
124+
127125 let noPublish = Environment.environVarOrNone " DOCKER_NO_PUBLISH"
128126 let registry =
129127 match ( ci, pr, noPublish) with
@@ -133,7 +131,8 @@ let private publishContainers _ =
133131 ]
134132 | _ -> []
135133 exec { run " dotnet" ( args @ registry) }
136- createImage " docs-builder"
134+ createImage " src/tooling/docs-builder/docs-builder.csproj" " docs-builder"
135+ createImage " src/api/Elastic.Documentation.Mcp.Lambda/Elastic.Documentation.Mcp.Lambda.csproj" " docs-builder-mcp"
137136
138137let private runTests ( testSuite : TestSuite ) _ =
139138 let testFilter =
Original file line number Diff line number Diff line change @@ -32,3 +32,12 @@ RUN arch=$TARGETARCH \
3232 && echo $TARGETOS-$arch > /tmp/rid
3333
3434RUN dotnet publish src/api/Elastic.Documentation.Mcp.Lambda -r linux-x64 -c Release
35+
36+ # Runtime stage for ECS Fargate deployment
37+ FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal AS runtime
38+ WORKDIR /app
39+ COPY --from=base /app/.artifacts/publish/Elastic.Documentation.Mcp.Lambda/release_linux-x64/bootstrap /app/bootstrap
40+ RUN chmod +x /app/bootstrap
41+ EXPOSE 8080
42+ ENV ASPNETCORE_URLS=http://+:8080
43+ ENTRYPOINT ["/app/bootstrap" ]
You can’t perform that action at this time.
0 commit comments