Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewleo/4a6692aa1931f875e7c591ae5c86dd93 to your computer and use it in GitHub Desktop.
Save andrewleo/4a6692aa1931f875e7c591ae5c86dd93 to your computer and use it in GitHub Desktop.
Installing OpenSTF in Ubuntu 14.04

How to install OpenSTF in Ubuntu 14.04

  1. Add Add RethinkDB key

     source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
     wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
    
  2. Install packages

     sudo apt-get update && sudo apt-get install -y git nodejs nodejs-legacy npm rethinkdb android-tools-adb python autoconf automake libtool build-essential ninja-build libzmq3-dev libprotobuf-dev git graphicsmagick yasm stow
    
  3. Install additional packages via npm

     sudo npm install -g bower karma gulp
    
  4. Install ZeroMQ

     cd ~/Downloads && wget http://download.zeromq.org/zeromq-4.1.2.tar.gz && tar -zxvf zeromq-4.1.2.tar.gz && cd zeromq-4.1.2 && ./configure --without-libsodium --prefix=/usr/local/stow/zeromq-4.1.2
     make && sudo make install && cd /usr/local/stow && sudo stow -vv zeromq-4.1.2
    
  5. Install Google protobuf

     cd ~/Downloads && git clone https://github.com/google/protobuf.git && cd protobuf && ./autogen.sh && ./configure --prefix=/usr/local/stow/protobuf-`git rev-parse --short HEAD`
     make && sudo make install && cd /usr/local/stow && sudo stow -vv protobuf-*
    
  6. Update library path

     sudo ldconfig
    
  7. Install npm

     sudo npm install -g stf
    

Run OpenSTF

  1. Start required services

     rethinkdb &
     adb start-server
    
  2. Start OpenSTF

     stf local
    

or

    stf local --public-ip <ip address>
  1. View in actions

    Go to htttp://<your_ip_address>:7100

Reference

https://gist.github.com/pvsune/a2122369f91d2a518271

https://www.rethinkdb.com/docs/install/ubuntu/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment