mastodon-docker/install.sh

26 lines
772 B
Bash
Raw Normal View History

2019-12-08 05:46:17 +00:00
#!/bin/bash
export PATH="$HOME/.rbenv/bin:$PATH"
export RUBY_CONFIGURE_OPTS="--with-jemalloc"
git clone https://github.com/rbenv/rbenv.git $HOME/.rbenv
cd $HOME/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.bashrc
echo 'eval "$(rbenv init -)"' >> $HOME/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
eval "$(rbenv init -)"
rbenv install 2.6.5
rbenv global 2.6.5
2019-12-08 05:46:17 +00:00
gem update --system
gem install bundler --no-document
2019-12-09 09:15:23 +00:00
git clone $REPO_URL /mastodon/app
2019-12-08 05:46:17 +00:00
cd /mastodon/app
2019-12-09 09:15:23 +00:00
git checkout $REPO_REV
2019-12-08 05:46:17 +00:00
bundle config build.nokogiri --use-system-libraries
2019-12-08 05:46:17 +00:00
bundle install \
-j$(getconf _NPROCESSORS_ONLN) \
--deployment --without development test
yarn install --pure-lockfile --ignore-engines