2020-06-07 14:32:46 +03:00
|
|
|
Basic ***REMOVED***
|
|
|
|
|
2020-12-25 02:31:13 +02:00
|
|
|
##############################################################################################
|
|
|
|
Azure DevOps Repository Password: ***REMOVED***
|
2020-06-07 14:32:46 +03:00
|
|
|
##############################################################################################
|
|
|
|
Docker commands:
|
|
|
|
*****************
|
|
|
|
|
|
|
|
Create image:
|
|
|
|
--from solution folder:
|
2021-08-23 10:53:28 +03:00
|
|
|
docker image build -t "chatbot-api:1.0.5" -f "Chatbot.Api/Dockerfile" .
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
Run image:
|
2021-08-23 10:53:28 +03:00
|
|
|
docker run -p 5053:80 -it chatbot-api:1.0.5
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
Push image to registry:
|
|
|
|
--tag image
|
2021-08-23 10:53:28 +03:00
|
|
|
docker tag chatbot-api:1.0.5 cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
--login to registry
|
|
|
|
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
|
|
|
|
|
|
|
|
--push image
|
2021-08-23 10:53:28 +03:00
|
|
|
docker push cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
Pull image from registry
|
|
|
|
--login to registry with readonly rights
|
|
|
|
docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000
|
|
|
|
|
|
|
|
--pull image
|
2021-08-23 10:53:28 +03:00
|
|
|
docker pull cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5
|
2020-06-07 14:32:46 +03:00
|
|
|
|
2021-08-23 11:14:06 +03:00
|
|
|
Stop old container
|
|
|
|
docker stop chatbot-api && docker rm chatbot-api
|
|
|
|
|
2020-06-07 14:32:46 +03:00
|
|
|
Run container in prod env
|
2021-08-23 11:14:06 +03:00
|
|
|
docker run -d --name chatbot-api --restart=always -p 5006:80 cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5
|
|
|
|
|
|
|
|
Remove old image
|
|
|
|
docker rmi cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
2020-06-07 14:32:46 +03:00
|
|
|
|
2021-08-23 11:14:06 +03:00
|
|
|
Logs
|
|
|
|
docker logs chatbot-api
|
2020-12-25 02:31:13 +02:00
|
|
|
##############################################################################################
|
|
|
|
|
2021-08-23 10:53:28 +03:00
|
|
|
Docker container last version: 1.0.5
|
2020-06-07 14:32:46 +03:00
|
|
|
##############################################################################################
|