Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foodsoft v18.0 #279

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions conf/rails
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,29 @@ else
echo "Installing Ruby version: $RBY_VER_INSTALL"
fi

# ruby 2.x requires openssl 1.1 not available in bookworm
# req: https://github.com/foodcoops/foodsoft/blob/master/.ruby-version
if [[ "$RBY_VER_INSTALL" == 2.* ]] then
unset RELEASE
wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz
tar xf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w
./config --prefix=/opt/openssl-1.1.1w --openssldir=/opt/openssl-1.1.1w shared zlib
make
make install
rm -rf /opt/openssl-1.1.1w/certs
cd -
rm -r openssl-1.1.1w*
ln -s /etc/ssl/certs /opt/openssl-1.1.1w
MAKE_OPTS="-j$(nproc)" RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/openssl-1.1.1w rbenv install 2.7.8
else
MAKE_OPTS="-j$(nproc)" RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install $RBY_VER
fi

rbenv install "$RBY_VER_INSTALL"
rbenv global "$RBY_VER_INSTALL"


gem update --system

gem install "$GEMOPTS" rack
Expand Down
1 change: 1 addition & 0 deletions conf/rails-pgsql
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ EOF

chmod +x /usr/local/rbenv/rbenv.d/rehash/gem-symlinks.bash


MAKE_OPTS="-j$(nproc)" RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install $RBY_VER
rbenv global $RBY_VER

Expand Down