Debug Ruby Bundler Initialization Process To Find Missing Files in Minified Docker Images

Need a Ruby and Bundler internals expert to find out why Bundler in minified Docker images can't find the bundled gems. Not implying that Bundler is broken. It works as designed. The details of its design and the failure conditions are not quite clear though :-) Looking for 'what', 'where' and 'why'. 'What' is the failure during the gem initialization process that prevents Ruby from loading the gem locations and information? 'Where' is this failure in the ruby gem initialization flow? 'Why' does this failure happen?

The minified images are created using the docker-slim tool ( [login to view URL] ).

Steps to reproduce the condition:

1. Install DockerSlim:

[login to view URL]

([login to view URL] for Mac OS X or [login to view URL] for Linux)

2. Create a Docker image for the sample Ruby app:

App code location - [login to view URL]

Create the image using the docker build command:

docker build -t my/ruby-app .

3. Minify the Docker image:

docker-slim build --http-probe my/ruby-app

Press enter when the tool prompts you.

Note the tool output… It will show you where the minification artifacts are stored:

docker-slim[build]: info=results artifacts.location=‘/.images//artifacts'

The ‘files’ subdirectory contains the files in the minified image (you can also get the files from the minified container image itself using the docker save command)

The bundled gems are in: /var/lib/gems/2.5.0/gems

4. Run the minified image:

docker run -it --rm --name="ruby_app" -p 7000:7000 my/[login to view URL]

Error message you will see from the container:

Could not find eventmachine-1.2.7 in any of the sources

You can repackage the 'minified' Docker image adding whatever instrumentation you need. The artifacts location (<path_to_your_install_dir>/.images/<hash_string>/artifacts) also contains the Dockerfile used to build the 'minified' images, so you can create a new one by hand.

Квалификация: Docker, Linux, Ruby, Ubuntu

Показать больше ruby-debug-ide, rubymine docker-compose debug, unable to detect full path for ruby, rubymine docker debug, rubymine docker-compose, can find missing entry excel, find missing tables sql database, wordpress find missing pictures, ruby wep app process payment, wordpress find missing images, find missing table database, vbs process txt find, find missing image scary flash, compare 2 data sets to find missing, write a process paragraph on the following topic how to find a rent house, adelaide where to find ruby developers, best place to find freelance ruby on rails work, how to find a job for the team of programmers ruby, how to find lip files cinema4d r17, how to find ruby on rails job in usa

О работодателе:
( 6 отзыв(-а, -ов) ) Natick, United States

ID проекта: #18562331

9 фрилансеров(-а) в среднем готовы выполнить эту работу за $187


Dear, I have 6+ years experienced in Web Development. I'm full stack Ruby On Rails developer, I have experience in developing the application like you want with, i can do this job very well. Specialties: Ruby Больше

$164 USD за 3 дней(-я)
(33 отзывов(-а))

Hi, Docker master here at your service. Currently I'm a full time employer at [login to view URL] (In-House software farm) where my position is DevOps. Have been deployed in docker and AWS servers, some are DigitalOcean Больше

$250 USD за 3 дней(-я)
(12 отзывов(-а))

Hello team , Raghvendra is here , I have reviewed the job post and would like to help you in long term assignment of various ""ROR Projects""", I am full time and immediately available request you to please share Больше

$277 USD за 3 дней(-я)
(3 отзывов(-а))

Hello, i will do Debug Ruby Bundler Initialization Process To Find Missing Files in Minified Docker Images I'm interested in your project. Please send me a message so that we can discuss more. Thanks & Regards, Больше

$100 USD за 0 дней(-я)
(4 отзывов(-а))

I think the problem is that during load, Ruby checks if directory "/usr/lib/ruby/vendor_ruby/2.5.0" exists. This directory is present at the original docker image, but is missing at a slim one. According to strace l Больше

$111 USD за 2 дней(-я)
(1 отзыв)
$155 USD за 3 дней(-я)
(0 отзывов(-а))
$208 USD за 7 дней(-я)
(0 отзывов(-а))

Hi, I’m a full-Stack web developer with over 5 years of experience in OOPs and various complex web services, MVC pattern as well as CMS frameworks. I have been working on Docker since its inception in 2015 and h Больше

$200 USD за 3 дней(-я)
(0 отзывов(-а))

I have read your requirement and understood that you like to hire Skilled Ruby on rails developer to To Find Missing Files in Minified Docker Images. We have 6+ years experience developer in Ruby on rails and we hav Больше

$216 USD за 10 дней(-я)
(0 отзывов(-а))