]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/4053'
authorTom Hughes <tom@compton.nu>
Wed, 31 May 2023 17:38:10 +0000 (18:38 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 31 May 2023 17:38:10 +0000 (18:38 +0100)
Dockerfile
INSTALL.md
script/vagrant/setup/provision.sh

index c85a6404606d99bd8ef4a416f6eed2a7c6319881..f3c56e1615c922c53a91dd5aaae86ea9a51c0d64 100644 (file)
@@ -20,8 +20,9 @@ RUN apt-get update \
       libxslt1-dev \
       locales \
       postgresql-client \
-      ruby3.0 \
-      ruby3.0-dev \
+      ruby \
+      ruby-dev \
+      ruby-bundler \
       software-properties-common \
       tzdata \
       unzip \
@@ -48,8 +49,7 @@ WORKDIR /app
 
 # Install Ruby packages
 ADD Gemfile Gemfile.lock /app/
-RUN gem install bundler \
- && bundle install
+RUN bundle install
 
 # Install NodeJS packages using yarn
 ADD package.json yarn.lock /app/
index 99db9c037bf71d777d4a8c7fcb90d21d3cf06b3c..74c736f4c735d6d29d9693d3a7f15819e0966d1b 100644 (file)
@@ -31,12 +31,11 @@ These can be installed on Ubuntu 22.04 or later with:
 
 ```
 sudo apt-get update
-sudo apt-get install ruby3.0 libruby3.0 ruby3.0-dev \
+sudo apt-get install ruby ruby-dev ruby-bundler \
                      libvips-dev libxml2-dev libxslt1-dev nodejs \
                      build-essential git-core \
                      postgresql postgresql-contrib libpq-dev libsasl2-dev \
                      libffi-dev libgd-dev libarchive-dev libbz2-dev npm
-sudo gem3.0 install bundler
 sudo npm install --global yarn
 ```
 
index d48fb9d0b5dfc72d46e3d50b4516100476ab5d1f..d34c46008e9363eddfb6bb4d68b98efdfc8bce5f 100644 (file)
@@ -16,12 +16,11 @@ apt-get update
 apt-get upgrade -y
 
 # install packages as explained in INSTALL.md
-apt-get install -y ruby3.0 libruby3.0 ruby3.0-dev \
+apt-get install -y ruby ruby-dev ruby-bundler \
                      libxml2-dev libxslt1-dev nodejs npm \
                      build-essential git-core \
                      postgresql postgresql-contrib libpq-dev libvips-dev \
                      libsasl2-dev libffi-dev libgd-dev libarchive-dev libbz2-dev
-gem3.0 install --version "~> 2.1.4" bundler
 npm install --global yarn
 
 ## install the bundle necessary for openstreetmap-website