URL: https://linuxfr.org/suivi/le-script-de-build-docker-compose-de-linuxfr-n-est-pas-a-jour Title: Le script de build docker-compose de linuxfr n'est pas à jour Authors: Babelouest Date: 2021年04月12日T20:36:01+02:00 License: CC By-SA Tags: debian Score: 1 Le script [docker-compose.yaml](https://github.com/linuxfrorg/linuxfr.org/blob/master/docker-compose.yaml) se base sur une Debian stretch. Ce n'est pas grave en soi, sauf qu'il installe des gems qui ne sont plus disponibles et donc la commande `docker-compose up` ne marche pas: ``` Your bundle is locked to mimemagic (0.3.5) from rubygems repository https://rubygems.org/ or installed locally, but that version can no longer be found in that source. That means the author of mimemagic (0.3.5) has removed it. You'll need to update your bundle to a version other than mimemagic (0.3.5) that hasn't been removed in order to install. ``` J'ai essayé de rajeunir un peu le `deployment/linuxfr.org/Dockerfile` pour qu'il prenne au moins Debian Buster, et enlever l'utilisation de backport au passage: ```diff index 75712c2f..71113118 100644 --- a/deployment/linuxfr.org/Dockerfile +++ b/deployment/linuxfr.org/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:stretch-slim +FROM debian:bullseye-slim LABEL maintainer="adrien@adorsaz.ch" LABEL version="1.0" @@ -7,15 +7,13 @@ LABEL description="Run LinuxFr.org Ruby on Rails website" WORKDIR /linuxfr.org # Install system dependencies -RUN echo 'deb http://deb.debian.org/debian stretch-backports main'>> '/etc/apt/sources.list.d/linuxfr.list' \ - && apt-get update \ +RUN apt-get update && apt-get upgrade -y \ && apt-get install -y --no-install-recommends \ - mysql-client libmysql++-dev git \ + default-mysql-client libmysql++-dev git \ build-essential openssl libreadline-dev curl libcurl4-openssl-dev zlib1g \ zlib1g-dev libssl-dev libxml2-dev libxslt-dev autoconf libgmp-dev libyaml-dev \ ncurses-dev bison automake libtool imagemagick libc6-dev hunspell \ hunspell-fr-comprehensive ruby ruby-dev ruby-rack \ - && apt-get install -t stretch-backports -y --no-install-recommends \ nodejs npm \ && gem install bundler \ && apt-get clean ``` Mais hélas ca ne builde toujours pas: ``` Step 12/17 : RUN bundle config set path 'vendor/bundle' && bundle config set deployment 'true' && bundle install ---> Running in 7b137995c759 /usr/lib/ruby/vendor_ruby/rubygems.rb:281:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /linuxfr.org/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:1.17.3` from /usr/lib/ruby/vendor_ruby/rubygems.rb:300:in `activate_bin_path' from /usr/local/bin/bundle:23:in `
' ```

AltStyle によって変換されたページ (->オリジナル) /