Find Jobs
Hire Freelancers

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

$30-250 USD

Cerrado
Publicado hace alrededor de 5 años

$30-250 USD

Pagado a la entrega
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.
ID del proyecto: 18562331

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 5 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
7 freelancers están ofertando un promedio de $188 USD por este trabajo
Avatar del usuario
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, Mohammad https://www.freelancer.com/u/LinuxGun
$100 USD en 0 día
5,0 (9 comentarios)
4,1
4,1
Avatar del usuario
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 log, ruby attempts syscall and gets lstat("/usr/lib/ruby/vendor_ruby/2.5.0", {st_mode=S_IFDIR|0755, st_size=6, ...}) = 0 on full image, and lstat("/usr/lib/ruby/vendor_ruby/2.5.0", 0x7ffd39726850) = -1 ENOENT (No such file or directory) on a slim one That is the first difference between application strace startup logs, and I guess that this is the reason why ruby ignores gems for 2.5.0 that are present at the image. If you choose my bid, I'll explain how did I launch strace in docker container to collect these logs. That should be helpful for you in a long term perspective because the technology is language-agnostic :)
$111 USD en 2 días
5,0 (1 comentario)
2,0
2,0
Avatar del usuario
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 have developed several project in ROR and We can surely do your task as per your need. I am ready for more discussion regarding your project. Let me know your best time for discussion. Regards, Vijay
$216 USD en 10 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Natick, United States
5,0
6
Forma de pago verificada
Miembro desde jul 15, 2007

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.