Skip to content

Commit 81a318b

Browse files
committed
Update Development Setup and add script for Macs
1 parent 14b0b4e commit 81a318b

File tree

2 files changed

+59
-21
lines changed

2 files changed

+59
-21
lines changed

dev-script.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/bash
2+
# Note: This script is geared for Mac's, and may not work on your system
3+
4+
# Start in home directory
5+
cd ~
6+
7+
# Install xcode (May need to be done first then restart script)
8+
T1=$(command -v xcode-select)
9+
if [ "$T1" = "" ]; then
10+
xcode-select --install
11+
bash dev-script.sh
12+
else
13+
14+
# Install Homebrew
15+
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
16+
brew update
17+
brew tap AdoptOpenJDK/openjdk
18+
brew cask install adoptopenjdk8
19+
brew install clamav git imagemagick libvorbis libvpx openssl redis sqlite ghostscript mysql wget tmux ffmpeg
20+
21+
# Install rvm
22+
\curl -sSL https://get.rvm.io | bash -s stable --ruby
23+
source ~/.rvm/scripts/rvm
24+
rvm install ruby-2.5.3
25+
rvm use 2.5.3 --default
26+
27+
# Install FITS
28+
wget http://projects.iq.harvard.edu/files/fits/files/fits-1.0.5.zip
29+
unzip fits-1.0.5.zip
30+
cd fits-1.0.5
31+
chmod a+x fits.sh
32+
echo "export PATH=$PATH:~/fits-1.0.5" >> ~/.bash_profile
33+
34+
# Clone ucrate repo
35+
cd ~
36+
mkdir uclibs
37+
git clone https://github.com/uclibs/ucrate.git ~/uclibs/ucrate
38+
cd ~/uclibs/ucrate
39+
40+
# Install Bundler
41+
gem install bundler -v 1.17.3
42+
bundle install
43+
bundle exec rake db:migrate
44+
printf "\nYou need to continue from Step 6 on the README ( https://github.com/uclibs/ucrate/blob/develop/README.md )"
45+
fi

rails_development_setup.md

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,21 @@ Setting up Rails/Samvera development on a Mac
55
1. xcode-select --install
66

77
### Install Homebrew
8-
1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
9-
1. brew update
10-
1. brew install clamav git imagemagick libvorbis libvpx openssl redis sqlite ghostscript mysql wget
11-
1. brew install ffmpeg --with-libvpx --with-libvorbis
8+
1. `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
9+
1. `brew update`
10+
1. `brew tap AdoptOpenJDK/openjdk`
11+
1. `brew cask install adoptopenjdk8`
12+
1. `brew install clamav git imagemagick libvorbis libvpx openssl redis sqlite ghostscript mysql wget tmux ffmpeg`
1213

1314
### Install rvm
14-
1. \curl -sSL https://get.rvm.io | bash -s stable --ruby
15-
1. rvm install 2.5.1
16-
1. rvm use 2.5.1 --default
17-
18-
### Install java 8
19-
1. Download and install from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
20-
21-
### Install phantomjs
22-
1. wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip
23-
1. unzip phantomjs-2.1.1-macosx.zip
24-
1. cd phantomjs-2.1.1-macosx/bin/
25-
1. sudo cp phantomjs /usr/local/bin/
15+
1. `\curl -sSL https://get.rvm.io | bash -s stable --ruby`
16+
1. `rvm install 2.5.3`
17+
1. `rvm use 2.5.3 --default`
2618

2719
### Install FITS:
28-
1. wget http://projects.iq.harvard.edu/files/fits/files/fits-1.0.5.zip
29-
1. unzip fits-1.0.5.zip
30-
1. cd fits-1.0.5
31-
1. chmod a+x fits.sh
32-
1. Add the fits-1.0.5 directory to the path in ~/.bash_profile
20+
1. `wget http://projects.iq.harvard.edu/files/fits/files/fits-1.0.5.zip`
21+
1. `unzip fits-1.0.5.zip`
22+
1. `cd fits-1.0.5`
23+
1. `chmod a+x fits.sh`
24+
1. Add the fits-1.0.5 directory to the path in ~/.bash_profile
25+
`echo "export PATH=$PATH:~/fits-1.0.5" >> ~/.bash_profile`

0 commit comments

Comments
 (0)