Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

[Docker 17.12.1 (dind) Jenkins-dind:0.7.0-alpine] ERROR: Error installing domain_name or unf or unf_ext #31

Open
pruthvi6767 opened this issue Feb 12, 2019 · 0 comments

Comments

@pruthvi6767
Copy link

pruthvi6767 commented Feb 12, 2019

ERROR:

ERROR:  Error installing domain_name:
   ERROR: Failed to build gem native extension.

   current directory: /root/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/unf_ext-0.0.7.5/ext/unf_ext
/root/.rbenv/versions/2.4.1/bin/ruby -I /root/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0 -r ./siteconf20190212-5-1m4kee2.rb extconf.rb
checking for -lstdc++... yes

(Refer)[https://github.com/gliderlabs/docker-alpine/issues/261]'

Regenerate:

FROM mesosphere/jenkins-dind:0.7.0-alpine
USER root
# install necessary packages
RUN apk update && \
     apk add bash ca-certificates curl git build-base perl \
     libffi-dev bash zlib-dev linux-headers readline \
     gmp-dev gdbm-dev db-dev libressl-dev coreutils \
     readline-dev wget jq terraform mysql-client autoconf yaml-dev
# set env vars
ENV RBENV_ROOT /root/.rbenv
ENV PATH ${RBENV_ROOT}/shims:${RBENV_ROOT}/bin:$PATH
ENV RUBY_VERSIONS '2.4.1'
ENV RUBYGEMS_VERSION 3.0.2
# Set timezone for Jenkins Slave
ENV JENKINS_JAVA_OPTIONS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/Chicago -Duser.timezone=America/Chicago"
# install rbenv and ruby-build
RUN git clone https://github.com/rbenv/rbenv.git ${RBENV_ROOT}
RUN git clone https://github.com/rbenv/ruby-build.git ${RBENV_ROOT}/plugins/ruby-build
RUN sh ${RBENV_ROOT}/plugins/ruby-build/install.sh
# install rubies and set global version
RUN echo 'eval "$(${RBENV_ROOT}/bin/rbenv init -)"' >> /etc/profile
RUN source /etc/profile
RUN for version in $RUBY_VERSIONS; do rbenv install "$version"; done
RUN rbenv global $RUBY_VERSIONS
RUN ${RBENV_ROOT}/shims/gem update --system ${RUBYGEMS_VERSION}
RUN ${RBENV_ROOT}/shims/gem install --no-document --force io-console unf json rake bundler
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant