Monday, July 8, 2019

Docker inspect image content tricks

Sometimes one might wonder what exactly the image looks like once run as a container. This is particularly useful for debugging. 

Docker run command help us solve this problem. 

docker run -it --rm to do two things, first, automatically use the current terminal to connect to the container, and then when the container finishes, remove it.  Now we change the entry point to use bash (or cmd.exe for windows containers).

c:\Docker>docker run -it --rm --entrypoint "bash" reposit:v4
root@35b518b7b518:/home/reposit# ls
data  node_modules  package-lock.json  package.json  repositConnector.js

Sunday, June 9, 2019

Export Azure DevOps TFVC repo to Github

Step 1:
Azure TFVC Repo -> Azure Git Repo

Step 2:
Azure Git Repo -> GitHub

  1. Enable alternate authentication credentials and specify user name and password
  2. Go to a repository of your project (Code=>Files), click Clone to get the HTTPS URL.
  3. Go to Github=>Import repository
  4. Type repository URL (step 2)
  5. Type alternate authentication credentials (step 1) when it asks for credential