Skip to content

Commit f7889cf

Browse files
antoineatstariongroupsam.gerenemartinatgmartinrisseeuwnabilatrhea
authored
1.6.6 release (#276)
* Base project architecture created : Fix #1 * Login and logout implemented : fix #3 * Login refactored : Fixes #3 #5 * User management implemented : Fix #8 * Alexander comment : Auto register for ViewModels * Project management implemented : Fix #11 * RoleManagement implemented : Fix #14 * [Add] Code scanning - Build & Test & SonarQube GH Action; fixes #4 * Services and controllers refactored : Fix #15 (#20) * Services and controllers refactored : Fix #15 * Bugs found resolved * Try fix build failure * Build failure * Build failure again * Try with mocking IJSRuntime * Test fix build failure * Test again * try with async unit test * Code smells fix * REST API routes with Carter modules : Fix #21 (#23) * Participant Service, API route, assembler and deep level : Fix #18, #24 (#25) * Participant Service, API route, assembler and deep level : Fix #18, #24# * Remove test that make everything fails * Alex comment : Unique constraint to track duplication * Does.Contain code smell fix * User see project where he is participant: Fix #28 #30 (#31) * User see project where he is participant: Fix #28 #30 * Bug fix * Missed to test service method * Alexander comment * Add visual UI components & login functionality (#29) * feat: add UI components * feat: add visual components & login guard * feat: add button styling * feat: use slot for buttons * chore: add .vscode to gitignore * chore: add comments & remove nullable * feat: add convention feedback * chore: remove .vscode folder * feat: add file headers * feat: add some headers to pages * chore: mainlayout styling * chore: change file header names * chore: add some comments * chore: comments on appbutton * chore: add comments * chore: layout styling * feat: review header * chore: remove topmenu icons & styling changes * chore: Update unit tests * After rebase : conflicts resolved * IJSObjectReference : try fix tests * Try to fix tests * bug fix Co-authored-by: Martin Risseeuw <hello@martinr.nl> Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * ReviewService and ReviewObjectiveService implemented : Fix #32 #33 (#41) * ReviewService and ReviewObjectiveService implemented : Fix #32 #33 * Test failure * Test failure remotly * Test failure DxPopup issue * Test failure again * Test failure again, behaviour is not stable at all * Another try * Tries to catch all invocations * setup module test * Removed isVisible check on DxPopup * setup module and invocation * try catch * Duplication and code smell fix * feat: implement accordion + style changes (#44) * feat: implement accordion + style changes * Bug resolved Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * Task, Annotation and Reply services : Fix #42 #43 #47 (#50) * Task, Annotation and Reply services : Fix #42 #43 #47 * Code smell and duplication * 48 UI implement three view (#49) * feat: add three component for specification * Rebase and small code cleanup Co-authored-by: Martin Risseeuw <hello@martinr.nl> Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * feat: implement colors vars (#51) Co-authored-by: Martin Risseeuw <hello@martinr.nl> * Code generator implemented : Fix #52 #46 (#54) * Code generator implemented : Fix #52 * Include new Test Project inside code coverage result * Code coverage increased * Newtonsoft is not used anymore : Fix #46 * Missing doc * feat: add comment component & review description (#55) * Upload from live session implemented : Fix #27 (#66) * feat: added project pages and needed components (#60) * feat: added project pages and needed components * Index page is back Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * 39 UI implement breadcrumb (#61) * feat: add breadcrumb * Rebase on dev Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * feat: add traceability component (#64) * A model can be uploaded by an Annex C3 file : Fix #26 (#69) * A model can be uploaded by an Annex C3 file : Fix #26 * Code smell fix * FileService update : allow relative path * Update appsettings.json * Manager refactor and remove autoinclude : Fix #40 #53 #67 (#71) * Manager refactor and remove autoinclude : Fix #40 #53 #67 * Code smell fix * User project, review and review objective pages : Fix #56 #58 #65 (#68) * Project page with Review list * Project review page with review attributes * Add Project, Review, and Review Objective Pages * Code smell and rebase * fix file name in header and add missing documentation Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * Forgot to include the properties at one point : Fix #79 (#80) * Feat/gh78 link real data to project card and add new query to fetch review comments and tasks : Fix #78 #73 (#81) * wip * Add query for review to fetch tasks and comments, Link real data to project card : #73 #78 * Update README.md * Update README.md * Update README.md * Update README.md * docker-compose files and scripts created : Fixes #13 (#82) * docker-compose files and scripts created : Fixes #13 * Build failure fix * Code coverage fix * Code coverage * The ThingService enable queries to get Things : Fix #72 (#83) * The ThingService enable queries to get Things : Fix #72 * code smell * Remove unused code * Add TestFixture * review creation : Fix #59 (#84) * Add review creation in project page * Pass Project's artifacts to ReviewCreation and get its models list * code refactoring * Add try catch to review creation test * Try catch for DevExpress popup * fix code smell and test coverage * remove some code smell * Code coverage fix * Missing documentation Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * 70 UI add traceability to page (#85) * feat: add traceability page * feat: switch viewpoints * Bug fix and rebase Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * ReviewObjective and ReviewTask creation : fix #76 (#86) * ReviewObjective and ReviewTask creation : fix #76 * Fix build failure on GitHub * feat: add filters (#92) * feat: add requirement widget (#101) * feat: add requirement widget * Code smell fix and small change on AppKeyValues Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * Review Category Management : Fix #75 (#123) * Review Category Management and test fixture * fix code duplication * fix code coverage for serializers and deserializers * add more code coverage on deserializers * ReviewTaskPage, selectedItem and requirementbreakdown : Fix #91 #97 #98 #96 (#102) * ReviewTaskPage, selectedItem and requirementbreakdown : Fix #91 #97 #98 * code smell and code coverage * Fixed test failure * Test failure * Fix missing association * IQuerable missing property fixed : Fix #96 * Sam's comment * Build failure fixed * ReviewItem and Commenting process : Fix #106 #100 #107 #108 #132 (#133) * ReviewItem and Commenting process : Fix #106 #100 #107 #108 #132 * code smell fix * Alex suggestion implemented * Moved to Radzen * Check failed at some times * Participant management : Fix #104 (#134) * Project participants management * Project participants management * update deletion part * fix code smell * add ContentText to the confirm cancel popup * Reply system implemented: Fix #131 (#136) * Reply system implemented: Fix #131 * Remove unused feature * Fix test failure * style components (#140) Co-authored-by: Martin Risseeuw <hello@martinr.nl> * All Traceability views implemented: Fix #113 #114 #137 #139 #122 #116 #115 (#138) * 2 Traceability views implemented: Fix #113 #114 #137 * Duplication and code smell fix * Rebase and fix #139, #122, #116, #115 * Build failure fixed * Code smell and duplication fix * Views implemented and moved to ElementUsage: Fix #110 #111 #112 #121 #141 (#144) * Views implemented and moved to ElementUsage: Fix #110 #111 #112 #141 * Code smell and coverage increased * TRLView implemented : Fix #121 * feat: style traceability (#145) Co-authored-by: Martin Risseeuw <hello@martinr.nl> * Review Objectives creation and open tasks, comments computation in review : Fix #130 #90 #87 (#147) * computation of comments using reviewItems and open tasks for current user * adding projectId as a parameter to GetOpenTasksAndComments method in ReviewManager * Review objectives creation * review objectives creation with button status * Add some test coverage * add review objective module test * handle js runtime in bunit test * add test coverage and fix code smell * fix code smell * Interface View and RequirementVerificationControlView : Fix #119 #117 (#149) * Interface View and RequirementVerificationControlView : Fix #119 #117 * Test with updated version of BUnit * Try to fix test failure * Test failures * Switching to other views/task is possible : Fix #148 #57 (#159) * Switching to other views/task is possible : Fix #148 #57 * Code coverage improved * Missing test for copyComponents * Code smell fix * Fix typo and missing test * Diagram with nodes can be created from products and ports (#154) * Diagram with nodes can be created from products and ports * Separate logic in ViewModel * Fix test * Change in failing test * Added some tests to improve test coverage * Add more tests * Update failing test * Add IReusableView interface * Model selection available : Fix #157 (#163) * Model selection available : Fix #157 * Code smell and build failure fix * Added custom Nodes, Ports and Links; fixes #151 #153 * IEnumarable<string> to string for DxGrid + Assign Task to Participant + LoadingComponent : Fix #16 #129 #156 (#169) * add comma seperated properties * Task assignment and loading component * ProductBreakdown and FunctionBreakdown option available : Fix #142 (#166) * 146 style document view (#172) * feat: add styling document view * feat: style components * feat: style components * feat: update related views * feat: update styling * feat: adjust click area button * feat: style traceability header * Fix test Co-authored-by: Martin Risseeuw <hello@martinr.nl> Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * Add Legend, Reload when comments are changed and feedback on interface links; fix #155, #162, #170, #174 * ProjectManagement access right added : Fix #164 (#175) * ProjectManagement access right added : Fix #164 * Fix test coverage * Added collapsible legend; fix #177 * Include loading component, Change Iteration Uploads Diagram. fix#171 and #176 * ReviewItem can be set as Reviewed : Fix #168 (#182) * ReviewItem can be set as Reviewed : Fix #168 * Rebase and adjust loadingComponent * Rebase and fix some issue with loading component * Mark a task as done or undone (#189) * Model Details (#190) fix #188 * Number of Tasks and Comments in review objective and fix task assignment (#194) * docker files update * misspell ports property * Update README.md * Remove useless files * If no project, unable to create one * [Add] GH action to build and push docker container * [Fix] path in dockerfile * [Add] DOCKER_BUILDKIT=1 * [Update] dockerfile * RouteParser and ReviewObjective status implemented : Fix #180 183 (#195) * RouteParser and ReviewObjective status implemented : Fix #180 183 * code smell fix * AboutPage and AboutService implemented: Fix #105 (#197) * Version 1.1.0 * Folder architecture changed and DockerFile fixed * Workflows fix * codeQuality check * Feat/gh184 assign task to multiple participants : Fix #184 (#206) * assign task to multiple participants * fix code coverage and duplication * handle deletion of existing assigned participants * add selected Particiants to retrieve the added one * disable Assign button if the user has not selected a participant * remove EditForm * add the already assigned participants to selection * fix code smell * Prefilter, column at start, cost value and version : Fix #99 #198 #202 #167 #77 (#203) * Prefilter, column at start, cost value and version : Fix #99 #198 #202 * Rebase fix * Comment can be linked to other elements : Fix #167 * code smell fix * Breadcrumb behaviour added * test failure fix * Version update * More content inside context panel : Fix #160 (#207) * More content inside context panel : Fix #160 * Code smell fix * Code coverage * 205 style UI components (#208) * feat: style column chooser * feat: update styling * feat: update styling: * Rebase and ConnectionVisibilitySelectorViewModel behaviour fixed * Code coverage * Tests fixed Co-authored-by: Martin Risseeuw <hello@martinr.nl> * Version update * DynamicComponent is also reset : Fix #209 (#210) * Bug fix when changing on same view type * Test fix * Participant deletion : Fix #196 (#211) * mark review task as done wip * delete comments, replies and remove assigned tasks to deleted participant * fix code smell * Navigation by double-clicking enabled : Fix #161 (#212) * Navigation by double-clicking enabled : Fix #161 * Code coverage and reacts to link for comment * Test coverage * code smell fix * Columns can be filtered with/without traces : Fix #204 (#216) * Version update * feat: update styles (#222) Co-authored-by: Martin Risseeuw <hello@martinr.nl> * Save diagram layout : Fix #213 (#225) * Save diagram layout * add name definition to layout configuration * fix service test * add popup test * saving diagram layout * fix code smell * add ReviewTaskId field to BaseViewViewModel * remove ReviewTaskId from InterfaceViewViewModel * SearchService implemented : Fix #127 (#223) * SearchService : Needs more unit test * workflows * Update CodeQuality.yml * Update codeql-analysis.yml * Unit tests added * Code coverage Co-authored-by: Alex Vorobiev <a.vorobiev@rheagroup.com> * Search Page and Model Page implemented : Fix #224 #226 (#228) * Search Page and Model Page implemented : Fix #224 #226 * Code smell and code coverage * Add nodes instead of replacing them (#230) * Add nodes instead of replacing them * A comment is linked to a ReviewTask: Fix #217 (#231) * A comment is linked to a ReviewTask: Fix #217 * Code smells * Popup with SelectedItemBase component created : Fix #218 (#234) * Popup with SelectedItemBase component created : Fix #218 * Code coverage and cleanup * Code cleanup * The user menu contains the name of the current role: Fix #233 (#235) * Assigned Participants are displayed : Fix #236 (#237) * Load diagram configuration : Fix #214 (#241) * loading layout configuration * code coverage * fix bug * fix bug * DoE is assigned to Participant : Fix #238 (#239) * DoE is assigned to Participant : Fix #238 * Participant' domains of expertise are displayed * Code coverage * Update of dll for searchEngine * AccessRight for saving diagram created : Fix #219 #242 #243 (#244) * AccessRight for saving diagram created : Fix #219 #242 #243 * Code coverage * Docker files update & Comments for ReviewTask:Fix #240 #232 (#245) * Docker files update & Comments for ReviewTask:Fix #240 #232 * ReadMe and code coverage * Fix link on first elements (#249) * Filtering added, Center inside diagram and vertices: Fix #215 #248 #250 (#251) * Filtering included. Save DiagramDto working * Filtering added, Center inside diagram and vertices: Fix #215 #248 #250 * Code coverage * Diagram is also initializes when copying component:Fix #252 (#253) * Save-load modified, delete configuration enabled :Fix #254 #255 #257 (#258) * 227 style UI components (#259) * feat: update component styling * feat: style search * feat: update components * Rebase on dev * Rebase on dev again Co-authored-by: Martin Risseeuw <hello@martinr.nl> Co-authored-by: antoineatrhea <a.theate@rheagroup.com> * Commenting on ModelPage enabled : Fix #256 (#262) * Commenting on ModelPage enabled : Fix #256 * Code coverage and smell * Navigation inside interfaceView and bug fix : Fix #260 #261 (#263) * Navigation inside interfaceView and bug fix : Fix #260 261 * Remove unnecessary code * Version update * ui-dsm-search-service image and Bugs fixes: Fix #264 #265 #266 #267 (#268) * Version update * Missed search results * Reporting (#269) * Iteration is now indexed : Fix #271 (#272) * Iteration is now indexed correctly: Fix #271 * Code coverage * Rebase * Version update * dockerfile update * Upgrade CDP4Reporting to official nuget (#274) * UI updates 16 01 2023 (#273) * update loading component * higlight scroll in to view element Co-authored-by: Martin Risseeuw <hello@martinr.nl> * feat: search styling * feat: style budget * BudgetTemplate can be uploaded : Fix #270 (#275) * BudgetTemplate can be uploaded : Fix #270 * Code coverage * Version update * style: add loading to app html * Clear selected DoE * Deletion exception fixed and switching fixed: Fix #278 #277 (#279) * Deletion exception fixed and switching fixed: Fix #278 #277 * code coverage * Version update * Search page css updated * Paging removed from requirement breakdown views * Missing scroll inside RequirementBreakdown when focusing * delete reply bug fix and link to relationship fix * style update Co-authored-by: sam.gerene <s.gerene@rheagroup.com> Co-authored-by: martinatg <111426664+martinatg@users.noreply.github.com> Co-authored-by: Martin Risseeuw <hello@martinr.nl> Co-authored-by: nabilatrhea <112706228+nabilatrhea@users.noreply.github.com> Co-authored-by: Jaime Bernar <112856984+jaimeatrhea@users.noreply.github.com> Co-authored-by: Alex Vorobiev <a.vorobiev@rheagroup.com> Co-authored-by: Alexander van Delft <56023674+lxatrhea@users.noreply.github.com>
1 parent 55e0062 commit f7889cf

937 files changed

Lines changed: 110852 additions & 14 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CodeQuality.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build & Test & SonarQube
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16+
17+
- name: Setup .NET Core
18+
uses: actions/setup-dotnet@v1
19+
with:
20+
dotnet-version: '6.0.x'
21+
22+
- name: add DevExpress nuget feed
23+
run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_NUGET_KEY }} --store-password-in-clear-text
24+
25+
- name: add Gitlab Generic Platform nuget feed
26+
run: dotnet nuget add source https://gitlab.esa.int/api/v4/projects/7524/packages/nuget/index.json --store-password-in-clear-text -n generic-platform-feed -u ${{ secrets.GP_NUGET_USER }} -p ${{ secrets.GP_NUGET_KEY }}
27+
28+
- name: Restore dependencies
29+
run: dotnet restore UI_DSM.sln
30+
31+
- name: Sonarqube Begin
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
34+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
35+
run: |
36+
dotnet tool install --global dotnet-sonarscanner
37+
dotnet sonarscanner begin /k:"RHEAGROUP_UI-DSM" /o:"rheagroup" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./CoverageResults/coverage.opencover.xml"
38+
39+
- name: Build
40+
run: dotnet build UI_DSM.sln --no-restore /p:ContinuousIntegrationBuild=true
41+
42+
- name: Test with the dotnet CLI
43+
run: dotnet test UI_DSM.sln --no-build --verbosity normal --filter FullyQualifiedName!~IntegrationTests /p:CollectCoverage=true /p:CoverletOutput="../CoverageResults/" /p:MergeWith="../CoverageResults/coverage.json" /p:CoverletOutputFormat=\"opencover,json\" -m:1
44+
45+
- name: Sonarqube end
46+
run: dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '42 2 * * 3'
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [ 'csharp' ]
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v3
26+
27+
- name: Setup .NET Core
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: 6.0.x
31+
32+
# Initializes the CodeQL tools for scanning.
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v2
35+
with:
36+
languages: ${{ matrix.language }}
37+
38+
- name: add DevExpress nuget feed
39+
run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_NUGET_KEY }} --store-password-in-clear-text
40+
41+
- name: add Gitlab Genric Platform nuget feed
42+
run: dotnet nuget add source https://gitlab.esa.int/api/v4/projects/7524/packages/nuget/index.json --store-password-in-clear-text -n generic-platform-feed -u ${{ secrets.GP_NUGET_USER }} -p ${{ secrets.GP_NUGET_KEY }}
43+
44+
- name: Install dependencies
45+
run: dotnet restore UI_DSM.sln
46+
47+
- name: Build
48+
run: dotnet build UI_DSM.sln --no-restore
49+
50+
- name: Perform CodeQL Analysis
51+
uses: github/codeql-action/analyze@v2
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish UI-DSM Docker Container
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout branch
13+
uses: actions/checkout@v3
14+
15+
- name: Login to DockerHub Registry
16+
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
17+
18+
- name: Get the version
19+
id: vars
20+
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
21+
22+
- name: Build the Docker image and tag
23+
run: DOCKER_BUILDKIT=1 docker build -f Dockerfile -t rheagroup/ui-dsm:latest -t rheagroup/ui-dsm:${{ steps.vars.outputs.tag }} .
24+
25+
- name: push $RELEASE_VERSION tag
26+
run: docker push rheagroup/ui-dsm:${{ steps.vars.outputs.tag }}
27+
28+
- name: push latest tag
29+
run: docker push rheagroup/ui-dsm:latest

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.user
1010
*.userosscache
1111
*.sln.docstates
12+
*.vscode
1213

