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

feat(SlimData): alternative to redis for plug and play use #24

Merged
merged 147 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
eed5d71
feat(SlimData): alternative to redis for plug and play use
guillaume-chervet Oct 20, 2023
28f3002
update
guillaume-chervet Oct 23, 2023
fee64fd
update
guillaume-chervet Oct 23, 2023
01d3bed
update
guillaume-chervet Oct 23, 2023
4312c09
update
guillaume-chervet Oct 24, 2023
099899b
update
guillaume-chervet Oct 24, 2023
afb5bb9
Update
guillaume-chervet Oct 25, 2023
ae680bd
update
guillaume-chervet Oct 25, 2023
b46f467
update
guillaume-chervet Oct 27, 2023
9760d70
update
guillaume-chervet Oct 31, 2023
19cfb9c
wip
guillaume-chervet Nov 7, 2023
a489a52
update
guillaume-chervet Nov 8, 2023
0a6a672
update
guillaume-chervet Nov 8, 2023
6686b2a
upd
guillaume-chervet Nov 8, 2023
544da0a
it works :)
guillaume-chervet Nov 10, 2023
0e5d4a6
update
guillaume-chervet Nov 10, 2023
ae1ef2f
update
guillaume-chervet Nov 10, 2023
7cbb867
cool
guillaume-chervet Nov 10, 2023
96fbe67
Update
guillaume-chervet Nov 11, 2023
7b73662
fix
guillaume-chervet Nov 11, 2023
953336a
update
guillaume-chervet Nov 11, 2023
f77701f
fix docker
guillaume-chervet Nov 11, 2023
996db97
update
guillaume-chervet Nov 11, 2023
070ec44
Update slimfaas-ci.yaml
guillaume-chervet Nov 11, 2023
513a7cc
Update Docker.yml
guillaume-chervet Nov 11, 2023
c6706bf
Update Docker.yml
guillaume-chervet Nov 11, 2023
f1ed444
Update
guillaume-chervet Nov 13, 2023
1da6646
Update
guillaume-chervet Nov 13, 2023
8f21a4f
fix start
guillaume-chervet Nov 13, 2023
f492ed3
simplify ci/cd
guillaume-chervet Nov 13, 2023
a1491c1
update
guillaume-chervet Nov 13, 2023
391722d
update
guillaume-chervet Nov 13, 2023
8f6aa81
Update
guillaume-chervet Nov 13, 2023
afc959a
updaye
guillaume-chervet Nov 13, 2023
fd854db
Update
guillaume-chervet Nov 13, 2023
5535876
Update
guillaume-chervet Nov 13, 2023
573223d
Upate
guillaume-chervet Nov 13, 2023
4b2f553
Update RaftClientHandlerFactory.cs
guillaume-chervet Nov 13, 2023
17dabbd
ddddddddd
guillaume-chervet Nov 13, 2023
5662d18
fff
guillaume-chervet Nov 13, 2023
bc7def3
update
guillaume-chervet Nov 14, 2023
c3c77d3
last fix
guillaume-chervet Nov 14, 2023
9333f32
update
guillaume-chervet Nov 14, 2023
ff5fa69
update
guillaume-chervet Nov 14, 2023
87b2e05
update
guillaume-chervet Nov 14, 2023
4e6b4ca
Update SlimDataSynchronizationWorker.cs
guillaume-chervet Nov 14, 2023
95488fc
update
guillaume-chervet Nov 14, 2023
35dccb5
iiiiiiiii
guillaume-chervet Nov 14, 2023
77b2260
It Works, start cleaning code
guillaume-chervet Nov 15, 2023
ea960af
Update README.md
guillaume-chervet Nov 15, 2023
f4f0653
Update README.md
guillaume-chervet Nov 15, 2023
a32e7af
Update README.md
guillaume-chervet Nov 15, 2023
f8bb06c
Update README.md
guillaume-chervet Nov 15, 2023
dd8f89e
Update README.md
guillaume-chervet Nov 15, 2023
a765029
Update README.md
guillaume-chervet Nov 15, 2023
b3e42b7
Update README.md
guillaume-chervet Nov 15, 2023
2fdb48d
Update README.md
guillaume-chervet Nov 15, 2023
8b0427d
Update README.md
guillaume-chervet Nov 15, 2023
4096b27
Update documentation
guillaume-chervet Nov 15, 2023
cd2b401
u^date
guillaume-chervet Nov 16, 2023
719d740
udate
guillaume-chervet Nov 16, 2023
4ae12d8
update
guillaume-chervet Nov 16, 2023
28bed17
update
guillaume-chervet Nov 17, 2023
36350b5
update
guillaume-chervet Nov 17, 2023
663c192
update
guillaume-chervet Nov 18, 2023
90c75fd
update
guillaume-chervet Nov 18, 2023
aaf906a
Update RaftClientHandlerFactory.cs
guillaume-chervet Nov 18, 2023
632b351
Update Starter.cs
guillaume-chervet Nov 18, 2023
db27938
Update Starter.cs
guillaume-chervet Nov 18, 2023
6d3a366
Update Starter.cs
guillaume-chervet Nov 18, 2023
367b973
Update SlimDataService.cs
guillaume-chervet Nov 18, 2023
a4349f9
not finisehd yet
guillaume-chervet Nov 20, 2023
00950c7
Update cleaned
guillaume-chervet Nov 20, 2023
109ade7
update
guillaume-chervet Nov 20, 2023
c118196
fix
guillaume-chervet Nov 20, 2023
ccf7457
update
guillaume-chervet Nov 20, 2023
a0e02ef
update
guillaume-chervet Nov 20, 2023
f5d9143
update
guillaume-chervet Nov 21, 2023
447c370
update
guillaume-chervet Nov 22, 2023
ecc877a
Merge webhost to one
guillaume-chervet Nov 24, 2023
d387d54
merge host
guillaume-chervet Nov 24, 2023
55e21bb
update
guillaume-chervet Nov 24, 2023
c2853dc
update
guillaume-chervet Nov 24, 2023
95eafa6
update
guillaume-chervet Nov 24, 2023
35b9d73
update
guillaume-chervet Nov 24, 2023
c11b2dd
fix Startup.cs
guillaume-chervet Nov 24, 2023
f161b2b
fix
guillaume-chervet Nov 24, 2023
2b557fd
update
guillaume-chervet Nov 24, 2023
c47ab35
update
guillaume-chervet Nov 24, 2023
b3e5099
publish trimmed
guillaume-chervet Nov 26, 2023
4f05e12
trimming update
guillaume-chervet Nov 26, 2023
64ab229
trimming
guillaume-chervet Nov 26, 2023
6d7f26a
update clean
guillaume-chervet Nov 26, 2023
ed31dde
update
guillaume-chervet Nov 27, 2023
f097fb7
Update SlimFaas.csproj
guillaume-chervet Nov 27, 2023
074b520
update
guillaume-chervet Nov 27, 2023
131c04e
update
guillaume-chervet Nov 27, 2023
e5f2eab
update
guillaume-chervet Nov 27, 2023
3415477
uptdate
guillaume-chervet Dec 5, 2023
d03d8b5
update
guillaume-chervet Dec 5, 2023
780a2a4
start to fix unit test
guillaume-chervet Dec 6, 2023
18feee0
all tests ok on my computer :p
guillaume-chervet Dec 6, 2023
129ab75
fix sonar
guillaume-chervet Dec 6, 2023
f4fedb0
Update documentation and demo
guillaume-chervet Dec 6, 2023
7376eb2
update
guillaume-chervet Dec 6, 2023
e468d81
update
guillaume-chervet Dec 6, 2023
e07b5a5
update
guillaume-chervet Dec 6, 2023
a1a9286
update
guillaume-chervet Dec 6, 2023
65fa96c
fix
guillaume-chervet Dec 6, 2023
3b9c1a2
fix
guillaume-chervet Dec 6, 2023
218a6e6
Update
guillaume-chervet Dec 6, 2023
c1b0c8a
work on demo
guillaume-chervet Dec 7, 2023
af716c7
update
guillaume-chervet Dec 7, 2023
2771925
update
guillaume-chervet Dec 7, 2023
765ecf2
youhou
guillaume-chervet Dec 7, 2023
4b4ca15
update
guillaume-chervet Dec 7, 2023
a324dcf
update
guillaume-chervet Dec 7, 2023
f230ccc
update
guillaume-chervet Dec 7, 2023
23781b8
Update
guillaume-chervet Dec 7, 2023
272e848
update
guillaume-chervet Dec 7, 2023
2f36803
update
guillaume-chervet Dec 7, 2023
9a83623
update
guillaume-chervet Dec 7, 2023
8048904
update
guillaume-chervet Dec 7, 2023
a741e6b
update
guillaume-chervet Dec 7, 2023
e600f76
u
guillaume-chervet Dec 7, 2023
0bf41f7
update
guillaume-chervet Dec 7, 2023
905072e
update
guillaume-chervet Dec 7, 2023
b981652
update
guillaume-chervet Dec 7, 2023
7521b8a
update
guillaume-chervet Dec 7, 2023
061dd07
full clean up
guillaume-chervet Dec 7, 2023
3f9280b
update
guillaume-chervet Dec 7, 2023
48255a9
clean up endpoints
guillaume-chervet Dec 8, 2023
5db1c10
update
guillaume-chervet Dec 8, 2023
f7d0f6e
update
guillaume-chervet Dec 8, 2023
1f8475b
youhou
guillaume-chervet Dec 8, 2023
0140b68
update
guillaume-chervet Dec 11, 2023
e3ed8b5
add log to test
guillaume-chervet Dec 11, 2023
07e33b1
update
guillaume-chervet Dec 11, 2023
f1a8536
update
guillaume-chervet Dec 11, 2023
ceb61dc
update
guillaume-chervet Dec 11, 2023
69f107d
update
guillaume-chervet Dec 11, 2023
0a458f7
update
guillaume-chervet Dec 11, 2023
7b54540
update
guillaume-chervet Dec 11, 2023
5530dc8
test
guillaume-chervet Dec 11, 2023
18bdc4b
update
guillaume-chervet Dec 11, 2023
289d192
update
guillaume-chervet Dec 11, 2023
b836913
Update
guillaume-chervet Dec 12, 2023
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
19 changes: 10 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ csharp_indent_switch_labels = true
csharp_indent_labels = one_less_than_current

