Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to Master merge with dotnet-8 framework upgrade #404

Merged
merged 172 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
1acd4e0
dev version bump
ChaosEngine Apr 13, 2023
346c36a
inkball: ServiceMode, dev Caching-MySQL bump
ChaosEngine Apr 19, 2023
60e8f7b
bump: eslint, webpack, ace-builds
ChaosEngine Apr 24, 2023
a888ba8
bump: Npgsql
ChaosEngine Apr 24, 2023
0653946
bump: video.js, sass, webpack, playwright
ChaosEngine Apr 25, 2023
ed58e49
changing gulp-clean-css -> @aptuitiv/gulp-clean-css better maintained…
ChaosEngine Apr 27, 2023
92a3a01
build(deps): bump Google.Apis.YouTube.v3 from 1.60.0.2945 to 1.60.0.3…
dependabot[bot] May 5, 2023
42fb896
bump: webpack, ace-builds, eslint
ChaosEngine May 5, 2023
a9f9073
bump: jquery
ChaosEngine May 12, 2023
ab6b98f
bump: Microsoft.NET.Test.Sdk, ace-builds
ChaosEngine May 15, 2023
ce833cf
bumps: ace-builds, eslint, @playwright/test, webpack
ChaosEngine May 16, 2023
e5babf8
build(deps): bump MongoDB.Driver from 2.19.1 to 2.19.2 (#327)
dependabot[bot] May 26, 2023
f2cbfbe
build(deps): bump Google.Apis.YouTube.v3 from 1.60.0.3043 to 1.60.0.3…
dependabot[bot] May 26, 2023
e780d97
bumps: webpack, playwright
ChaosEngine May 26, 2023
b73dbe7
bump: bootstrap-5.3.0
ChaosEngine May 31, 2023
9363e8e
simplifying theme switching with bootstrap-5.3.0, bump: webpack
ChaosEngine Jun 1, 2023
5dae63a
bump: Microsoft.NET.Test.Sdk
ChaosEngine Jun 1, 2023
a57226b
build(deps): bump Microsoft.NET.Test.Sdk from 17.6.1 to 17.6.2 (#330)
dependabot[bot] Jun 7, 2023
9118614
bump: eslint, webpack, Microsoft.NET.Test.Sdk
ChaosEngine Jun 5, 2023
67af463
bump: webpack, sass, ace-builds
ChaosEngine Jun 11, 2023
357ad13
security bump: .NET 7.0.7 and .NET SDK 7.0.107, CVE-2023-24895,CVE-20…
ChaosEngine Jun 13, 2023
aedf15e
bump: sass, webpack, playwright
ChaosEngine Jun 15, 2023
f81c35c
bump: bootstrap-table, eslint, ace-builds
ChaosEngine Jun 19, 2023
9c9ec85
build(deps): bump MongoDB.Driver from 2.19.2 to 2.20.0 (#332)
dependabot[bot] Jun 22, 2023
78de061
bumps: .NET Framework packages 7.0.8
ChaosEngine Jun 23, 2023
2a33a4a
build(deps): bump Google.Apis.YouTube.v3 from 1.60.0.3064 to 1.61.0.3…
dependabot[bot] Jun 27, 2023
2ffcb9d
reacting on Google.Apis.YouTube.v3 playlistitem.snippet.PublishedAt d…
ChaosEngine Jun 27, 2023
9ec01c7
bump: ace-builds
ChaosEngine Jun 27, 2023
dcd2e4e
bump: Microsoft.NET.Test.Sdk, MessagePack
ChaosEngine Jun 27, 2023
4dbcf81
bump: eslint, webpack, bootstrap-table
ChaosEngine Jul 6, 2023
bd2d1d8
bumps: xunit, Google.Apis.YouTube.v3
ChaosEngine Jul 7, 2023
7d2ddac
bump: ace-builds
ChaosEngine Jul 9, 2023
a172a8c
security bump: .NET 7.0.9 and .NET SDK 7.0.306, CVE-2023-33170, CVE-2…
ChaosEngine Jul 11, 2023
34f3612
build(deps): bump Google.Apis.YouTube.v3 from 1.61.0.3106 to 1.61.0.3…
dependabot[bot] Jul 16, 2023
643617e
build(deps): bump Oracle.EntityFrameworkCore from 7.21.9 to 7.21.11 (…
dependabot[bot] Jul 25, 2023
33b5025
bump: ace-builds, playwright, eslint, webpack, sass
ChaosEngine Jul 13, 2023
06c7a70
bump: sass
ChaosEngine Jul 25, 2023
61f9826
inkball bump: Oracle.EntityFrameworkCore from 7.21.9 to 7.21.11
ChaosEngine Jul 25, 2023
b159171
bump: @playwright/test
ChaosEngine Jul 25, 2023
b4fb458
bump: bootstrap, eslint, sass
ChaosEngine Jul 26, 2023
9d073a4
blog url validation in html
ChaosEngine Aug 5, 2023
bcd7d99
inkball: page rename
ChaosEngine Aug 5, 2023
0f8402f
bump: Microsoft.NET.Test.Sdk
ChaosEngine Aug 6, 2023
cf22c94
build(deps): bump Google.Apis.YouTube.v3 from 1.61.0.3113 to 1.61.0.3…
dependabot[bot] Aug 8, 2023
0532228
build(deps): bump Moq from 4.18.4 to 4.20.0 (#351)
dependabot[bot] Aug 8, 2023
0db6cb1
build(deps): Caching-Mysql bump Moq [Moq](https://github.com/moq/moq)…
ChaosEngine Aug 8, 2023
8f36d76
security bump: .NET 7.0.10 and .NET SDK 7.0.400 CVE-2023-35390, CVE-2…
ChaosEngine Aug 8, 2023
2be0f79
bump: ace-builds
ChaosEngine Aug 9, 2023
6628f61
bump: Moq
ChaosEngine Aug 9, 2023
aa482a4
build(deps): bump MongoDB.Driver from 2.20.0 to 2.21.0 (#353)
dependabot[bot] Aug 11, 2023
d84a3e0
build(deps): bump Google.Apis.YouTube.v3 from 1.61.0.3139 to 1.61.0.3…
dependabot[bot] Aug 11, 2023
4a4f543
bump: sass
ChaosEngine Aug 10, 2023
6f0eecc
build(deps): bump Moq from 4.20.2 to 4.20.69 (#355)
dependabot[bot] Aug 16, 2023
4fc9560
bump: eslint, playwright, ace-builds
ChaosEngine Aug 16, 2023
4098a3d
inkball: Moq bump
ChaosEngine Aug 16, 2023
df92685
build(deps): bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.1 (#356)
dependabot[bot] Aug 17, 2023
2643ee1
bump: sass, video.js, playwright, uptaking other bumps from depndabot
ChaosEngine Aug 17, 2023
c14d3e7
inkball changes
ChaosEngine Aug 18, 2023
109f588
build(deps): bump Google.Apis.YouTube.v3 from 1.61.0.3141 to 1.61.0.3…
dependabot[bot] Aug 23, 2023
b2a586c
bump: sass
ChaosEngine Aug 23, 2023
38d2079
build(deps): bump Google.Apis.YouTube.v3 from 1.61.0.3151 to 1.61.0.3…
dependabot[bot] Aug 25, 2023
55ae10b
bump: jquery, eslint
ChaosEngine Aug 28, 2023
0052cc7
build(deps): bump Microsoft.NET.Test.Sdk from 17.7.1 to 17.7.2 (#359)
dependabot[bot] Aug 30, 2023
55db2f4
bump: Microsoft.NET.Test.Sdk
ChaosEngine Aug 30, 2023
d229044
inkball A-Start test algorithm
ChaosEngine Sep 2, 2023
bf623eb
build(deps): bump Google.Apis.YouTube.v3 from 1.61.0.3155 to 1.62.0.3…
dependabot[bot] Sep 6, 2023
fe12710
removal of poly-decomp, and moving of javascript-astar into dev deps
ChaosEngine Sep 7, 2023
fea4bfb
gulpfile.js -> gulpfile.mjs, using ESM modules approach with gulp
ChaosEngine Sep 7, 2023
fbcc066
build(deps): bump Google.Apis.YouTube.v3 from 1.62.0.3155 to 1.62.0.3…
dependabot[bot] Sep 8, 2023
ea72ac7
bumps: eslint, ace-builds
ChaosEngine Sep 10, 2023
0bc9ce7
Caching-MySQL local update
ChaosEngine Sep 12, 2023
c3ba845
.NET September 2023 Updates (Issue #270)
ChaosEngine Sep 12, 2023
a45726c
bump: bootstrap, ace-builds, sass, playwright
ChaosEngine Sep 14, 2023
9d6b2b3
build(deps): bump xunit.runner.visualstudio from 2.5.0 to 2.5.1 (#363)
dependabot[bot] Sep 18, 2023
67a684d
build(deps): bump Npgsql.EntityFrameworkCore.PostgreSQL (#364)
dependabot[bot] Sep 18, 2023
b078d3e
vump: xunit, ace-builds
ChaosEngine Sep 18, 2023
b2a93b8
bump: ace-builds, sass
ChaosEngine Sep 21, 2023
395b0a5
'deferred join.' virt scroll approach
ChaosEngine Sep 21, 2023
40c6a53
inkball: clustering
ChaosEngine Sep 22, 2023
ed68c3d
bump: playwright
ChaosEngine Sep 22, 2023
6d73b99
fix for bad mysql comment
ChaosEngine Sep 22, 2023
589e934
bump: eslint, ace-builds
ChaosEngine Sep 22, 2023
b6810ea
css optimizations and playing around with native css nesting
ChaosEngine Sep 23, 2023
4954705
inkball: ServiceMenuForGameAuthorizationHandler
ChaosEngine Sep 23, 2023
933cb0a
build(deps): bump MessagePack from 2.5.124 to 2.5.129 (#365)
dependabot[bot] Oct 2, 2023
7e5e83e
bump bump: MessagePack
ChaosEngine Oct 3, 2023
dc8e2b4
build(deps): bump MongoDB.Driver from 2.21.0 to 2.22.0 (#367)
dependabot[bot] Oct 10, 2023
3fec884
build(deps): bump Oracle.EntityFrameworkCore from 7.21.11 to 7.21.12 …
dependabot[bot] Oct 10, 2023
b1ccdb4
inkball: bump Oracle.EntityFrameworkCore
ChaosEngine Oct 10, 2023
375ea64
bump: eslint, ace-builds, sass, jquery-validation
ChaosEngine Oct 9, 2023
1737eb9
.NET October 2023 Updates (https://github.com/dotnet/announcements/is…
ChaosEngine Oct 10, 2023
cc53e95
bump: sass, playwright
ChaosEngine Oct 10, 2023
e86b13c
refactoring: playwright
ChaosEngine Oct 12, 2023
54b6c89
inkball: Do not throw exception unnecessarily
ChaosEngine Oct 12, 2023
0fbe139
ServiceWorker: disable caching upfront all unnecessary pages and reso…
ChaosEngine Oct 12, 2023
9353cbc
bump: video.js
ChaosEngine Oct 13, 2023
2a3202b
bump: xunit, xunit.runner.visualstudio, Google.Apis.YouTube.v3
ChaosEngine Oct 13, 2023
d7aad65
bump: webpack, ace-builds
ChaosEngine Oct 14, 2023
e2b3463
playwright: better, more readable setup
ChaosEngine Oct 14, 2023
36bb10b
bump: Google.Apis.YouTube.v3
ChaosEngine Oct 16, 2023
823c6ac
inkball: unit test fix
ChaosEngine Oct 16, 2023
254b3ba
bump: xunit
ChaosEngine Oct 17, 2023
28d72ce
inkball: fix HomeOnload method
ChaosEngine Oct 18, 2023
bce4e31
bumps:
ChaosEngine Oct 23, 2023
b3b2ff2
inkball: GamesList refactoring
ChaosEngine Oct 24, 2023
cf0d6f8
security bump: Microsoft Security Advisorys for CVE-2023-44487, CVE-2…
ChaosEngine Oct 25, 2023
2e11d27
bumps:
ChaosEngine Oct 25, 2023
e8d6c8e
inkball: optimizations
ChaosEngine Oct 30, 2023
a341c6b
build(deps): bump Google.Apis.YouTube.v3 from 1.62.1.3205 to 1.63.0.3…
dependabot[bot] Oct 31, 2023
3c8f248
build(deps): bump xunit from 2.5.3 to 2.6.0
ChaosEngine Nov 1, 2023
51869be
curl -sL https://deb.nodesource.com/setup_18.x -> 20.x
ChaosEngine Nov 1, 2023
cd17aa8
Debian Dockerfile and circleCI nodejs-20 install script update
ChaosEngine Nov 1, 2023
7d68880
bump: xunit-2.6.1
ChaosEngine Nov 3, 2023
a95bfb3
CspReport endpoint
ChaosEngine Nov 3, 2023
69c0950
CspReportRequest refactoring ans tests
ChaosEngine Nov 4, 2023
9b043c2
bump: eslint 8.52.0 → 8.53.0
ChaosEngine Nov 4, 2023
1a151ee
bump: Microsoft.NET.Test.Sdk
ChaosEngine Nov 9, 2023
551e449
security bump: Microsoft Security Advisorys for CVE-2023-36558, CVE-2…
ChaosEngine Nov 14, 2023
ea8b9c1
bump: Google.Apis.YouTube.v3
ChaosEngine Nov 14, 2023
5873790
bump: ace-builds 1.31.1 → 1.31.2
ChaosEngine Nov 15, 2023
3697ba4
bumps:
ChaosEngine Nov 18, 2023
cd5edda
bump: xunit, xunit.runner.visualstudio
ChaosEngine Nov 20, 2023
88f977b
CachingSql: typo and documentation
ChaosEngine Nov 23, 2023
b683c4f
bumps: Moq, fs-extra, @playwright/test
ChaosEngine Nov 29, 2023
4b5bb0c
bump: ace-builds, MessagePack
ChaosEngine Dec 1, 2023
d4f7e20
bump: eslint
ChaosEngine Dec 8, 2023
29ad56f
bumps: xunit and code change for new version of xunit
ChaosEngine Dec 13, 2023
0816bc7
bumps: ace-builds, MongoDB.Driver
ChaosEngine Dec 13, 2023
3145752
bumps: MongoDB.Driver, ace-builds
ChaosEngine Dec 15, 2023
ce90bb3
banner 1 SVG hardware accell optimisations. fill -> rotate anim chang…
ChaosEngine Dec 16, 2023
9f6c946
Optimizing PlayWright tests for perf
ChaosEngine Dec 20, 2023
8bf72a4
bump: xunit, xunit.runner.visualstudio
ChaosEngine Dec 25, 2023
8d36695
bump: sass, ace-builds
ChaosEngine Dec 31, 2023
2c40e2d
bump: Oracle.EntityFrameworkCore-7.21.13
ChaosEngine Jan 2, 2024
fb9c740
optimizing SVG images, moving inline SVG social images into CSS backg…
ChaosEngine Jan 3, 2024
17ff676
bump: video.js, sass
ChaosEngine Jan 3, 2024
fffdc47
after "Optimizing PlayWright tests for perf" - deleting cookie storag…
ChaosEngine Jan 3, 2024
79116df
optimize puzzle SVG images
ChaosEngine Jan 3, 2024
1cfc71a
optimizing SVG images, moving inline SVG social images into CSS backg…
ChaosEngine Jan 4, 2024
3bd16e8
optimizing SVG images #3 - revert to CSS background images due to con…
ChaosEngine Jan 4, 2024
cb2653e
optimizing SVG images #4 - minification of SVGs
ChaosEngine Jan 4, 2024
360cbe0
bump: xunit
ChaosEngine Jan 8, 2024
8d2c16a
optiming SVGs
ChaosEngine Jan 8, 2024
477b791
.NET 7.0.15 - January 09, 2024
ChaosEngine Jan 9, 2024
5b25a04
bump: Google.Apis.YouTube.v3
ChaosEngine Jan 10, 2024
99d615b
Optimizing SVGs
ChaosEngine Jan 12, 2024
6f0455e
bump: bootstrap-table
ChaosEngine Jan 12, 2024
2cc10d3
1st try of migration to dotnet 8.
ChaosEngine Nov 4, 2023
e61ec45
vscode dotnet-8 changes for launch
ChaosEngine Nov 5, 2023
b0d6055
bump: @microsoft/signalr-8*
ChaosEngine Nov 6, 2023
d795881
Dockkerfiles* changes for publishing and trimming
ChaosEngine Nov 9, 2023
aa16de6
dotnet-8.0.0 stable PachageReferences
ChaosEngine Nov 14, 2023
f431b7b
trim compatible serialization code
ChaosEngine Nov 14, 2023
49e6395
AnnualTimelapseModel youtube call fixup
ChaosEngine Nov 15, 2023
a29518e
IdentityManager2 changes
ChaosEngine Nov 15, 2023
eca4a4c
still fighting with new Json serialization like it was previously by …
ChaosEngine Nov 18, 2023
1f8de9a
<TrimMode>full</TrimMode>
ChaosEngine Nov 18, 2023
27175a2
bump: Npgsql
ChaosEngine Nov 22, 2023
79bbabf
JsonSerializerOptions: adding all possible json serilizeds to Servic…
ChaosEngine Nov 23, 2023
3bee159
exposed port change (5000 -> 8080)
ChaosEngine Nov 25, 2023
8623d0c
Decorating reflection heave methods with RequiresUnreferencedCode
ChaosEngine Nov 29, 2023
18a0dbe
bump: Oracle.EntityFrameworkCore-8*
ChaosEngine Dec 8, 2023
38a0e31
vscode tasks: drop publish trim param
ChaosEngine Dec 8, 2023
d02c7e1
Deaing with more RequiresUnreferencedCode trim warnings
ChaosEngine Dec 8, 2023
778b9b9
.NET 8.0.1 - January 09, 2024
ChaosEngine Jan 9, 2024
a622a31
.NET 8.0.1 - January 09, 2024 part 2
ChaosEngine Jan 10, 2024
425e9c5
<TrimMode>partial</TrimMode>
ChaosEngine Jan 12, 2024
bfeb04d
alpine proper musl runtime (RID) id
ChaosEngine Jan 12, 2024
1a8c432
CI/CD upgrades for dotnet-8 (travis, appveyor, github actions, circle…
ChaosEngine Jan 13, 2024
e671720
dotnet-8 build script change
ChaosEngine Jan 13, 2024
f60fcb0
Merge branch 'dotnet-8' into dev: small trivial change for build script
ChaosEngine Jan 13, 2024
50a39d6
Merge branch 'master' into dev
ChaosEngine Jan 13, 2024
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
18 changes: 11 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
command: |
curl -O https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
apt update && apt install -y dotnet-sdk-7.0
apt update && apt install -y dotnet-sdk-8.0
- run:
name: Show versions
command: |
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:

Pomelo-tests:
docker:
- image: mcr.microsoft.com/dotnet/sdk:7.0
- image: mcr.microsoft.com/dotnet/sdk:8.0
# Steps to the job
steps:
- checkout
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:

InkBall-tests:
docker:
- image: mcr.microsoft.com/dotnet/sdk:7.0
- image: mcr.microsoft.com/dotnet/sdk:8.0
# Steps to the job
steps:
- checkout
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:

DotnetPlayground-tests:
docker:
- image: mcr.microsoft.com/dotnet/sdk:7.0
- image: mcr.microsoft.com/dotnet/sdk:8.0
# Steps to the job
steps:
- checkout
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
command: |
curl -O https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
apt update && apt install -y dotnet-sdk-7.0
apt update && apt install -y dotnet-sdk-8.0
- run:
name: Show versions
command: |
Expand All @@ -223,7 +223,7 @@ jobs:

build:
docker:
- image: mcr.microsoft.com/dotnet/sdk:7.0
- image: mcr.microsoft.com/dotnet/sdk:8.0
# Steps to the job
steps:
- checkout
Expand All @@ -235,7 +235,11 @@ jobs:
- run:
name: Install node/npm
# keep an eye on the node/npm version here
command: curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
command: |
curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh
chmod 500 nsolid_setup_deb.sh
./nsolid_setup_deb.sh 20
apt-get install -y nodejs
- run:
name: "Build Application according to some given configuration"
command: dotnet publish -c Release --self-contained -r linux-x64 DotnetPlayground.Web
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name: "CodeQL"

on:
push:
branches: [ master, dev, dotnet-7 ]
branches: [ master, dev, dotnet-8 ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
dotnet-version: '8.x'

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
- dev
- dotnet-7
- dotnet-8

jobs:
build:
Expand All @@ -19,14 +19,14 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
- name: Build with dotnet
env:
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2
run: dotnet build --configuration Release
- name: Test with dotnet
env:
DBKind: "sqlite"
ConnectionStrings__Sqlite: "Filename=./bin/Debug/net7.0/Blogging.db"
ConnectionStrings__Sqlite: "Filename=./bin/Debug/net8.0/Blogging.db"
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2
run: dotnet test -v m --configuration Debug
2 changes: 1 addition & 1 deletion .github/workflows/trivy-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Trivy scan
on:
push:
branches: [ master, dev, dotnet-7 ]
branches: [ master, dev, dotnet-8 ]
pull_request:
jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/DotnetPlayground.Web/bin/Debug/net7.0/DotnetPlayground.Web.dll",
"program": "${workspaceFolder}/DotnetPlayground.Web/bin/Debug/net8.0/DotnetPlayground.Web.dll",
"args": [],
"cwd": "${workspaceFolder}/DotnetPlayground.Web",
"stopAtEntry": false,
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"eslint.enable": true,
"eslint.nodePath": "DotnetPlayground.Web/node_modules",
"eslint.options": { "overrideConfigFile": "DotnetPlayground.Web/package.json" },
"eslint.validate": [ "javascript" ]
"eslint.validate": [ "javascript" ],
"dotnet.defaultSolution": "Dotnet-Playground.sln"
}
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
{
"label": "publish",
"windows": {
"command": "dotnet publish -c Release -r win-x64 --self-contained -p:PublishTrimmed=true -p:ShowLinkerSizeComparison=true -p:CrossGenDuringPublish=false DotnetPlayground.Web"
"command": "dotnet publish -c Release -r win-x64 --self-contained -p:ShowLinkerSizeComparison=true -p:CrossGenDuringPublish=false DotnetPlayground.Web"
},
"linux": {
"command": "dotnet publish -c Release -r linux-x64 --self-contained -p:PublishTrimmed=true -p:ShowLinkerSizeComparison=true -p:CrossGenDuringPublish=false DotnetPlayground.Web"
"command": "dotnet publish -c Release -r linux-x64 --self-contained -p:ShowLinkerSizeComparison=true -p:CrossGenDuringPublish=false DotnetPlayground.Web"
},
"type": "shell",
"presentation": {
Expand Down
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# syntax = docker/dockerfile:experimental
FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim AS build
RUN --mount=type=cache,target=/root/.nuget --mount=type=cache,target=/root/.local/share/NuGet --mount=type=cache,target=/root/.npm/ --mount=type=cache,target=./DotnetPlayground.Web/node_modules
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
RUN curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh && \
chmod 500 nsolid_setup_deb.sh && \
./nsolid_setup_deb.sh 20 && \
apt-get install -y nodejs
WORKDIR /build

ENV DBKind="sqlite" ConnectionStrings__Sqlite="Filename=./bin/Debug/net7.0/Blogging.db"
ENV DBKind="sqlite" ConnectionStrings__Sqlite="Filename=./bin/Debug/net8.0/Blogging.db"
ARG SOURCE_COMMIT
ARG SOURCE_BRANCH
ARG BUILD_CONFIG=${BUILD_CONFIG:-Release}
Expand All @@ -25,24 +28,24 @@ COPY . .
RUN sed -i -e "s/GIT_HASH/$SOURCE_COMMIT/g" -e "s/GIT_BRANCH/$SOURCE_BRANCH/g" DotnetPlayground.Web/wwwroot/js/site.js
RUN dotnet test --no-restore -v m
RUN dotnet publish --no-restore -c $BUILD_CONFIG --self-contained -r linux-x64 \
-p:PublishTrimmed=true \
#-p:PublishTrimmed=true \
DotnetPlayground.Web





FROM mcr.microsoft.com/dotnet/runtime-deps:7.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-bookworm-slim
WORKDIR /app
ENV USER=nobody TZ=Europe/Warsaw ASPNETCORE_URLS=http://+:5000
ENV USER=nobody TZ=Europe/Warsaw
ARG BUILD_CONFIG=${BUILD_CONFIG:-Release}
COPY --from=build --chown="$USER":"$USER" /build/DotnetPlayground.Web/bin/$BUILD_CONFIG/net7.0/linux-x64/publish/ /build/startApp.sh ./
COPY --from=build --chown="$USER":"$USER" /build/DotnetPlayground.Web/bin/$BUILD_CONFIG/net8.0/linux-x64/publish/ /build/startApp.sh ./

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

USER "$USER"

VOLUME /shared
EXPOSE 5000
EXPOSE 8080

ENTRYPOINT ["./DotnetPlayground.Web"]
18 changes: 9 additions & 9 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# syntax = docker/dockerfile:experimental
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
RUN --mount=type=cache,target=/root/.nuget --mount=type=cache,target=/root/.local/share/NuGet --mount=type=cache,target=/root/.npm/ --mount=type=cache,target=./DotnetPlayground.Web/node_modules
RUN apk add --update nodejs npm
WORKDIR /build

ENV DBKind="sqlite" ConnectionStrings__Sqlite="Filename=./bin/Debug/net7.0/Blogging.db"
ENV DBKind="sqlite" ConnectionStrings__Sqlite="Filename=./bin/Debug/net8.0/Blogging.db"
ARG SOURCE_COMMIT
ARG SOURCE_BRANCH
ARG BUILD_CONFIG=${BUILD_CONFIG:-Release}
Expand All @@ -19,31 +19,31 @@ COPY ./IdentityManager2/src/IdentityManager2/IdentityManager2.csproj ./IdentityM
COPY ./IdentityManager2/src/IdentityManager2/Assets/ ./IdentityManager2/src/IdentityManager2/Assets/
COPY ./DotnetPlayground.Web/DotnetPlayground.Web.csproj ./DotnetPlayground.Web/DotnetPlayground.Web.csproj
COPY ./*.sln ./NuGet.config ./
RUN dotnet restore -r alpine-x64
RUN dotnet restore -r linux-musl-x64

COPY . .
RUN sed -i -e "s/GIT_HASH/$SOURCE_COMMIT/g" -e "s/GIT_BRANCH/$SOURCE_BRANCH/g" DotnetPlayground.Web/wwwroot/js/site.js
RUN dotnet test --no-restore -v m
RUN dotnet publish --no-restore -c $BUILD_CONFIG --self-contained -r alpine-x64 \
-p:PublishTrimmed=true \
RUN dotnet publish --no-restore -c $BUILD_CONFIG --self-contained -r linux-musl-x64 \
#-p:PublishTrimmed=true \
DotnetPlayground.Web





FROM mcr.microsoft.com/dotnet/runtime-deps:7.0-alpine
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine
RUN apk add tzdata
WORKDIR /app
ENV USER=nobody TZ=Europe/Warsaw ASPNETCORE_URLS=http://+:5000
ENV USER=nobody TZ=Europe/Warsaw
ARG BUILD_CONFIG=${BUILD_CONFIG:-Release}
COPY --from=build --chown="$USER":"$USER" /build/DotnetPlayground.Web/bin/$BUILD_CONFIG/net7.0/alpine-x64/publish/ /build/startApp.sh ./
COPY --from=build --chown="$USER":"$USER" /build/DotnetPlayground.Web/bin/$BUILD_CONFIG/net8.0/linux-musl-x64/publish/ /build/startApp.sh ./

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

USER "$USER"

VOLUME /shared
EXPOSE 5000
EXPOSE 8080

ENTRYPOINT ["./DotnetPlayground.Web"]
2 changes: 1 addition & 1 deletion DotnetPlayground.Tests/BlogsControllersTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public async Task CreatePost()
BlogId = 1,
Title = "Ok, here's one...",
Content = @"At a company that I used to work for, the CEO's brother was the
""system operator"".It was his job to do backups, maintentance,
""system operator"".It was his job to do backups, maintenance,
etc.Problem was, he didn't have a clue about Unix. We were re-
quired to go through him to do anything, though."
};
Expand Down
20 changes: 10 additions & 10 deletions DotnetPlayground.Tests/DotnetPlayground.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>

<IsPackable>false</IsPackable>
Expand All @@ -10,21 +10,21 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.5" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.5">
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion DotnetPlayground.Tests/HashesControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ internal static Moq.Mock<IHashesRepository> MockHashesRepository()
{
var found = hashes.Where(h =>
h.HashMD5.ToLowerInvariant().StartsWith(s) || h.HashSHA256.ToLowerInvariant().StartsWith(s) || h.Key.ToLowerInvariant().StartsWith(s))
.DefaultIfEmpty(new ThinHashes { Key = "nothing found" });
.DefaultIfEmpty(new ThinHashes { Key = "nothing found" }).ToList();

return Task.FromResult(found);
});
Expand Down
6 changes: 3 additions & 3 deletions DotnetPlayground.Tests/HashesRepositoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public async Task Paging_lots_of_elements(int itemsCount)
}
}));
}
Task.WaitAll(tasks.ToArray());
await Task.WhenAll(tasks.ToArray());
await repository.SaveAsync();
}

Expand Down Expand Up @@ -293,7 +293,7 @@ public async Task Paging_lots_of_elements(int itemsCount)
}
}));
}
Task.WaitAll(tasks.ToArray());
await Task.WhenAll(tasks.ToArray());
await repository.SaveAsync();
}

Expand Down Expand Up @@ -350,7 +350,7 @@ public async Task CalculateHashesInfo()

}));
}
Task.WaitAll(tasks.ToArray());
await Task.WhenAll(tasks.ToArray());
await repository.SaveAsync();
}

Expand Down
Loading
Loading