getgauge / gauge-ruby

Ruby runner for Gauge.

Home Page:http://getgauge.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run gauge-ruby in ruby-alpine container

alexeybakunin opened this issue · comments

Description

Unable to run gauge-ruby specs in ruby-alpine container
Dockerfile:

FROM ruby:2.5.5-alpine3.10 as deps

RUN apk add --update --no-cache \
  ruby-dev \
  build-base \
  pcre-dev \
  mariadb-dev \
  postgresql-dev \ 
  libxml2-dev \
  libxslt-dev \
  libffi-dev \
  ruby-nokogiri \
  curl

RUN curl -SsL https://downloads.gauge.org/stable | sh

RUN gauge install ruby

Steps to reproduce:

  1. Build and run docker container
  2. Try to run ruby specs inside docker container

Expected result:

  1. Specs ran successfully

Actual result:

  1. Failed to start gauge API: fork/exec bin/gauge-ruby: no such file or directory

Failed to start gauge API: fork/exec bin/gauge-ruby: no such file or directory

@alexeybakunin you can add libc6-compat and gcompat to resolve the above issue.
Example:

RUN apk add --update --no-cache \
  libc6-compat \
  gcompat

But the real problem with the alpine image would be the compatibility of google-protobuf gem.

@alexeybakunin Any update on this?

Closing this due to inactivity. Feel free to reopen if the issue persists.