Skip to content

Commit

Permalink
Upgrade KM packages + misc
Browse files Browse the repository at this point in the history
Add setup.sh to docker image
  • Loading branch information
dluc committed Feb 8, 2024
1 parent ee37abb commit fca3875
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<!-- Kernel Memory -->
<ItemGroup>
<PackageVersion Include="Microsoft.KernelMemory.Abstractions" Version="0.27.240205.2" />
<PackageVersion Include="KernelMemory.MemoryStorage.SqlServer" Version="1.3.0" />
<PackageVersion Include="KernelMemory.MemoryStorage.SqlServer" Version="1.3.1" />
<PackageVersion Include="FreeMindLabs.KernelMemory.Elasticsearch" Version="0.9.5" />
</ItemGroup>
<!-- Semantic Kernel -->
Expand All @@ -55,7 +55,7 @@
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.8.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0" />
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.8.14" />
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.9.28" />
<PackageVersion Include="Roslynator.CodeAnalysis.Analyzers" Version="4.10.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand All @@ -67,7 +67,7 @@
</ItemGroup>
<!-- Tests -->
<ItemGroup>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageVersion Include="Xunit.DependencyInjection" Version="8.9.1" />
<PackageVersion Include="Xunit.DependencyInjection.Logging" Version="8.1.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
Expand Down
1 change: 1 addition & 0 deletions KernelMemory.sln
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "content", "content", "{D4C4BED2-B071-49AB-BAA6-DB4721C0BF26}"
ProjectSection(SolutionItems) = preProject
tools\docker\content\run.sh = tools\docker\content\run.sh
tools\docker\content\setup.sh = tools\docker\content\setup.sh
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AzureAISearch.UnitTests", "extensions\AzureAISearch\AzureAISearch.UnitTests\AzureAISearch.UnitTests.csproj", "{9F564F2D-EADD-47DE-9293-92B3E9CFFE36}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SemanticKernel" Version="1.3.0" />
<PackageReference Include="Microsoft.KernelMemory.SemanticKernelPlugin" Version="0.27.240205.2" />
<PackageReference Include="Microsoft.KernelMemory.SemanticKernelPlugin" Version="0.27.240207.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.27.240205.2" />
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.27.240207.1" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion examples/206-dotnet-configuration-and-logging/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

public static class Program
{
public static async Task Main(string[] args)
// ReSharper disable InconsistentNaming
public static async Task Main()
{
var openAIConfig = new OpenAIConfig
{
Expand Down
12 changes: 6 additions & 6 deletions service/Service/Service.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
<ItemGroup>
<!-- Microsoft.KernelMemory.Core includes also extensions without external dependencies, e.g. all Azure extensions -->

<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.27.240205.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.27.240207.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\Core\Core.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>

<!-- These extensions are used by ServiceConfiguration to support third party dependencies -->

<PackageReference Include="Microsoft.KernelMemory.AI.LlamaSharp" Version="0.27.240205.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.AI.LlamaSharp" Version="0.27.240207.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\extensions\LlamaSharp\LlamaSharp\LlamaSharp.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>

<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Postgres" Version="0.27.240205.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Postgres" Version="0.27.240207.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\extensions\Postgres\Postgres\Postgres.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>

<PackageReference Include="Microsoft.KernelMemory.Orchestration.RabbitMQ" Version="0.27.240205.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.Orchestration.RabbitMQ" Version="0.27.240207.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\extensions\RabbitMQ\RabbitMQ.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>

<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Redis" Version="0.27.240205.2" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Redis" Version="0.27.240207.1" Condition="'$(SolutionName)' != 'KernelMemoryDev'" />
<ProjectReference Include="..\..\extensions\Redis\Redis\Redis.csproj" Condition="'$(SolutionName)' == 'KernelMemoryDev'"/>
</ItemGroup>

Expand Down Expand Up @@ -62,7 +62,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.8.14">
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.9.28">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
1 change: 1 addition & 0 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ WORKDIR /build/source/service/Service
RUN \
dotnet build --configuration Release --output /build/output && \
cp ../../tools/docker/content/run.sh /build/output/ && \
cp ../../tools/docker/content/setup.sh /build/output/ && \
chmod ugo=r /build/output/*.dll

# Generate data used outside the image to label it
Expand Down
9 changes: 9 additions & 0 deletions tools/docker/content/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh

# This script is copied into the Docker image and is used to start Kernel Memory service configuration wizard

set -e

cd /app/

dotnet Microsoft.KernelMemory.ServiceAssembly.dll setup

0 comments on commit fca3875

Please sign in to comment.