-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from brunohbrito/2.0/plug-new-identity-system
3.2.0/plug new identity system
- Loading branch information
Showing
105 changed files
with
1,810 additions
and
679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# base image | ||
FROM node:12.7-alpine as builder | ||
|
||
# install and cache app dependencies | ||
COPY ["src/Frontend/Jp.UserManagement/package.json", "./"] | ||
COPY ["src/Frontend/Jp.UserManagement/package-lock.json", "./"] | ||
|
||
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build | ||
|
||
RUN npm ci && mkdir /app && mv ./node_modules ./app/ | ||
|
||
WORKDIR /app | ||
|
||
# add app | ||
COPY ["src/Frontend/Jp.UserManagement/", "/app"] | ||
|
||
# rebuild node | ||
RUN npm rebuild node-sass | ||
# generate build | ||
RUN npm run ng build -- --configuration=docker | ||
|
||
################## | ||
### production ### | ||
################## | ||
|
||
# base image | ||
FROM nginx:1.17.2-alpine | ||
|
||
## Remove default nginx website | ||
RUN rm -rf /usr/share/nginx/html/* | ||
|
||
# copy artifact build from the 'build environment' | ||
COPY --from=builder /app/nginx/nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=builder /app/dist /usr/share/nginx/html | ||
|
||
|
||
# expose port 80 | ||
EXPOSE 80/tcp | ||
|
||
# run nginx | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
param([string] $migrations = 'Initial', [string] $db = "sqlserver") | ||
$currentPath = Get-Location | ||
Set-Location ../src/Frontend/Jp.UI.SSO | ||
|
||
$settings = Get-Content appsettings.json -raw | ||
|
||
# SQL Server Migration | ||
if ($db -eq "sqlserver") { | ||
$settings = $settings -replace '"DatabaseType".*', '"DatabaseType": "SqlServer",' | ||
$settings | set-content appsettings.json | ||
|
||
dotnet ef migrations add $migrations -c SsoContext -p ..\..\Backend\Jp.Database\Jp.Database.csproj | ||
} | ||
|
||
|
||
|
||
# MySql Migration | ||
if ($db -eq "mysql") { | ||
$settings = $settings -replace '"DatabaseType".*', '"DatabaseType": "MySql",' | ||
$settings | set-content 'appsettings.json' | ||
|
||
dotnet ef migrations add $migrations -c SsoContext -p ..\..\Backend\Jp.Database\Jp.Database.csproj | ||
} | ||
|
||
# Postgre Migration | ||
if ($db -eq "postgre") { | ||
$settings = $settings -replace '"DatabaseType".*', '"DatabaseType": "Postgre",' | ||
$settings | set-content 'appsettings.json' | ||
dotnet ef migrations add $migrations -c SsoContext -p ..\..\Backend\Jp.Database\Jp.Database.csproj | ||
} | ||
|
||
# Sqlite Migration | ||
|
||
if ($db -eq "sqlite") { | ||
$settings = $settings -replace '"DatabaseType".*', '"DatabaseType": "Sqlite",' | ||
$settings | set-content 'appsettings.json' | ||
dotnet ef migrations add $migrations -c SsoContext -p ..\..\Backend\Jp.Database\Jp.Database.csproj | ||
} | ||
|
||
Set-Location $currentPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{ | ||
"notifications": [ | ||
{ "icon": "text-info fas fa-layer-group", "title": "Feature", "description": "2019-10 SSO and AdminUI now are separated projects" }, | ||
{ "icon": "text-primary fas fa-file-signature", "title": "Cryptography", "description": "2020-02 Identity Customization + Event Source" }, | ||
{ "icon": "text-danger fas fa-key", "title": "Cryptography", "description": "2020-01 Key Material" }, | ||
{ "icon": "text-primary fas fa-hdd", "title": "Blob AWS", "description": "2019-12 AWS S3 Blob Store" }, | ||
{ "icon": "text-info fas fa-mug-hot", "title": "Global Settings", "description": "2019-12 Global Settings" }, | ||
{ "icon": "text-warning fas fa-envelope-open-text", "title": "E-mail", "description": "2019-11 Conifgure E-mail settings" }, | ||
{ "icon": "text-primary fas fa-layer-group", "title": "Feature", "description": "2019-10 SSO and AdminUI now are separated projects" }, | ||
{ "icon": "text-info fas fa-seedling", "title": "NET Core 3.0", "description": "2019-10 Updated to ASP.NET Core 3" }, | ||
{ "icon": "text-info fab fa-microsoft", "title": "DevOps", "description": "2019-06 Azure CI/CD ready" }, | ||
{ "icon": "text-info fas fa-kiwi-bird", "title": "Session", "description": "2019-05 UI Session improvements" }, | ||
{ "icon": "text-warning fab fa-docker", "title": "Docker", "description": "2019-04 Docker Ready" }, | ||
{ "icon": "text-info fas fa-code-branch", "title": "NET Core 2.2", "description": "2019-03 Updated to ASP.NET Core 2.2" }, | ||
{ "icon": "text-success fas fa-id-card", "title": "ID4", "description": "2019-03 IdentityServer4 2.4 Components" }, | ||
{ "icon": "text-danger fas fa-rocket", "title": "Launch", "description": "2018-10 first release" } | ||
{ "icon": "text-info fas fa-kiwi-bird", "title": "Session", "description": "2019-05 UI Session improvements" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.