Code Monkey home page Code Monkey logo

setup-examples's Introduction

Smartphone Test Farm Setup Examples

Smartphone Test Farm is a great tool to create on-premise device farm. And also, it is very easy to get started with it using it's stf local feature. But the problem is, this feature was developed for development purpose. Users are not supposed to use it in production. It is okay to use it for a small farm of 10 ~ 15 devices with one host machine. But to scale you will have to deploy it over a cluster instead.

This project will provide various setup examples of STF in production environment. I will be using Vagrant with VirtualBox provider to create virtual cluster for demonstration.

Assumptions

  • This project assumes that you already have read following nicely written documents. In case you haven't read, it is highly recommended to read them before going ahead.
  • You are on OS X
    • Theoritically this can be done on any OS which supports VirtualBox and Vagrant but they haven't been confirmed yet!

Requirements

Setup Architecture

Before going any further, I am going to give you a brief idea about what kind of setups are we going to do. Most of the setups will have two major components.

  • Database Cluster
    • Cluster for running database. Rethinkdb cluster.
  • STF Cluster
    • Cluster where STF components will be running. (CoreOS, Ubuntu etc)

stf_cluster_architecture

We will be creating these clusters using Vagrant and VirtualBox. And then deploy various software components on these clusters. By the end of this tutorial, you will have a running STF on your VMs which you will be able to access on http://172.17.8.101 from your browser. Stay Excited!

Setup

git clone https://github.com/openstf/setup-examples.git stf-setup-examples
cd stf-setup-examples

Create Rethinkdb Cluster

Lets create rethinkdb cluster. Go to the db folder and run vagrant up. Yeah, thats it.

cd ./db; vagrant up

Above command will do following things

  • Download bento/ubuntu-16.04 image if image is not present (this may take time depending on internet speed)
  • Launch Ubuntu VM and set its IP to 198.162.50.11
  • Install and run rethinkdb server

You can confirm if rethinkdb is up by visiting rethinkdb admin console

Please have a look at Vagrantfile to have better understanding about what is happening.

TODO: Use 2 instances of VM for rethinkdb if somebody complains that this is not a real cluster.

Create STF Cluster

Please check following host specific docs for STF cluster creation and deployment strategy.

setup-examples's People

Contributors

jerimiah797 avatar vbanthia avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.