• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15FROM debian:jessie
16RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
17
18# Install packages needed for gRPC and protobuf
19RUN apt-get update && apt-get install -y \
20      autoconf \
21      automake \
22      build-essential \
23      curl \
24      git \
25      g++ \
26      libtool \
27      make \
28      pkg-config \
29      unzip && apt-get clean
30
31RUN apt-get update && apt-get install -y golang && apt-get clean
32
33RUN echo "deb http://archive.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list
34RUN echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf
35RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
36RUN apt-get update && apt-get install -t jessie-backports -y cmake && apt-get clean
37
38CMD ["bash"]
39