mirror of https://github.com/grpc/grpc.git
[ruby] add distrib tests for ruby 3.1-3.3 (#35788)
As title Partial followup to https://github.com/grpc/grpc/pull/35399 Closes #35788 PiperOrigin-RevId: 603786425pull/35832/head
parent
e2c3648bc2
commit
f82ecf4b0b
18 changed files with 477 additions and 12 deletions
@ -0,0 +1,23 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# Copyright 2024 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 debian:10 |
||||
|
||||
<%include file="../../apt_get_basic.include"/> |
||||
<%include file="../../ruby_3_0_deps.include"/> |
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
@ -0,0 +1,23 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# Copyright 2024 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 debian:10 |
||||
|
||||
<%include file="../../apt_get_basic.include"/> |
||||
<%include file="../../ruby_3_1_deps.include"/> |
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
@ -0,0 +1,23 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# Copyright 2024 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 debian:10 |
||||
|
||||
<%include file="../../apt_get_basic.include"/> |
||||
<%include file="../../ruby_3_2_deps.include"/> |
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
@ -0,0 +1,23 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# Copyright 2024 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 debian:10 |
||||
|
||||
<%include file="../../apt_get_basic.include"/> |
||||
<%include file="../../ruby_3_3_deps.include"/> |
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
@ -0,0 +1,16 @@ |
||||
#================== |
||||
# Ruby dependencies |
||||
|
||||
# Install rvm |
||||
RUN apt-get update && apt-get install -y gnupg2 && apt-get clean |
||||
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
||||
RUN \curl -sSL https://get.rvm.io | bash -s stable |
||||
|
||||
# Install Ruby 3.0 |
||||
RUN apt-get update && apt-get install -y procps && apt-get clean |
||||
RUN /bin/bash -l -c "rvm install ruby-3.0.5" |
||||
RUN /bin/bash -l -c "rvm use --default ruby-3.0.5" |
||||
RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc" |
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "echo 'rvm --default use ruby-3.0.5' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "gem install bundler --no-document" |
@ -0,0 +1,16 @@ |
||||
#================== |
||||
# Ruby dependencies |
||||
|
||||
# Install rvm |
||||
RUN apt-get update && apt-get install -y gnupg2 && apt-get clean |
||||
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
||||
RUN \curl -sSL https://get.rvm.io | bash -s stable |
||||
|
||||
# Install Ruby 3.1 |
||||
RUN apt-get update && apt-get install -y procps && apt-get clean |
||||
RUN /bin/bash -l -c "rvm install ruby-3.1.3" |
||||
RUN /bin/bash -l -c "rvm use --default ruby-3.1.3" |
||||
RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc" |
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "echo 'rvm --default use ruby-3.1.3' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "gem install bundler --no-document" |
@ -0,0 +1,16 @@ |
||||
#================== |
||||
# Ruby dependencies |
||||
|
||||
# Install rvm |
||||
RUN apt-get update && apt-get install -y gnupg2 && apt-get clean |
||||
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
||||
RUN \curl -sSL https://get.rvm.io | bash -s stable |
||||
|
||||
# Install Ruby 3.2 |
||||
RUN apt-get update && apt-get install -y procps && apt-get clean |
||||
RUN /bin/bash -l -c "rvm install ruby-3.2.0" |
||||
RUN /bin/bash -l -c "rvm use --default ruby-3.2.0" |
||||
RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc" |
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "echo 'rvm --default use ruby-3.2.0' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "gem install bundler --no-document" |
@ -0,0 +1,16 @@ |
||||
#================== |
||||
# Ruby dependencies |
||||
|
||||
# Install rvm |
||||
RUN apt-get update && apt-get install -y gnupg2 && apt-get clean |
||||
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
||||
RUN \curl -sSL https://get.rvm.io | bash -s stable |
||||
|
||||
# Install Ruby 3.3 |
||||
RUN apt-get update && apt-get install -y procps && apt-get clean |
||||
RUN /bin/bash -l -c "rvm install ruby-3.3.0" |
||||
RUN /bin/bash -l -c "rvm use --default ruby-3.3.0" |
||||
RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc" |
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "echo 'rvm --default use ruby-3.3.0' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "gem install bundler --no-document" |
@ -1 +1 @@ |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/ruby_debian10_x64_ruby_3_0:c277dbca7dbd28ff6112cbc842ba3144c49266bd@sha256:9190da90a2a95eca1370cef64dcba7ddee9f59cc7487093da6711c1280a0b0f9 |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/ruby_debian10_x64_ruby_3_0:dce91a018316b35b962e5fa576fded4775457077@sha256:be9dfa852af7fe5c700747bbad5b93d15c3f030ac980a107e98fc9b70fee6077 |
@ -0,0 +1 @@ |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/ruby_debian10_x64_ruby_3_1:348a4b975f4d19772bb9a1a95fc03720f89edbc0@sha256:282a052275fa9e0378301d759f5febcc9f1ff0ebb702e536690cd4fed1a43904 |
@ -0,0 +1,84 @@ |
||||
# Copyright 2024 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 debian:10 |
||||
|
||||
#================= |
||||
# Basic C core dependencies |
||||
|
||||
# C/C++ dependencies according to https://github.com/grpc/grpc/blob/master/BUILDING.md |
||||
RUN apt-get update && apt-get install -y \ |
||||
build-essential \ |
||||
autoconf \ |
||||
libtool \ |
||||
pkg-config \ |
||||
&& apt-get clean |
||||
|
||||
# GCC |
||||
RUN apt-get update && apt-get install -y \ |
||||
gcc \ |
||||
g++ \ |
||||
&& apt-get clean |
||||
|
||||
# libc6 |
||||
RUN apt-get update && apt-get install -y \ |
||||
libc6 \ |
||||
libc6-dbg \ |
||||
libc6-dev \ |
||||
&& apt-get clean |
||||
|
||||
# Tools |
||||
RUN apt-get update && apt-get install -y \ |
||||
bzip2 \ |
||||
curl \ |
||||
dnsutils \ |
||||
git \ |
||||
lcov \ |
||||
make \ |
||||
strace \ |
||||
time \ |
||||
unzip \ |
||||
wget \ |
||||
zip \ |
||||
&& apt-get clean |
||||
|
||||
#================= |
||||
# Setup git to access working directory across docker boundary. |
||||
# This avoids the "fatal: detected dubious ownership in repository XYZ" |
||||
# git error. |
||||
|
||||
RUN git config --global --add safe.directory '*' |
||||
RUN git config --global protocol.file.allow always |
||||
|
||||
|
||||
#================== |
||||
# Ruby dependencies |
||||
|
||||
# Install rvm |
||||
RUN apt-get update && apt-get install -y gnupg2 && apt-get clean |
||||
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
||||
RUN \curl -sSL https://get.rvm.io | bash -s stable |
||||
|
||||
# Install Ruby 3.1 |
||||
RUN apt-get update && apt-get install -y procps && apt-get clean |
||||
RUN /bin/bash -l -c "rvm install ruby-3.1.3" |
||||
RUN /bin/bash -l -c "rvm use --default ruby-3.1.3" |
||||
RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc" |
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "echo 'rvm --default use ruby-3.1.3' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "gem install bundler --no-document" |
||||
|
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
@ -0,0 +1 @@ |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/ruby_debian10_x64_ruby_3_2:e9f8640c6bb80a029c65ed6ebdfddd9574a041e4@sha256:f1ba9030d7d7496a6ed42c0e1a9a2fe3204208e94983d7d4b6b4c7752042ed28 |
@ -0,0 +1,84 @@ |
||||
# Copyright 2024 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 debian:10 |
||||
|
||||
#================= |
||||
# Basic C core dependencies |
||||
|
||||
# C/C++ dependencies according to https://github.com/grpc/grpc/blob/master/BUILDING.md |
||||
RUN apt-get update && apt-get install -y \ |
||||
build-essential \ |
||||
autoconf \ |
||||
libtool \ |
||||
pkg-config \ |
||||
&& apt-get clean |
||||
|
||||
# GCC |
||||
RUN apt-get update && apt-get install -y \ |
||||
gcc \ |
||||
g++ \ |
||||
&& apt-get clean |
||||
|
||||
# libc6 |
||||
RUN apt-get update && apt-get install -y \ |
||||
libc6 \ |
||||
libc6-dbg \ |
||||
libc6-dev \ |
||||
&& apt-get clean |
||||
|
||||
# Tools |
||||
RUN apt-get update && apt-get install -y \ |
||||
bzip2 \ |
||||
curl \ |
||||
dnsutils \ |
||||
git \ |
||||
lcov \ |
||||
make \ |
||||
strace \ |
||||
time \ |
||||
unzip \ |
||||
wget \ |
||||
zip \ |
||||
&& apt-get clean |
||||
|
||||
#================= |
||||
# Setup git to access working directory across docker boundary. |
||||
# This avoids the "fatal: detected dubious ownership in repository XYZ" |
||||
# git error. |
||||
|
||||
RUN git config --global --add safe.directory '*' |
||||
RUN git config --global protocol.file.allow always |
||||
|
||||
|
||||
#================== |
||||
# Ruby dependencies |
||||
|
||||
# Install rvm |
||||
RUN apt-get update && apt-get install -y gnupg2 && apt-get clean |
||||
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
||||
RUN \curl -sSL https://get.rvm.io | bash -s stable |
||||
|
||||
# Install Ruby 3.2 |
||||
RUN apt-get update && apt-get install -y procps && apt-get clean |
||||
RUN /bin/bash -l -c "rvm install ruby-3.2.0" |
||||
RUN /bin/bash -l -c "rvm use --default ruby-3.2.0" |
||||
RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc" |
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "echo 'rvm --default use ruby-3.2.0' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "gem install bundler --no-document" |
||||
|
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
@ -0,0 +1 @@ |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/ruby_debian10_x64_ruby_3_3:c063f13c0987355593ce6bcf2123bb9717eeba35@sha256:a26d6bfe8f799ae817db0bd0280283c2cc9ea0f02174fe9a2cb0cd10d71d81f8 |
@ -0,0 +1,84 @@ |
||||
# Copyright 2024 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 debian:10 |
||||
|
||||
#================= |
||||
# Basic C core dependencies |
||||
|
||||
# C/C++ dependencies according to https://github.com/grpc/grpc/blob/master/BUILDING.md |
||||
RUN apt-get update && apt-get install -y \ |
||||
build-essential \ |
||||
autoconf \ |
||||
libtool \ |
||||
pkg-config \ |
||||
&& apt-get clean |
||||
|
||||
# GCC |
||||
RUN apt-get update && apt-get install -y \ |
||||
gcc \ |
||||
g++ \ |
||||
&& apt-get clean |
||||
|
||||
# libc6 |
||||
RUN apt-get update && apt-get install -y \ |
||||
libc6 \ |
||||
libc6-dbg \ |
||||
libc6-dev \ |
||||
&& apt-get clean |
||||
|
||||
# Tools |
||||
RUN apt-get update && apt-get install -y \ |
||||
bzip2 \ |
||||
curl \ |
||||
dnsutils \ |
||||
git \ |
||||
lcov \ |
||||
make \ |
||||
strace \ |
||||
time \ |
||||
unzip \ |
||||
wget \ |
||||
zip \ |
||||
&& apt-get clean |
||||
|
||||
#================= |
||||
# Setup git to access working directory across docker boundary. |
||||
# This avoids the "fatal: detected dubious ownership in repository XYZ" |
||||
# git error. |
||||
|
||||
RUN git config --global --add safe.directory '*' |
||||
RUN git config --global protocol.file.allow always |
||||
|
||||
|
||||
#================== |
||||
# Ruby dependencies |
||||
|
||||
# Install rvm |
||||
RUN apt-get update && apt-get install -y gnupg2 && apt-get clean |
||||
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
||||
RUN \curl -sSL https://get.rvm.io | bash -s stable |
||||
|
||||
# Install Ruby 3.3 |
||||
RUN apt-get update && apt-get install -y procps && apt-get clean |
||||
RUN /bin/bash -l -c "rvm install ruby-3.3.0" |
||||
RUN /bin/bash -l -c "rvm use --default ruby-3.3.0" |
||||
RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc" |
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "echo 'rvm --default use ruby-3.3.0' >> ~/.bashrc" |
||||
RUN /bin/bash -l -c "gem install bundler --no-document" |
||||
|
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
Loading…
Reference in new issue