1314
# User-specific files (MonoDevelop/Xamarin Studio)
1415
*.userprefs
@@ -348,3 +349,8 @@ MigrationBackup/
348349

349350
# Ionide (cross platform F# VS Code tools) working folder
350351
.ionide/
352+
353+
Storage/
354+
.env
355+
/UI_DSM.Server/Reports/Generic/DSReport.rep4
356+
/UI_DSM.Server/Reports/Generic/MassBudget-ENVISION-Summary.rep4
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# syntax=docker/dockerfile:1.4
2+
3+
FROM gitlab.esa.int:4567/rhea-generic-platform/rhea-generic-platform/gp-search-service:0.1.1
4+
5+
COPY Docker-images/SearchService/Plugins /app/Plugins
101 KB
Binary file not shown.
70 KB
Binary file not shown.

Docker-images/SearchService/README

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
UI-DSM Search Service container application
2+
3+
# Build and Deploy using Docker
4+
5+
The UI-DSM Search Service container is built using docker and docker buildkit and the result is a Docker container ready to be deployed (or pushed to a Docker registry). The Docker file is located in the Docker-images/SearchService project folder.
6+
7+
> The Docker command needs to be executed from the commandline in the **solution** folder.
8+
9+
For docker login, create a (ui-dsm_framework) project level access token.
10+
11+
```
12+
$ ./solutionfolder# docker login gitlab.esa.int:4567
13+
$ ./solutionfolder# docker build -f Docker-images/SearchService/Dockerfile -t rheagroup/ui-dsm-search-service:latest -t rheagroup/ui-dsm-search-service:<version> .
14+
```
15+
16+
Run the container in local environment
17+
18+
```
19+
docker run -p 2222:80 -it -d --name ui-dsm-search-service --net uidsm-net rheagroup/ui-dsm-search-service:latest
20+
```
21+
22+
Push to docker registry
23+
24+
```
25+
$ ./solutionfolder# docker push rheagroup/ui-dsm-search-service:latest
26+
$ ./solutionfolder# docker push rheagroup/ui-dsm-search-service:<specific-version>
27+
```
28+
29+
# License
30+
31+
Copyright (c) 2022 RHEA S.A.
32+
The UI-DSM Search Service is provided to the community under the Apache License 2.0.

Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2+
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
3+
4+
WORKDIR /src
5+
COPY ["UI_DSM.Server", "UI_DSM.Server/"]
6+
COPY ["UI_DSM.Client", "UI_DSM.Client/"]
7+
COPY ["UI_DSM.Serializer.Json", "UI_DSM.Serializer.Json/"]
8+
COPY ["UI_DSM.Shared", "UI_DSM.Shared/"]
9+
10+
RUN --mount=type=secret,id=envConfig . /run/secrets/envConfig \
11+
&& dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${DEVEXPRESS_NUGET_KEY} --store-password-in-clear-text \
12+
&& dotnet nuget add source https://gitlab.esa.int/api/v4/projects/7524/packages/nuget/index.json -n GPFeed -u ${GP_NUGET_USER} -p ${GP_NUGET_TOKEN} --store-password-in-clear-text \
13+
&& dotnet restore "UI_DSM.Server/UI_DSM.Server.csproj"
14+
15+
WORKDIR "/src/UI_DSM.Server"
16+
RUN dotnet build --no-restore "UI_DSM.Server.csproj" -c Release -o /app/build
17+
18+
FROM build AS publish
19+
RUN dotnet publish "UI_DSM.Server.csproj" -c Release -o /app/publish /p:UseAppHost=false
20+
21+
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS final
22+
WORKDIR /app
23+
COPY --from=publish /app/publish .
24+
COPY ["UI_DSM.Server/Reports", "storage/"]
25+
26+
RUN apt update
27+
RUN apt install -y libc6 -f -o APT::Immediate-Configure=0
28+
RUN apt install -y libicu-dev libharfbuzz0b libfontconfig1 libfreetype6 libosmesa6 libglu1-mesa
29+
30+
ENTRYPOINT ["dotnet", "UI_DSM.Server.dll"]

Nuget.Config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3+
<clear />
34
<packageSources>
4-
<clear />
5-
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
5+
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
66
</packageSources>
7-
</configuration>
7+
</configuration>

0 commit comments

Comments
 (0)