Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions python/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
FROM python:2.7 as python27
RUN PYTHONUSERBASE=/ptvsd pip install --user ptvsd
RUN PYTHONUSERBASE=/dbgpy pip install --user ptvsd debugpy

FROM python:3.7 as python37
RUN PYTHONUSERBASE=/ptvsd pip install --user ptvsd
RUN PYTHONUSERBASE=/dbgpy pip install --user ptvsd debugpy

FROM python:3.8 as python38
RUN PYTHONUSERBASE=/ptvsd pip install --user ptvsd
RUN PYTHONUSERBASE=/dbgpy pip install --user ptvsd debugpy

FROM python:3.9 as python39
RUN PYTHONUSERBASE=/dbgpy pip install --user ptvsd debugpy

# Now populate the duct-tape image with the language runtime debugging support files
# The debian image is about 95MB bigger
Expand All @@ -14,6 +17,7 @@ FROM busybox
COPY install.sh /
CMD ["/bin/sh", "/install.sh"]
WORKDIR /duct-tape
COPY --from=python27 /ptvsd/ python/
COPY --from=python37 /ptvsd/ python/
COPY --from=python38 /ptvsd/ python/
COPY --from=python27 /dbgpy/ python/
COPY --from=python37 /dbgpy/ python/
COPY --from=python38 /dbgpy/ python/
COPY --from=python39 /dbgpy/ python/
10 changes: 10 additions & 0 deletions test/structure-tests-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@ schemaVersion: 2.0.0
fileExistenceTests:
- name: 'ptvsd for python 2.7'
path: '/duct-tape/python/lib/python2.7/site-packages/ptvsd/__init__.py'
- name: 'debugpy for python 2.7'
path: '/duct-tape/python/lib/python2.7/site-packages/debugpy/__init__.py'
- name: 'ptvsd for python 3.7'
path: '/duct-tape/python/lib/python3.7/site-packages/ptvsd/__init__.py'
- name: 'debugpy for python 3.7'
path: '/duct-tape/python/lib/python3.7/site-packages/debugpy/__init__.py'
- name: 'ptvsd for python 3.8'
path: '/duct-tape/python/lib/python3.8/site-packages/ptvsd/__init__.py'
- name: 'debugpy for python 3.8'
path: '/duct-tape/python/lib/python3.8/site-packages/debugpy/__init__.py'
- name: 'ptvsd for python 3.9'
path: '/duct-tape/python/lib/python3.9/site-packages/ptvsd/__init__.py'
- name: 'debugpy for python 3.9'
path: '/duct-tape/python/lib/python3.9/site-packages/debugpy/__init__.py'

commandTests:
- name: "run with no /dbg should fail"
Expand Down