Skip to content

Commit e50e192

Browse files
authored
Add vsdbg for .net core (#23)
1 parent 4de2698 commit e50e192

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

skaffold-duct-tape/duct-tape/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ RUN PYTHONUSERBASE=/ptvsd pip install --user ptvsd
99
FROM python:3.7 as python37
1010
RUN PYTHONUSERBASE=/ptvsd pip install --user ptvsd
1111

12+
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1 as netcore
13+
RUN apt-get update \
14+
&& apt-get install -y --no-install-recommends unzip \
15+
&& curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l /vsdbg
16+
1217
# Now populate the duct-tape image with the language runtime debugging support files
1318
# The debian image is about 95MB bigger
1419
FROM busybox
@@ -19,3 +24,4 @@ WORKDIR /duct-tape
1924
COPY --from=delve /go/bin/dlv go/bin/
2025
COPY --from=python27 /ptvsd/ python/
2126
COPY --from=python37 /ptvsd/ python/
27+
COPY --from=netcore /vsdbg/ netcore/

skaffold-duct-tape/test/duct-tape-structure-tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ fileExistenceTests:
88
path: '/duct-tape/python/lib/python2.7/site-packages/ptvsd/__init__.py'
99
- name: 'ptvsd for python 3.7'
1010
path: '/duct-tape/python/lib/python3.7/site-packages/ptvsd/__init__.py'
11-
11+
- name: 'vsdbg for .net core'
12+
path: '/duct-tape/netcore/vsdbg'
1213

1314
commandTests:
1415
- name: "run with no /dbg should fail"

0 commit comments

Comments
 (0)