inspec / inspec-gcp

InSpec GCP (Google Cloud Platform) Resource Pack
https://www.inspec.io/
Other
148 stars 74 forks source link

CHEF-11234: Fix broken CI issue `can't create Thread: Operation not permitted (ThreadError)` #611

Closed ahasunos closed 3 months ago

ahasunos commented 3 months ago

Description

The current Docker image version (ruby:3.1) encounters a ThreadError due to restrictions imposed by libseccomp, blocking certain system calls necessary for the operation of Ruby's open3 module.

/usr/local/lib/ruby/3.1.0/open3.rb:223:in `detach': can't create Thread: Operation not permitted (ThreadError)

This PR addresses the issue encountered in the current Docker image setup by updating the Docker image version from ruby:3.1 to ruby:3.1-bullseye.

Note: This is a workaround

Issues Resolved

CHEF-11234: CI is breaking for inspec, inspec-gcp, and train due to issue with docker image used for the tests

Related Conversation

https://github.com/docker-library/python/issues/837#issuecomment-1599640563 https://github.com/docker-library/redmine/discussions/307#discussioncomment-7711691