hypriot / image-builder-raw

Raw Image for HypriotOS
http://blog.hypriot.com/post/how-to-get-docker-working-on-your-favourite-arm-board-with-hypriotos/
MIT License
21 stars 28 forks source link

ERROR: Error installing serverspec net-ssh #12

Closed samouds closed 6 years ago

samouds commented 6 years ago

Hello,

I get this error when I try to build the image using a Mac : make rpi-raw-image

RubyGems system software updated
ERROR:  Error installing serverspec:
        The last version of net-ssh (>= 2.7) to support your Ruby & RubyGems was 4.2.0. Try installing it with `gem install net-ssh -v 4.2.0` and then runningthe current command again
        net-ssh requires Ruby version >= 2.2.6. The current ruby version is 2.1.0.

Any idea ?

Thanks.

samouds commented 6 years ago

I had to use this Dockerfile to fix this

FROM ruby:2.3.7-jessie

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
    dosfstools \
    kpartx \
    zip \
    --no-install-recommends && \
    rm -rf /var/lib/apt/lists/*

RUN gem update --system && \
    gem install --no-document serverspec

COPY builder /builder/