Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Jammy Container
name: Build Noble Container

on:
pull_request:
Expand All @@ -21,5 +21,5 @@ jobs:
build-container:
uses: ./.github/workflows/build-container-reusable.yml
with:
container-runtime: jammy
container-runtime: noble

6 changes: 3 additions & 3 deletions .github/workflows/build-container-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install net8.0
- name: Install net9.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand All @@ -39,7 +39,7 @@ jobs:
key: "${{ inputs.container-runtime }}"
map: |
{
"jammy": {
"noble": {
"runtime": "linux-x64"
},
"bookworm-slim": {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
- name: Install net8.0
- name: Install net9.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Clear Nuget Cache
shell: powershell
if: inputs.os == 'windows-2019'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install net8.0
- name: Install net9.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Scan for Vulnerabilities
run: |
cd src
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# "build" image
ARG CONTAINER_RUNTIME=jammy
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
ARG CONTAINER_RUNTIME=noble
FROM mcr.microsoft.com/dotnet/sdk:9.0-noble AS build
ARG RUNTIME=linux-x64

WORKDIR /build
Expand All @@ -25,7 +25,7 @@ RUN find /build/src -maxdepth 1 -type d -name "*.Tests" -print0 | xargs -I{} -0
'dotnet publish --runtime=${RUNTIME} --no-self-contained --configuration Release --output /build/published-tests/`basename $1` $1' - '{}'

# "test" image
FROM mcr.microsoft.com/dotnet/sdk:8.0-${CONTAINER_RUNTIME} as test
FROM mcr.microsoft.com/dotnet/sdk:9.0-${CONTAINER_RUNTIME} as test
WORKDIR /build
COPY --from=build ./build/published-tests ./published-tests
COPY --from=build ./build/ci ./ci
Expand All @@ -47,10 +47,10 @@ FROM build as publish
ARG RUNTIME=linux-x64

RUN dotnet publish --configuration=Release --runtime=${RUNTIME} --self-contained \
--framework=net8.0 --output /publish EventStore.ClusterNode
--framework=net9.0 --output /publish EventStore.ClusterNode

# "runtime" image
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-${CONTAINER_RUNTIME} AS runtime
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-${CONTAINER_RUNTIME} AS runtime
ARG RUNTIME=linux-x64
ARG UID=1000
ARG GID=1000
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The build scripts: `build.sh` and `build.ps1` are also available for Linux and W
To start a single node, you can then run:

```
dotnet ./src/EventStore.ClusterNode/bin/x64/Release/net8.0/EventStore.ClusterNode.dll --dev --db ./tmp/data --index ./tmp/index --log ./tmp/log
dotnet ./src/EventStore.ClusterNode/bin/x64/Release/net9.0/EventStore.ClusterNode.dll --dev --db ./tmp/data --index ./tmp/index --log ./tmp/log
```

### Running the tests
Expand Down Expand Up @@ -161,9 +161,9 @@ Currently, we support the following configurations:
- `CONTAINER_RUNTIME=bookworm-slim`
- `RUNTIME=linux-x64`

2. Jammy:
2. Noble:

- `CONTAINER_RUNTIME=Jammy`
- `CONTAINER_RUNTIME=noble`
- `RUNTIME=linux-x64`

3. Alpine:
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPYRIGHT="Copyright 2021 Event Store Ltd. All rights reserved."

CONFIGURATION="Release"
BUILD_UI="no"
NET_FRAMEWORK="net8.0"
NET_FRAMEWORK="net9.0"

function usage() {
cat <<EOF
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Copyright>Copyright 2012-2024 Event Store Ltd</Copyright>
<PackageReleaseNotes>https://eventstore.com/blog/</PackageReleaseNotes>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>12.0</LangVersion>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<IsPackable>false</IsPackable>
Expand Down
3 changes: 2 additions & 1 deletion src/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project>
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--//qq temp-->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion src/EventStore.Core.Tests/FakePlugin/FakePlugin.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion src/EventStore.Core.XUnit.Tests/PluginLoaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static async Task BuildFakePlugin(DirectoryInfo outputFolder) {
using var process = new Process {
StartInfo = new ProcessStartInfo {
FileName = "dotnet",
Arguments = $"publish --configuration {BuildConfiguration} --framework=net8.0 --output {outputFolder.FullName}",
Arguments = $"publish --configuration {BuildConfiguration} --framework=net9.0 --output {outputFolder.FullName}",
WorkingDirectory = PluginSourceDirectory,
UseShellExecute = false,
RedirectStandardError = true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Loading