I am running Visual Studio Code on a Linux (Ubuntu) host, using the Remote-Containers extension to develop in a Docker container.
I am trying to use the VSCode feature that automatically clones a dotfile repo into the container when the container is created. My dotfile repo is hosted on Azure Devops (dev.azure.com).
I receive the following error message in the Dev Containers log:
fatal: Cannot determine the organization name for this 'dev.azure.com' remote URL. Ensure the credential.useHttpPath configuration value is set, or set the organization name as the user in the remote URL '{org}#dev.azure.com'.
My VSCode user-level settings.json has:
"dotfiles.repository": "https://zest-computing#dev.azure.com/zest-computing/Common/_git/dotfiles"
I can clone the repo in the container using the VSCode bash terminal:
vscode ➜ ~/xfer $ git clone https://zest-computing#dev.azure.com/zest-computing/Common/_git/dotfiles
Cloning into 'dotfiles'...
remote: Azure Repos
remote: Found 19 objects to send. (175 ms)
Unpacking objects: 100% (19/19), 5.65 KiB | 304.00 KiB/s, done.
The container is based on a stock C++ dev container from Microsoft:
https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/cpp/.devcontainer/base.Dockerfile
... with minimal modifications.
Otherwise the containerized development environment works, including using Azure Devops-based repos for source control.
Any suggestions on how to get the "dotfiles" repo to clone successfully?
Related
while using command prompt, powershell , and GitHub desktop to clone my repository i'm unable to access my repository URL
following message display
C:\Users\NIRANJAN MANITHIYA> git clone https://github.com/ashusainioffcial/coursera-test.git
Cloning into 'coursera-test'...
fatal: unable to access 'https://github.com/ashusainioffcial/coursera-test.git/': getaddrinfo() thread failed to start
i tried different types of urls and command all useless
Start a new terminal and type- git config --global --unset-all https.proxy
and then turn off your firewall protection from antivirus or windows firewall
In our whole company we are the first one trying this.
We are trying to get the code from TFS into Azure DevOps.
Below is TFS details
TFS Server: companyTFS
TFS Project Collection: TechTeam.
TFS Project name: Main.
TFS Branch : Dev
Now I am trying to get code from TFS into Azure DevOps. We could have just copied the code from TFS folder into Azure DevOps folder but we do not want to lose the TFS history.
As described in below I installed Chocolatey and also installed gittfs.
https://blog.rsuter.com/migrate-a-tfs-repository-to-a-vsts-git-repository
When I give below command
git tfs clone http://companyTFS:8080/TechTeam/Main $/Main/Dev/Registration/FeeDetails . –ignore-branches –debug
I am getting below exception.
TF31002: Unable to connect to this Team Foundation Server: http://companyTFS:8080/TechTeam/Main.
Team Foundation Server Url: http://companyTFS:8080/TechTeam/Main.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The remote server returned an error: (404) Not Found.
The remote server returned an error: (404) Not Found.
I also tried this but did not work.
https://github.com/microsoft/azure-repos-vscode/issues/320#issuecomment-335573266
I am trying to find out whether my TFS server can do handshaking with external components.
I would be glad if someone can tell me what I am doing wrong.
At last after spending almost 4 days, I am able to move the code from TFS into Azure DevOps along with history. Please see below all the steps I did.
Install Chocolatey:
First we need to install Chocolatey. To make matters simple I created below two files in same folder.
FileName : installChocolatey.cmd
Content:
#echo off
SET DIR=%~dp0%
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%install.ps1' %*"
SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
FileName: install.ps1
Content: Copy paste the content from here https://chocolatey.org/install.ps1
Open command prompt in admin mode and ran installChocolatey.cmd to install Chocolatey.
In command prompt give choco -v to see whether it is installed correctly.
Install git tfs:
Next, we need to install git tfs tool in order to do that give below command in command prompt and follow the instructions.
choco install gittfs
In my case it installed to C:\Tools\gittfs.
Open Environment Variables and make sure you add below (in my case )to PATH variable.
C:\Tools\gittfs
In command prompt give git tfs -version to see what version it installed.
Move code from TFS to Azure DevOps:
Azure DevOps Project Name: Experiment
Azure DevOps Repo Name: MyRepo
Azure DevOps Repo Name: Master and DEV
First, I clone this repo to my local. Made sure that I have all remoted branches onto my local.
In my local created a new branch name called TestBranch and pushed it to remote. So now MyRepo has 3 branches and TestBranch is my local working branch.
In command prompt, I went to folder where I mapped Azure DevOps repo. I gave below command to get TFS code with history.
git tfs clone http://companyTFS:8080/TechTeam $/Main/Dev/Registration/FeeDetails . –debug
This will take sometime and after that you can see that TFS code is downloaded to that folder.
In same command prompt,
give below command to make sure what is your working branch
git branch
Below command will create a branch
git checkout -b TempBranch
For below command get url of your target Azure DevOps repo.
Below command will set your remote Azure DevOps Repo as Repo where you want to target
git remote add origin https://xxx#dev.azure.com/xxx/Experiment/_git/MyRepo
Below will create new branch called TempBranch in your target repo in ADO. Here in Experiment project and MyRepo repo
git push --set-upstream origin TempBranch
Now all your code and history from TFS made its way into Azure DevOps into your Repo. You can use PULL Request feature to merge into other branches and so on.
Now lets say you want your Azure DevOps code structure to be different.
Go to folder where you downloaded code/history from TFS and create folder structure or changes the way you want
Giive below command one by one.
git add .
To see all your changes give below command
git status
To commit all your changes in local
git commit -m "[commit message goes here]"
Command to push the changes from local to remote
git push
The code will be in Experiment project MyRepo repo TempBranch branch
I need to install docker on Angstrom linux, In order to do that I would like to download the source code of docker, and make the files myself.
But I cannot find the source code?
docker.github.io is apparently just the documentation.
Thanks!
You need to build Moby, to make it simple, see Moby as the new name for Docker.
To do so, simply clone the git repository, checkout the tag you want and run a make command
git clone https://github.com/moby/moby.git
git checkout tags/VERSION
make
You will need to have Docker installed on your dev machine to build it.
Docker Desktop includes Docker Engine, Docker CLI client, Docker Compose, Docker Content Trust, Kubernetes, and Credential Helper.
As mentioned in https://github.com/docker/docker-ce/blob/master/README.md
The source code for Docker Engine is on:
https://github.com/moby/moby
The source code for docker CLI is on:
https://github.com/docker/cli
The source code of docker compose is on:
https://github.com/docker/compose
But to Bring these tools to a usable bundle, you need Docker Desktop.
The source code of Docker Desktop is on:
https://download.docker.com/
CAUTION: As you can see, the source code of Docker Desktop that they are providing is not under any version control system, thus hard to audit. So please be careful when putting this code in production.
I have set up an automated build from a Github repository for an application in Docker hub, but as part of the build process, I'd like to be able to write the current tag name to a local file.
Does Docker hub provide any environment variable with the name of the tag being built, which I can echo into a local VERSION file?
I'd like to avoid actually installing git inside the container to perform a describe, as well as including the entire (currently dockerignored) .git folder to retrieve this info.
Thank you!
I want to install OpenShift using the advanced installation - method on Centos7 (EC2). But first I need to know some issues:
URL of tutorial: https://docs.openshift.com/enterprise/3.0/admin_guide/install/advanced_install.html#installing-ansible
First I need to configure the prerequisitions on the master and its 2 nodes (https://docs.openshift.org/latest/install_config/install/prerequisites.html).
When that's done the advanced installation will start.
1) Do I have to install ansible on the master only and running the installer at the end or do I need to install anything on the node (except docker)?
2) Which steps do I have to follow here: https://github.com/openshift/openshift-ansible or just download the repo and following the tutorial.
3) Is there something necessary what needs to be installed or configured which is not cited?
You are correct to start with the prerequisite steps outlined in the origin documentation.
In particular,
Ensure that you've completed host preparation steps. These steps include packages that must be installed on every system.
Ensure that you've configured host access. The ansible installer uses ssh key authentication by default so you must be able to login to each system (including the master) from the master with ssh key authentication.
Ensure that the output of hostname -f outputs the correct hostname of each system.
Once you've finished with the prerequisite steps, you will move on to the advanced installation section. Steps for installing ansible and creating an ansible host inventory can be found here. You only need to install ansible on the master. Once you've installed ansible and created a host inventory you can run the ansible playbook to begin the installation.
Afterwards, you can verify the installation and then complete follow up items such as configuring authentication, creating a router and creating a docker registry.
If you encounter any problems with the advanced installer, create an issue with the openshift-ansible project.