ruby 2.7.1

This commit is contained in:
f 2020-09-26 17:00:46 -03:00
parent dfe4cce635
commit e22e5ffbf5
3 changed files with 4 additions and 5 deletions

View file

@ -8,9 +8,7 @@ ENV HTTP_BASIC_USER=sutty
ENV HTTP_BASIC_PASSWORD=gibberish ENV HTTP_BASIC_PASSWORD=gibberish
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1 ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1
COPY ./gem-compiler.gem /tmp/ RUN gem install --no-user-install --no-document --source https://rubygems.org geminabox mini_portile2 gem-compiler
RUN gem install --no-user-install --no-document /tmp/gem-compiler.gem
RUN gem install --no-user-install --no-document --source https://rubygems.org geminabox mini_portile2
COPY ./gemcompiler.sh /usr/local/bin/gemcompiler COPY ./gemcompiler.sh /usr/local/bin/gemcompiler
RUN chmod 755 /usr/local/bin/gemcompiler RUN chmod 755 /usr/local/bin/gemcompiler
@ -20,6 +18,7 @@ VOLUME /srv/gems
RUN apk add --no-cache file-dev RUN apk add --no-cache file-dev
RUN apk add --no-cache libssh2-dev RUN apk add --no-cache libssh2-dev
RUN apk add --no-cache libc6-compat libstdc++
USER builder USER builder
ENTRYPOINT /usr/local/bin/gemcompiler ENTRYPOINT /usr/local/bin/gemcompiler

Binary file not shown.

View file

@ -6,11 +6,11 @@ PLATFORM=`ruby -e "puts RbConfig::CONFIG['arch']"`
cd /srv/gems cd /srv/gems
test -f ${GEM}-${VERSION}.gem \ test -f ${GEM}-${VERSION}.gem \
|| gem fetch --source=https://rubygems.org --platform=ruby \ || gem fetch --source=https://${SUTTY} --platform=ruby \
--version ${VERSION} ${GEM} --version ${VERSION} ${GEM}
test -f ${GEM}-${VERSION}-${PLATFORM}.gem \ test -f ${GEM}-${VERSION}-${PLATFORM}.gem \
|| gem compile -V --prune ${GEM}-${VERSION}.gem || gem compile -V --prune --strip "strip --strip-unneeded" ${GEM}-${VERSION}.gem
gem inabox -o ${GEM}-${VERSION}-${PLATFORM}.gem \ gem inabox -o ${GEM}-${VERSION}-${PLATFORM}.gem \
--host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.${SUTTY} --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.${SUTTY}