diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-05-20 15:20:29 -0700 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2018-05-20 15:20:29 -0700 |
commit | fba028ac6886fd53fc49d0106fe38d6e47b10cef (patch) | |
tree | 8ba4db3083cc3c7f6e0fc885d8f179c22b1926be | |
parent | 9723e7d41e79dad32e4a37e3a8cb367e68e5cb71 (diff) | |
download | grpc-grpc-fba028ac6886fd53fc49d0106fe38d6e47b10cef.tar.gz |
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.
-rw-r--r-- | tools/dockerfile/distribtest/python_dev_alpine3.7_x64/Dockerfile | 21 | ||||
-rw-r--r-- | tools/run_tests/artifacts/distribtest_targets.py | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tools/dockerfile/distribtest/python_dev_alpine3.7_x64/Dockerfile b/tools/dockerfile/distribtest/python_dev_alpine3.7_x64/Dockerfile new file mode 100644 index 0000000000..0fc3c31281 --- /dev/null +++ b/tools/dockerfile/distribtest/python_dev_alpine3.7_x64/Dockerfile @@ -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 diff --git a/tools/run_tests/artifacts/distribtest_targets.py b/tools/run_tests/artifacts/distribtest_targets.py index 80adc20184..213325439e 100644 --- a/tools/run_tests/artifacts/distribtest_targets.py +++ b/tools/run_tests/artifacts/distribtest_targets.py @@ -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), |