tuitio/Notes.txt

57 lines
2.6 KiB
Plaintext
Raw Normal View History

2020-12-19 18:25:42 +02:00
#######################################################################################################################################################
Publish:
dotnet publish --configuration Release --runtime win7-x64
Create windows service:
2020-12-25 02:37:28 +02:00
sc create IdentityServer.Api binPath= "<path_to_the_service_executable>"
2020-12-20 03:06:43 +02:00
#######################################################################################################################################################
2020-12-20 12:53:22 +02:00
#######################################################################################################################################################
Push language package:
2021-11-12 01:44:26 +02:00
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
2020-12-20 12:53:22 +02:00
#######################################################################################################################################################
2020-12-20 03:06:43 +02:00
TO DO:
2020-12-25 02:37:28 +02:00
- Cache for users
2020-12-25 02:59:02 +02:00
#######################################################################################################################################################
Azure DevOps Repository Password: ***REMOVED***
2020-12-25 02:37:28 +02:00
#######################################################################################################################################################
Docker commands:
*****************
Create image:
--from solution folder:
2020-12-26 00:56:46 +02:00
docker image build -t "identity-server-api:1.0.1" -f "IdentityServer.Api/Dockerfile" .
2020-12-25 02:59:02 +02:00
Run image:
2020-12-26 00:56:46 +02:00
docker run -p 5053:80 -it identity-server-api:1.0.1
2020-12-25 02:37:28 +02:00
2020-12-25 02:59:02 +02:00
Push image to registry:
--tag image
2020-12-26 00:56:46 +02:00
docker tag identity-server-api:1.0.1 cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
2020-12-25 02:37:28 +02:00
2020-12-25 02:59:02 +02:00
--login to registry
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
2020-12-25 02:37:28 +02:00
2020-12-25 02:59:02 +02:00
--push image
2020-12-26 00:56:46 +02:00
docker push cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
2020-12-25 02:37:28 +02:00
2020-12-25 02:59:02 +02:00
Pull image from registry
--login to registry with readonly rights
docker login --username=***REMOVED*** --password=***REMOVED*** cloud.canister.io:5000
2020-12-25 02:37:28 +02:00
2020-12-25 02:59:02 +02:00
--pull image
2020-12-26 00:56:46 +02:00
docker pull cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
2020-12-25 02:37:28 +02:00
2020-12-25 02:59:02 +02:00
Run container in prod env
2020-12-26 00:56:46 +02:00
docker run --restart=always -p 5007:80 -d cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
2020-12-25 02:37:28 +02:00
2020-12-25 02:59:02 +02:00
Rename container
docker rename <container_id> identity-server-api
2020-12-25 02:37:28 +02:00
#######################################################################################################################################################
2021-02-02 00:26:23 +02:00
Docker container last version: 1.0.1
2021-11-10 11:37:15 +02:00
##############################################################################################