Skip to content

Commit

Permalink
Force grpc build CPU for integration test apps
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Oct 14, 2022
1 parent 397ec9a commit b24ac6a
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration/apps/rack/Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ COPY . /vendor/dd-trace-rb
# Install dependencies
ENV DD_DEMO_ENV_GEM_LOCAL_DDTRACE /vendor/dd-trace-rb

# Override number of concurrent compiles in grpc gem, see https://github.com/grpc/grpc/pull/28250 and https://github.com/DataDog/dd-trace-rb/issues/1791
# If you see gem installation failing with "Killed" on CircleCI and `gem install --platform ruby grpc` reproduces the
# issue when you connect to the testing container via ssh, then try lowering this file a notch.
ENV GRPC_RUBY_BUILD_PROCS: 6

RUN /vendor/dd-demo/build_ddtrace_profiling_native_extension.rb

RUN bundle install
5 changes: 5 additions & 0 deletions integration/apps/rails-five/Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ COPY . /vendor/dd-trace-rb
# Install dependencies
ENV DD_DEMO_ENV_GEM_LOCAL_DDTRACE /vendor/dd-trace-rb

# Override number of concurrent compiles in grpc gem, see https://github.com/grpc/grpc/pull/28250 and https://github.com/DataDog/dd-trace-rb/issues/1791
# If you see gem installation failing with "Killed" on CircleCI and `gem install --platform ruby grpc` reproduces the
# issue when you connect to the testing container via ssh, then try lowering this file a notch.
ENV GRPC_RUBY_BUILD_PROCS: 6

RUN /vendor/dd-demo/build_ddtrace_profiling_native_extension.rb

RUN bundle install
5 changes: 5 additions & 0 deletions integration/apps/rails-seven/Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ COPY . /vendor/dd-trace-rb
# Install dependencies
ENV DD_DEMO_ENV_GEM_LOCAL_DDTRACE /vendor/dd-trace-rb

# Override number of concurrent compiles in grpc gem, see https://github.com/grpc/grpc/pull/28250 and https://github.com/DataDog/dd-trace-rb/issues/1791
# If you see gem installation failing with "Killed" on CircleCI and `gem install --platform ruby grpc` reproduces the
# issue when you connect to the testing container via ssh, then try lowering this file a notch.
ENV GRPC_RUBY_BUILD_PROCS: 6

RUN /vendor/dd-demo/build_ddtrace_profiling_native_extension.rb

RUN bundle install
5 changes: 5 additions & 0 deletions integration/apps/rails-six/Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ COPY . /vendor/dd-trace-rb
# Install dependencies
ENV DD_DEMO_ENV_GEM_LOCAL_DDTRACE /vendor/dd-trace-rb

# Override number of concurrent compiles in grpc gem, see https://github.com/grpc/grpc/pull/28250 and https://github.com/DataDog/dd-trace-rb/issues/1791
# If you see gem installation failing with "Killed" on CircleCI and `gem install --platform ruby grpc` reproduces the
# issue when you connect to the testing container via ssh, then try lowering this file a notch.
ENV GRPC_RUBY_BUILD_PROCS: 6

RUN /vendor/dd-demo/build_ddtrace_profiling_native_extension.rb

RUN bundle install
6 changes: 6 additions & 0 deletions integration/apps/rspec/Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ COPY . /vendor/dd-trace-rb
# Install dependencies
# Setup specific version of ddtrace, if specified.
ENV DD_DEMO_ENV_GEM_LOCAL_DDTRACE /vendor/dd-trace-rb

# Override number of concurrent compiles in grpc gem, see https://github.com/grpc/grpc/pull/28250 and https://github.com/DataDog/dd-trace-rb/issues/1791
# If you see gem installation failing with "Killed" on CircleCI and `gem install --platform ruby grpc` reproduces the
# issue when you connect to the testing container via ssh, then try lowering this file a notch.
ENV GRPC_RUBY_BUILD_PROCS: 6

RUN bundle install
6 changes: 6 additions & 0 deletions integration/apps/ruby/Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ COPY . /vendor/dd-trace-rb
# Install dependencies
# Setup specific version of ddtrace, if specified.
ENV DD_DEMO_ENV_GEM_LOCAL_DDTRACE /vendor/dd-trace-rb

# Override number of concurrent compiles in grpc gem, see https://github.com/grpc/grpc/pull/28250 and https://github.com/DataDog/dd-trace-rb/issues/1791
# If you see gem installation failing with "Killed" on CircleCI and `gem install --platform ruby grpc` reproduces the
# issue when you connect to the testing container via ssh, then try lowering this file a notch.
ENV GRPC_RUBY_BUILD_PROCS: 6

RUN bundle install
5 changes: 5 additions & 0 deletions integration/apps/sinatra2-classic/Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ COPY . /vendor/dd-trace-rb
# Install dependencies
ENV DD_DEMO_ENV_GEM_LOCAL_DDTRACE /vendor/dd-trace-rb

# Override number of concurrent compiles in grpc gem, see https://github.com/grpc/grpc/pull/28250 and https://github.com/DataDog/dd-trace-rb/issues/1791
# If you see gem installation failing with "Killed" on CircleCI and `gem install --platform ruby grpc` reproduces the
# issue when you connect to the testing container via ssh, then try lowering this file a notch.
ENV GRPC_RUBY_BUILD_PROCS: 6

RUN /vendor/dd-demo/build_ddtrace_profiling_native_extension.rb

RUN bundle install
5 changes: 5 additions & 0 deletions integration/apps/sinatra2-modular/Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ COPY . /vendor/dd-trace-rb
# Install dependencies
ENV DD_DEMO_ENV_GEM_LOCAL_DDTRACE /vendor/dd-trace-rb

# Override number of concurrent compiles in grpc gem, see https://github.com/grpc/grpc/pull/28250 and https://github.com/DataDog/dd-trace-rb/issues/1791
# If you see gem installation failing with "Killed" on CircleCI and `gem install --platform ruby grpc` reproduces the
# issue when you connect to the testing container via ssh, then try lowering this file a notch.
ENV GRPC_RUBY_BUILD_PROCS: 6

RUN /vendor/dd-demo/build_ddtrace_profiling_native_extension.rb

RUN bundle install

0 comments on commit b24ac6a

Please sign in to comment.