Add Python distribtests for Alpine Linux

This is especially important as Alpine uses `musl`
instead of `glibc` and requires a source build
for gRPC Python.
pull/15475/head
Mehrdad Afshari 7 years ago
parent 9723e7d41e
commit fba028ac68
  1. 21
      tools/dockerfile/distribtest/python_dev_alpine3.7_x64/Dockerfile
  2. 1
      tools/run_tests/artifacts/distribtest_targets.py

@ -0,0 +1,21 @@
# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM alpine:3.7
RUN apk add --update build-base python python-dev py-pip
RUN pip install --upgrade pip
RUN pip install virtualenv

@ -327,6 +327,7 @@ def targets():
PythonDistribTest('linux', 'x64', 'ubuntu1204'),
PythonDistribTest('linux', 'x64', 'ubuntu1404'),
PythonDistribTest('linux', 'x64', 'ubuntu1604'),
PythonDistribTest('linux', 'x64', 'alpine3.7', source=True),
PythonDistribTest('linux', 'x64', 'jessie', source=True),
PythonDistribTest('linux', 'x86', 'jessie', source=True),
PythonDistribTest('linux', 'x64', 'centos7', source=True),

Loading…
Cancel
Save