Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build test and pack

on:
push:
branches: [main, develop]
branches: [master, develop]
pull_request:
branches: [main, develop]
branches: [master, develop]

jobs:
build:
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Restore dependencies
run: dotnet restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Restore dependencies
run: dotnet restore
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
description: "Packages Version"

# Default value if no value is explicitly provided
default: "6.2.0"
default: "7.0.0"

# Input has to be provided for the workflow to run
required: true
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Restore dependencies
run: dotnet restore
Expand Down
36 changes: 4 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Mono auto generated files
mono_crash.*

# Build results
[Dd]ebug/
Expand Down Expand Up @@ -255,8 +250,6 @@ orleans.codegen.cs
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
Expand Down Expand Up @@ -301,13 +294,6 @@ node_modules/
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
Expand All @@ -316,15 +302,6 @@ paket-files/
# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/

# CodeRush personal settings
.cr/personal

# Python Tools for Visual Studio (PTVS)
__pycache__/
Expand All @@ -337,14 +314,9 @@ __pycache__/
# Tabs Studio
*.tss

# Telerik's JustMock configuration file
*.jmconfig

# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs



# OpenCover UI analysis results
OpenCover/
Expand All @@ -358,8 +330,6 @@ ASALocalRun/
# NVidia Nsight GPU debugger configuration file
*.nvuser

# MFractors (Xamarin productivity tool) working folder
.mfractor/

logs/

Expand Down Expand Up @@ -466,3 +436,5 @@ $RECYCLE.BIN/
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

