master
Tudor Stanciu 2021-08-23 10:53:28 +03:00
parent 2e11a18072
commit 165a49d255
2 changed files with 9 additions and 8 deletions

View File

@ -8,34 +8,34 @@ Docker commands:
Create image:
--from solution folder:
docker image build -t "chatbot-api:1.0.4" -f "Chatbot.Api/Dockerfile" .
docker image build -t "chatbot-api:1.0.5" -f "Chatbot.Api/Dockerfile" .
Run image:
docker run -p 5053:80 -it chatbot-api:1.0.4
docker run -p 5053:80 -it chatbot-api:1.0.5
Push image to registry:
--tag image
docker tag chatbot-api:1.0.4 cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
docker tag chatbot-api:1.0.5 cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5
--login to registry
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
--push image
docker push cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
docker push cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5
Pull image from registry
--login to registry with readonly rights
docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000
--pull image
docker pull cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
docker pull cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5
Run container in prod env
docker run --restart=always -p 5006:80 -d cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
docker run --restart=always -p 5006:80 -d cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5
Rename container
docker rename <container_id> chatbot-api
##############################################################################################
Docker container last version: 1.0.4
Docker container last version: 1.0.5
##############################################################################################

View File

@ -3,6 +3,7 @@
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="sta.nuget" value="http://stawebsrv:8081/nugetserver/nuget" />
<!--<add key="sta.nuget" value="http://155.188.1.18:8081/nugetserver/nuget" />-->
<add key="sta.nuget" value="https://toodle.ddns.net/public-nuget-server/nuget" />
</packageSources>
</configuration>