Skip to content

Commit

Permalink
Add nuget source in the Dockerfile for identity.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurrahim373 committed Jan 24, 2024
1 parent c8555a6 commit 9e50b1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions identity-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ WORKDIR /src
COPY ["IdentityService.Web/IdentityService.Web.csproj", "IdentityService.Web/"]
COPY ["IdentityService.Infrastructure/IdentityService.Infrastructure.csproj", "IdentityService.Infrastructure/"]
COPY ["IdentityService.Data/IdentityService.Data.csproj", "IdentityService.Data/"]

RUN --mount=type=secret,id=github_token \
dotnet nuget add source --username rahim373 --password $(cat /run/secrets/github_token) --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Rahim373/index.json"

RUN dotnet restore "./IdentityService.Web/./IdentityService.Web.csproj"
COPY . .
WORKDIR "/src/IdentityService.Web"
Expand Down
6 changes: 5 additions & 1 deletion identity-service/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# :key: Identity Service
[![Build and Publish - Identity Service](https://github.com/Rahim373/utube/actions/workflows/identity_service-build_and_publish.yml/badge.svg?branch=dev)](https://github.com/Rahim373/utube/actions/workflows/identity_service-build_and_publish.yml)

This service is the identity provider for the other services in this system. Whenever the client application needs sign in it shows the login page and after successfull login, it redirects the request to the client as well.

Beside, it validates the JWT token that is used accross the system.
Expand All @@ -8,7 +10,9 @@ Beside, it validates the JWT token that is used accross the system.
1. .Net Core 8
1. [Identity Server 4](https://identityserver4.readthedocs.io/en/latest/)
1. MongoDB
1.
1. [Serilog](https://serilog.net/)
1. [serilog-sinks-elasticsearch](https://github.com/serilog-contrib/serilog-sinks-elasticsearch)
1. [prometheus-net](https://github.com/prometheus-net/prometheus-net)


## Current Implementation
Expand Down

0 comments on commit 9e50b1c

Please sign in to comment.