## *.env
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [v7.0.0](https://github.com/Genocs/genocs-library/compare/v6.4.0...v7.0.0)

> 24 November 2024

- Ver 700 [`#120`](https://github.com/Genocs/genocs-library/pull/120)
- Merge to master branch [`#114`](https://github.com/Genocs/genocs-library/pull/114)
- Ver 640 [`#109`](https://github.com/Genocs/genocs-library/pull/109)
- Ver 600 [`#106`](https://github.com/Genocs/genocs-library/pull/106)
- v6.2.0 [`#100`](https://github.com/Genocs/genocs-library/pull/100)
- Ver 610 [`#98`](https://github.com/Genocs/genocs-library/pull/98)
- Ver 600 [`#89`](https://github.com/Genocs/genocs-library/pull/89)
- Ver 600 [`#86`](https://github.com/Genocs/genocs-library/pull/86)
- Update LangVersion, target frameworks, and refactor code [`10f3fc8`](https://github.com/Genocs/genocs-library/commit/10f3fc8ce182cc062a4cbbe3b3a38964d05cd1b4)
- Update Genocs.Core and related package references to version 7.0.0 [`6a1f7e0`](https://github.com/Genocs/genocs-library/commit/6a1f7e0d896088b91dd20220ae01e7081f78b988)
- Refactor Docker configurations and update README for improved setup instructions [`f73d401`](https://github.com/Genocs/genocs-library/commit/f73d401c6c323ba7aa92675e8929c8811d53730c)
- Update LangVersion, packages, and target frameworks [`af78d8d`](https://github.com/Genocs/genocs-library/commit/af78d8d8b790a53a9a73296b1118bdc96cf6721d)
- Update CHANGELOG for v6.4.0 release with recent changes and improvements [`74a96fd`](https://github.com/Genocs/genocs-library/commit/74a96fd04d8a263e3087e91e8c34e2a5d9e6b5f0)
- Update GitHub workflows and documentation for .NET 9 support [`307877e`](https://github.com/Genocs/genocs-library/commit/307877e76d1eb89ec646a5883cea52b305272bbf)
- Update package versions and remove unused import [`766bec0`](https://github.com/Genocs/genocs-library/commit/766bec0cfe96a169280fe198ceed6c8917b59df3)

#### [v6.4.0](https://github.com/Genocs/genocs-library/compare/v6.3.0...v6.4.0)

> 10 November 2024
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<Version>6.3.0</Version>
<LangVersion>10.0</LangVersion>
<LangVersion>13.0</LangVersion>
<Company>Genocs</Company>
<Copyright>Genocs 2024</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

# Genocs .NET library

This repo contains a set of libraries to build LOB (Line Of Business) applications. The library is open source and built to be PRODUCTION READY. The library is built on top of .NET8, it is designed and maintained by Genocs.
This repo contains a set of libraries to build LOB (Line Of Business) applications. The library is open source and built to be PRODUCTION READY. The library is built on top of .NET9, it is designed and maintained by Genocs.

Packages are available on [NuGet Genocs](https://www.nuget.org/profiles/gioema_nocco).

Expand Down Expand Up @@ -74,9 +74,18 @@ You can use **Docker compose** to setup the infrastructure components just by ru
``` bash
cd ./containers
# Setup the infrastructure
docker compose -f ./infrastructure-bare.yml --env-file ./.env --project-name genocs up -d
docker compose -f ./infrastructure.yml --env-file ./.env --project-name genocs up -d

# Use this file only in case you want to setup Redis and Postgres db (no need if you use mongo)
docker compose -f ./infrastructure-db.yml --env-file ./.env --project-name genocs up -d

# Use this file only in case you want to setup monitoring infrastructure components (Prometheus, Grafana, InfluxDB, Jaeger, Seq)
docker compose -f ./infrastructure-monitoring.yml --env-file ./.env --project-name genocs up -d

# Use this file only in case you want to setup scaling infrastructure components (Fabio, Consul)
docker compose -f ./infrastructure-scaling.yml --env-file ./.env --project-name genocs up -d

# Use this file only in case you want to setup security infrastructure components (Vault)
docker compose -f ./infrastructure-security.yml --env-file ./.env --project-name genocs up -d

# Use this file only in case you want to setup sqlserver database (no need if you use postgres)
Expand Down
Empty file removed containers/.env
Empty file.
39 changes: 39 additions & 0 deletions containers/infrastructure-db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
services:

redis:
image: redis
hostname: redis
container_name: redis
ports:
- 6379:6379
networks:
- genocs
# network_mode: host
volumes:
- redis:/data

postgres:
image: postgres
hostname: postgres
container_name: postgres
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- 5432:5432
networks:
- genocs
# network_mode: host
volumes:
- postgres:/var/lib/postgresql/data

networks:
genocs:
name: genocs-network
driver: bridge
external: true

volumes:
redis:
driver: local
postgres:
driver: local
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,6 @@ services:
volumes:
- mongodb:/data/db

redis:
image: redis
hostname: redis
container_name: redis
ports:
- 6379:6379
networks:
- genocs
# network_mode: host
volumes:
- redis:/data

postgres:
image: postgres
hostname: postgres
container_name: postgres
environment:
- POSTGRES_PASSWORD=mysecretpassword
ports:
- 5432:5432
networks:
- genocs
# network_mode: host
volumes:
- postgres:/var/lib/postgresql/data

networks:
genocs:
name: genocs-network
Expand All @@ -61,7 +35,3 @@ volumes:
driver: local
rabbitmq:
driver: local
redis:
driver: local
postgres:
driver: local
2 changes: 2 additions & 0 deletions containers/local.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is a template for the .env file that is used by the docker-compose.yml file.
POSTGRES_PASSWORD=<<POSTGRES_PASSWORD>>
10 changes: 10 additions & 0 deletions local.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Compose supports declaring default environment variables in an environment file named .env placed in the folder docker-compose command is executed from (current working directory).
# Compose expects each line in an env file to be in VAR=VAL format. Lines beginning with # (i.e. comments) are ignored, as are blank lines.
# Note: Values present in the environment at runtime will always override those defined inside the .env file. Similarly, values passed via command-line arguments take precedence as well.

# The IP below should be swapped to your real IP or DNS name, like 192.168.88.248, etc. if testing from remote browsers or mobile devices

PROJECT_EXTERNAL_DNS_NAME_OR_IP=localhost

# The docker image version
DOCKER_IMAGE_TAG=6.0.0
44 changes: 44 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Description

This folder contains useful script you can use to automate tasks. The scripts are bash or powershell scripts.

## How to obtain the list of repository on Azure DevOps

[Repository List](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-5.0)

```api
https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-5.0
https://dev.azure.com/genocs/_apis/git/repositories?api-version=5.0
```
### List of repositories




### Window Services

Following some commands that you can use to handle windows services

``` cmd
echo To query the available windows services
sc query

echo To remove the registration
SC DELETE [service_name]
```


## How to clone the repositories at once

1. Open a bash shell
2. Run the following command

```bash
./git-clone-all.sh
```

3. Checkout develop branch

```bash
./git-pull-all.sh
```
16 changes: 16 additions & 0 deletions scripts/git-clone-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
REPOSITORIES=(genocs-library)

if [ "$1" = "-p" ]
then
echo ${REPOSITORIES[@]} | sed -E -e 's/[[:blank:]]+/\n/g' | xargs -I {} -n 1 -P 0 sh -c 'printf "========================================================\nCloning repository: {}\n========================================================\n"; git clone https://github.com/Genocs/_git/{}'
else
for REPOSITORY in ${REPOSITORIES[*]}
do
echo ========================================================
echo Cloning repository: $REPOSITORY
echo ========================================================
REPO_URL=https://github.com/Genocs/_git/$REPOSITORY
git clone $REPO_URL
done
fi
27 changes: 27 additions & 0 deletions scripts/git-pull-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
REPOSITORIES=(genocs-library)

if [ "$1" = "-p" ]
then
echo ${REPOSITORIES[@]} | sed -E -e 's/[[:blank:]]+/\n/g' | xargs -I {} -n 1 -P 0 sh -c 'printf "========================================================\nUpdating repository: {}\n========================================================\n"; git -C {} pull; git -C {} checkout develop; '
else
for REPOSITORY in ${REPOSITORIES[*]}
do
echo ========================================================
echo Updating repository: $REPOSITORY
echo ========================================================
cd $REPOSITORY
git pull
#git checkout master
#git checkout develop
#echo 'clear local branches'
#git remote prune origin --dry-run
#git remote update origin --p
echo 'number of branches'
#echo 'remote:'
git branch -r | wc -l
#echo 'all:'
#git branch --all | wc -l
cd ..
done
fi
Loading