Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Error installing clrdbg using the generated DockerFile.debug #128

Open
paul-leathwood opened this issue Dec 23, 2016 · 2 comments
Open

Error installing clrdbg using the generated DockerFile.debug #128

paul-leathwood opened this issue Dec 23, 2016 · 2 comments

Comments

@paul-leathwood
Copy link

Based off this guide
https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images

I'm running vs code and starting a debug session but the deployment of clrdbg fails. The same occurs when I run ./dockerTask -Build in PowerShell

Below is the output

Using arguments
Version : 'VS2015U2'
Location : ''
SkipDownloads : 'false'
LaunchClrDbgAfter : 'false'
RemoveExistingOnUpgrade : 'false'
Info: Using clrdbg version '15.0.26022.0'
Info: Previous installation at not found
Error: Install location is not set
Service 'api' failed to build: The command '/bin/sh -c curl -SL https://raw.githubusercontent.com/Microsoft/MIEngine/getclrdbg-release/scripts/GetClrDbg.sh --output GetClrDbg.sh && chmod 700 GetClrDbg.sh && ./GetClrDbg.sh $CLRDBG_VERSION && rm GetClrDbg.sh' returned a non-zero code: 1****

@stevebargelt
Copy link

stevebargelt commented Dec 29, 2016

Running into the exact same issue.

In Dockerfile.debug I added:
ARG CLRDBG_INSTALL_LOCATION=.
and modified the && ./GetClrDbg.sh line in Dockerfile.debug to
&& ./GetClrDbg.sh -v $CLRDBG_VERSION -l $CLRDBG_INSTALL_LOCATION
(that's a lowercase L)

Fixed "Error: Install location is not set"

Then I received "unzip command not found. Install unzip for this script to work"

so I added
RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*

Right before the curl command. All is working now. I've attached the entire Dockerfile.debug to this comment (added .txt extension to allow upload)

Dockerfile.debug.txt

@ptoonen
Copy link

ptoonen commented Jan 21, 2017

This appears to be a dual issue, partially fixed here: microsoft/MIEngine#533
And the other one here: #129

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants