This repository was archived by the owner on Mar 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ RUN mkdir -p /opt/driver/src && \
44 adduser $BUILD_USER -u $BUILD_UID -D -h /opt/driver/src
55
66RUN apk add --no-cache --update python python-dev python3 python3-dev py-pip py2-pip git build-base bash
7- RUN pip3 install pydetector-bblfsh==0.10.3 \
8- git+https://github.com/python/mypy.git@0bb2d1680e8b9522108b38d203cb73021a617e64#egg=mypy-lang
7+ RUN pip3 install git+https://github.com/python/mypy.git@0bb2d1680e8b9522108b38d203cb73021a617e64#egg=mypy-lang
98
109WORKDIR /opt/driver/src
Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ MAINTAINER source{d}
33
44RUN apk add --no-cache --update python python3 py-pip py2-pip git
55
6- RUN pip2 install pydetector-bblfsh==0.10.3
76
87ADD build /opt/driver/bin
98ADD native/python_package /tmp/python_driver
109RUN pip3 install /tmp/python_driver
1110RUN yes|rm -rf /tmp/python_driver
1211
12+ ADD native/dev_deps /tmp/dev_deps
13+ RUN pip2 install -U /tmp/dev_deps/python-pydetector || pip2 install pydetector-bblfsh==0.10.3
14+ RUN pip3 install -U /tmp/dev_deps/python-pydetector || pip3 install pydetector-bblfsh==0.10.3
15+ RUN yes|rm -rf /tmp/dev_deps
16+
1317CMD /opt/driver/bin/driver
Original file line number Diff line number Diff line change 1+ If a pydetector directory exists here, it will be installed to the driver
2+ container image instead of the one from PyPI. This way you can test pydetector
3+ features related to the driver without publishing new versions.
4+
5+ Note that Docker doesn't allow to ` ADD ` symlinks so the directory
6+ must be copied, not linked.
You can’t perform that action at this time.
0 commit comments