Install Redis 4+ since Sidekiq 5 needs that

This commit is contained in:
rubic0n 2021-01-10 23:04:54 -06:00
parent 1e5d12497c
commit 194971da19
1 changed files with 10 additions and 1 deletions

11
Vagrantfile vendored
View File

@ -14,6 +14,12 @@ sudo apt-add-repository 'deb https://dl.yarnpkg.com/debian/ stable main'
# Add repo for NodeJS # Add repo for NodeJS
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
# Add repo for Redis (so we can have a newer version than 3.0.6)
# Sidekiq 5+ requires Redis 4+
sudo add-apt-repository ppa:redislabs/redis
sudo apt-get update
# Add firewall rule to redirect 80 to PORT and save # Add firewall rule to redirect 80 to PORT and save
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port #{ENV["PORT"]} sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port #{ENV["PORT"]}
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
@ -29,7 +35,7 @@ sudo apt-get install \
libxslt1-dev \ libxslt1-dev \
imagemagick \ imagemagick \
nodejs \ nodejs \
redis-server \ redis \
redis-tools \ redis-tools \
postgresql \ postgresql \
postgresql-contrib \ postgresql-contrib \
@ -42,6 +48,9 @@ sudo apt-get install \
libpam0g-dev \ libpam0g-dev \
-y -y
# Start Redis Server
sudo service redis-server start
# Install rvm # Install rvm
read RUBY_VERSION < .ruby-version read RUBY_VERSION < .ruby-version