Category : ruby

I have a Rails App using Ruby 3 that I deploy using Docker. In my Gemfile I am installing the gem sunspot_rails via github, as the latest official release does not work with Ruby 3: git_source(:github) { |repo| "https://github.com/#{repo}.git" } gem ‘sunspot_rails’, github: ‘sunspot/sunspot’, glob: ‘sunspot_rails/*.gemspec’ In my Production Dockerfile I have a stage which ..

Read more

I am trying to create Dockerfile using amazon linux as a base image and install ruby2.7 on it, I am getting error while i run the below dockerfile Error: "BUILD FAILED (Amazon Linux 2 using ruby-build 20210825)" FROM amazon/aws-cli:2.2.35 RUN yum -y update && yum -y groupinstall "Development Tools" && yum install -y openssl-devel readline-devel ..

Read more

I am using ruby kubeclient library and Kubernetes APIs to read file contents from different pod from the current pod. I have set up RBAC and am able to authenticate my Kubernetes API. Followed: https://kubernetes.io/docs/tasks/run-application/access-api-from-pod/ To read the file from the pod from the host I was able to try the below options: using kubectl ..

Read more

I am trying to setup unit tests for a chef cookbook using chefspec. I have a docker resource in my recipe that utilises the docker cookbook. I get this error when I run chef exec rspec undefined method `docker_image’ for cookbook . Relevant code in default recipe looks like this docker_image ‘vault’ do repo ‘vault’ ..

Read more