tuitio/Notes.txt

57 lines
2.6 KiB
Plaintext

#######################################################################################################################################################
Publish:
dotnet publish --configuration Release --runtime win7-x64
Create windows service:
sc create IdentityServer.Api binPath= "<path_to_the_service_executable>"
#######################################################################################################################################################
#######################################################################################################################################################
Push language package:
dotnet nuget push IdentityServer.PublishedLanguage.1.1.0.nupkg -k ***REMOVED*** -s http://***REMOVED***/NuGetServer/nuget
dotnet nuget push IdentityServer.Wrapper.1.1.0.nupkg -k ***REMOVED*** -s http://***REMOVED***/NuGetServer/nuget
#######################################################################################################################################################
TO DO:
- Cache for users
#######################################################################################################################################################
Azure DevOps Repository Password: ***REMOVED***
#######################################################################################################################################################
Docker commands:
*****************
Create image:
--from solution folder:
docker image build -t "identity-server-api:1.0.1" -f "IdentityServer.Api/Dockerfile" .
Run image:
docker run -p 5053:80 -it identity-server-api:1.0.1
Push image to registry:
--tag image
docker tag identity-server-api:1.0.1 cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
--login to registry
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
--push image
docker push cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
Pull image from registry
--login to registry with readonly rights
docker login --username=***REMOVED*** --password=***REMOVED*** cloud.canister.io:5000
--pull image
docker pull cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
Run container in prod env
docker run --restart=always -p 5007:80 -d cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
Rename container
docker rename <container_id> identity-server-api
#######################################################################################################################################################
Docker container last version: 1.0.1
##############################################################################################