|
12 | 12 | # See the License for the specific language governing permissions and
|
13 | 13 | # limitations under the License.
|
14 | 14 |
|
15 |
| -FROM debian:jessie |
16 |
| - |
| 15 | +FROM debian:stretch |
| 16 | + |
17 | 17 | # Install Git and basic packages.
|
18 | 18 | RUN apt-get update && apt-get install -y \
|
19 | 19 | autoconf \
|
@@ -49,27 +49,24 @@ RUN apt-get update && apt-get install -y \
|
49 | 49 | # Build profiling
|
50 | 50 | RUN apt-get update && apt-get install -y time && apt-get clean
|
51 | 51 |
|
52 |
| -#==================== |
53 |
| -# Python dependencies |
54 |
| - |
55 |
| -# Install dependencies |
56 |
| - |
57 |
| -RUN apt-get update && apt-get install -y \ |
58 |
| - python-all-dev \ |
59 |
| - python3-all-dev \ |
60 |
| - python-pip |
| 52 | +# Google Cloud platform API libraries |
| 53 | +RUN apt-get update && apt-get install -y python-pip && apt-get clean |
| 54 | +RUN pip install --upgrade google-api-python-client oauth2client |
61 | 55 |
|
62 |
| -# Install Python packages from PyPI |
63 |
| -RUN pip install --upgrade pip==10.0.1 |
64 |
| -RUN pip install virtualenv |
65 |
| -RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0 |
| 56 | +# Install Python 2.7 |
| 57 | +RUN apt-get update && apt-get install -y python2.7 python-all-dev |
| 58 | +RUN curl https://bootstrap.pypa.io/get-pip.py | python2.7 |
66 | 59 |
|
67 |
| -# Install pip and virtualenv for Python 3.4 |
68 |
| -RUN curl https://bootstrap.pypa.io/get-pip.py | python3.4 |
69 |
| -RUN python3.4 -m pip install virtualenv |
| 60 | +# Add Debian 'testing' repository |
| 61 | +RUN echo 'deb http://ftp.de.debian.org/debian testing main' >> /etc/apt/sources.list |
| 62 | +RUN echo 'APT::Default-Release "stable";' | tee -a /etc/apt/apt.conf.d/00local |
70 | 63 |
|
71 | 64 |
|
72 | 65 | RUN mkdir /var/local/jenkins
|
73 | 66 |
|
74 | 67 | # Define the default command.
|
75 | 68 | CMD ["bash"]
|
| 69 | + |
| 70 | + |
| 71 | +RUN apt-get update && apt-get -t testing install -y python3.7 python3-all-dev |
| 72 | +RUN curl https://bootstrap.pypa.io/get-pip.py | python3.7 |
0 commit comments