Sha256: fa52fbca6ef5a20d3be0726e2733f26f74137bcf9cd0b20edee1bc4267111dbb

Contents?: true

Size: 1.02 KB

Versions: 26

Compression:

Stored size: 1.02 KB

Contents

#!/bin/bash -exu

export HOME=/root # user-data env runs in weird shell where user is root but HOME is not set

sudo yum install -y postgresql

# https://gist.github.com/juno/1330165
# Install developer tools
yum install -y git gcc make readline-devel openssl-devel

# Install ruby-build system-widely
git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
./install.sh
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc

# Install rbenv for root
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
set +u
source ~/.bashrc
set -u

# Install and enable ruby
rbenv install 2.5.0

# Install ruby for ec2-user also
cp -R ~/.rbenv /home/ec2-user/
chown -R ec2-user:ec2-user /home/ec2-user/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> /home/ec2-user/.bashrc
echo 'eval "$(rbenv init -)"' >> /home/ec2-user/.bashrc
echo '2.5.0' > /home/ec2-user/.ruby-version

uptime | tee /var/log/boot-time.log

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
forger-2.0.2 docs/example/app/user_data/bootstrap.sh
forger-2.0.1 docs/example/app/user_data/bootstrap.sh
forger-2.0.0 docs/example/app/user_data/bootstrap.sh
forger-1.6.0 docs/example/app/user-data/bootstrap.sh
forger-1.5.4 docs/example/app/user-data/bootstrap.sh
forger-1.5.3 docs/example/app/user-data/bootstrap.sh
forger-1.5.2 docs/example/app/user-data/bootstrap.sh
forger-1.5.1 docs/example/app/user-data/bootstrap.sh
forger-1.5.0 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.9 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.8 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.7 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.6 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.5 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.4 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.3 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.2 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.1 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.4.0 docs/example/app/user-data/bootstrap.sh
aws-ec2-1.3.2 docs/example/app/user-data/bootstrap.sh