Compare commits

..

1 Commits

Author SHA1 Message Date
7a9941fe66 Add entrypoint, modify Dockerfile: Overwrite volume files 2025-05-30 17:40:18 +02:00
1179 changed files with 13 additions and 128320 deletions

View File

@ -17,8 +17,11 @@ RUN dotnet publish "Oqtane.Server/Oqtane.Server.csproj" -c Release -o /source/pu
# Deploy
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS deploy
WORKDIR /app
WORKDIR /codefiles
COPY --from=publish /source/publish/ /codefiles/
COPY --from=publish /source/publish/ /app/
ENTRYPOINT ["dotnet", "Oqtane.Server.dll"]
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

7
entrypoint.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
cp -rf /codefiles/* /app/
cd /app
dotnet ./Oqtane.Server.dll

Binary file not shown.

Binary file not shown.

View File

@ -1,21 +0,0 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"rollForward": "Major",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "9.0.0"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@ -1,45 +0,0 @@
[2025-05-30 14:16:14+00:00] [Error] [Oqtane.Infrastructure.NotificationJob] An Error Occurred Stopping Scheduled Job: Notification Job - System.InvalidOperationException: No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
at Microsoft.EntityFrameworkCore.Internal.DbContextServices.Initialize(IServiceProvider scopedProvider, DbContextOptions contextOptions, DbContext context)
at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()
at Microsoft.EntityFrameworkCore.DbContext.get_Model()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.CheckState()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Oqtane.Repository.JobRepository.<GetJobs>b__3_0(ICacheEntry entry) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 26
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory, MemoryCacheEntryOptions createOptions)
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory)
at Oqtane.Repository.JobRepository.GetJobs() in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 23
at Oqtane.Infrastructure.HostedServiceBase.StopAsync(CancellationToken cancellationToken) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Infrastructure/Jobs/HostedServiceBase.cs:line 288
[2025-05-30 14:16:14+00:00] [Error] [Oqtane.Infrastructure.PurgeJob] An Error Occurred Stopping Scheduled Job: Purge Job - System.InvalidOperationException: No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
at Microsoft.EntityFrameworkCore.Internal.DbContextServices.Initialize(IServiceProvider scopedProvider, DbContextOptions contextOptions, DbContext context)
at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()
at Microsoft.EntityFrameworkCore.DbContext.get_Model()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.CheckState()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Oqtane.Repository.JobRepository.<GetJobs>b__3_0(ICacheEntry entry) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 26
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory, MemoryCacheEntryOptions createOptions)
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory)
at Oqtane.Repository.JobRepository.GetJobs() in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 23
at Oqtane.Infrastructure.HostedServiceBase.StopAsync(CancellationToken cancellationToken) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Infrastructure/Jobs/HostedServiceBase.cs:line 288
[2025-05-30 14:16:14+00:00] [Error] [Oqtane.Infrastructure.SearchIndexJob] An Error Occurred Stopping Scheduled Job: Search Index Job - System.InvalidOperationException: No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
at Microsoft.EntityFrameworkCore.Internal.DbContextServices.Initialize(IServiceProvider scopedProvider, DbContextOptions contextOptions, DbContext context)
at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()
at Microsoft.EntityFrameworkCore.DbContext.get_Model()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.CheckState()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Oqtane.Repository.JobRepository.<GetJobs>b__3_0(ICacheEntry entry) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 26
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory, MemoryCacheEntryOptions createOptions)
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory)
at Oqtane.Repository.JobRepository.GetJobs() in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 23
at Oqtane.Infrastructure.HostedServiceBase.StopAsync(CancellationToken cancellationToken) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Infrastructure/Jobs/HostedServiceBase.cs:line 288

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@ -1,21 +0,0 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "9.0.0"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Reflection.NullabilityInfoContext.IsSupported": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@ -1,11 +0,0 @@
[
"/SZUAbsolventenverein.Module.EventRegistration.Client.Oqtane.dll",
"/SZUAbsolventenverein.Module.EventRegistration.Client.Oqtane.pdb",
"/SZUAbsolventenverein.Module.EventRegistration.Server.Oqtane.dll",
"/SZUAbsolventenverein.Module.EventRegistration.Server.Oqtane.pdb",
"/SZUAbsolventenverein.Module.EventRegistration.Shared.Oqtane.dll",
"/SZUAbsolventenverein.Module.EventRegistration.Shared.Oqtane.pdb",
"/wwwroot/_content/Placeholder.txt",
"/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.js",
"/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.css"
]

Some files were not shown because too many files have changed in this diff Show More