notes update
parent
6f8574bd43
commit
5379868395
|
@ -18,7 +18,6 @@
|
||||||
<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="$(SerilogSinksMSSqlServerPackageVersion)" />
|
<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="$(SerilogSinksMSSqlServerPackageVersion)" />
|
||||||
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="$(AutoMapperExtensionsPackageVersion)" />
|
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="$(AutoMapperExtensionsPackageVersion)" />
|
||||||
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="$(MediatRPackageVersion)" />
|
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="$(MediatRPackageVersion)" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="$(SwashbucklePackageVersion)" />
|
|
||||||
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="$(MicrosoftExtensionsPackageVersion)" />
|
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="$(MicrosoftExtensionsPackageVersion)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
23
Notes.txt
23
Notes.txt
|
@ -16,20 +16,41 @@ dotnet nuget push IdentityServer.Wrapper.1.0.1.nupkg -k ***REMOVED*** -s http://
|
||||||
TO DO:
|
TO DO:
|
||||||
- Cache for users
|
- Cache for users
|
||||||
|
|
||||||
|
#######################################################################################################################################################
|
||||||
|
Azure DevOps Repository Password: ***REMOVED***
|
||||||
#######################################################################################################################################################
|
#######################################################################################################################################################
|
||||||
Docker commands:
|
Docker commands:
|
||||||
*****************
|
*****************
|
||||||
|
|
||||||
Create image:
|
Create image:
|
||||||
--from solution folder:
|
--from solution folder:
|
||||||
docker image build -t "identity-server-api:1.0.0" -f "Chatbot.Api/Dockerfile" .docker
|
docker image build -t "identity-server-api:1.0.0" -f "IdentityServer.Api/Dockerfile" .
|
||||||
|
|
||||||
|
Run image:
|
||||||
|
docker run -p 5053:80 -it identity-server-api:1.0.0
|
||||||
|
|
||||||
|
Push image to registry:
|
||||||
|
--tag image
|
||||||
|
docker tag identity-server-api:1.0.0 cloud.canister.io:5000/tstanciu/identity-server:api-1.0.0
|
||||||
|
|
||||||
|
--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.0
|
||||||
|
|
||||||
|
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.0
|
||||||
|
|
||||||
|
Run container in prod env
|
||||||
|
docker run --restart=always -p 5007:80 -d cloud.canister.io:5000/tstanciu/identity-server:api-1.0.0
|
||||||
|
|
||||||
|
Rename container
|
||||||
|
docker rename <container_id> identity-server-api
|
||||||
#######################################################################################################################################################
|
#######################################################################################################################################################
|
||||||
|
|
||||||
Docker container last version: 1.0.0
|
Docker container last version: 1.0.0
|
||||||
|
|
Loading…
Reference in New Issue