# Modifier preferences
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:suggestion

# avoid this. unless absolutely necessary
dotnet_style_qualification_for_field = false:suggestion
Expand All @@ -53,26 +53,26 @@ dotnet_style_predefined_type_for_member_access = true:suggestion

# name all constant fields using PascalCase
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.required_modifiers = const
dotnet_naming_style.pascal_case_style.capitalization = pascal_case

# static fields should have s_ prefix
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_symbols.static_fields.required_modifiers = static
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
dotnet_naming_style.static_prefix_style.required_prefix = s_
dotnet_naming_style.static_prefix_style.capitalization = camel_case

# internal and private fields should be _camelCase
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
Expand Down Expand Up @@ -182,6 +182,7 @@ indent_size = 2
# Shell scripts
[*.sh]
end_of_line = lf

[*.{cmd,bat}]
end_of_line = crlf

7 changes: 3 additions & 4 deletions .github/workflows/Docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment: MLOpsPython


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down
36 changes: 25 additions & 11 deletions .github/workflows/slimfaas-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:
types: [opened, synchronize, reopened]

jobs:
unit_tests:
sonarcloud:
name: Build and analyze
runs-on: windows-latest
steps:
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: 'zulu' # Alternative distribution options are available.
- uses: actions/checkout@v3
with:
Expand All @@ -33,23 +33,37 @@ jobs:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- uses: actions/setup-dotnet@v1
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"AxaFrance_SlimFaas" /o:"axaguildev" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml
.\.sonar\scanner\dotnet-sonarscanner begin /k:"AxaFrance_SlimFaas" /o:"axaguildev" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
unit_tests:
name: Build and analyze
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Run unit tests
run: |
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

tags:
needs: unit_tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -79,20 +93,20 @@ jobs:
image_name: "axaguildev/slimfaas"
image_version: "${{ needs.tags.outputs.new_version }}"
image_build_args: ""
image_context: ./src/SlimFaas
image_file: "./src/SlimFaas/Dockerfile"
image_context: "."
image_file: "./Dockerfile"
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

build_fibonacci:
needs: tags
uses: ./.github/workflows/Docker.yml
with:
image_name: "axaguildev/fibonacci"
image_version: "${{ needs.tags.outputs.new_version }}"
image_build_args: ""
image_context: ./src/Fibonacci
image_context: "./src/Fibonacci"
image_file: "./src/Fibonacci/Dockerfile"
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand Down
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore "./src/SlimFaas/SlimFaas.csproj"
RUN dotnet build "./src/SlimFaas/SlimFaas.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "./src/SlimFaas/SlimFaas.csproj" -c Release -r linux-musl-x64 --self-contained=true -p:PublishSingleFile=true -o /app/publish
RUN rm /app/publish/*.pdb
RUN rm /app/publish/SlimData

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["./SlimFaas"]
Loading
Loading