{"id":13749942,"url":"https://github.com/openstf/setup-examples","last_synced_at":"2025-05-09T13:31:40.865Z","repository":{"id":66579903,"uuid":"45825205","full_name":"openstf/setup-examples","owner":"openstf","description":"STF Setup Examples using Vagrant and Docker","archived":false,"fork":false,"pushed_at":"2020-08-15T14:40:13.000Z","size":154,"stargazers_count":45,"open_issues_count":4,"forks_count":33,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-16T01:32:54.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openstf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-11-09T08:31:33.000Z","updated_at":"2024-02-26T17:09:38.000Z","dependencies_parsed_at":"2023-02-24T12:15:29.576Z","dependency_job_id":null,"html_url":"https://github.com/openstf/setup-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstf%2Fsetup-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstf%2Fsetup-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstf%2Fsetup-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstf%2Fsetup-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openstf","download_url":"https://codeload.github.com/openstf/setup-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253258269,"owners_count":21879618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T07:01:19.127Z","updated_at":"2025-05-09T13:31:40.581Z","avatar_url":"https://github.com/openstf.png","language":null,"funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Warning\n\n# This project along with other ones in [OpenSTF](https://github.com/openstf) organisation is provided as is for community, without active development.\n# You can check any other forks that may be actively developed and offer new/different features [here](https://github.com/openstf/stf/network).\n# Active development has been moved to [DeviceFarmer](https://github.com/DeviceFarmer) organisation.\n\n## Smartphone Test Farm Setup Examples\n\n[Smartphone Test Farm](https://github.com/openstf/stf) 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.\n\nThis project will provide various setup examples of STF in production environment. I will be using [Vagrant](https://www.vagrantup.com/) with [VirtualBox](https://www.virtualbox.org/) provider to create virtual cluster for demonstration.\n\n## Assumptions\n- 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.\n  - [STF README](https://github.com/openstf/stf/blob/master/README.md)\n  - [STF DEPLOYMENT DOC](https://github.com/openstf/stf/blob/master/doc/DEPLOYMENT.md)\n- You are on OS X\n  - *Theoritically this can be done on any OS which supports VirtualBox and Vagrant but they haven't been confirmed yet!*\n\n## Requirements\n- [VirtualBox](https://www.virtualbox.org/) \u003e= 5.1.0\n- [VirtualBox Extension Pack](https://www.virtualbox.org/)\n- [Vagrant](https://www.vagrantup.com/) \u003e= 1.8.5\n\n## Setup Architecture\nBefore 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.\n- Database Cluster\n  - Cluster for running database. [Rethinkdb](https://www.rethinkdb.com) cluster.\n- STF Cluster\n  - Cluster where STF components will be running. (CoreOS, Ubuntu etc)\n\n![stf_cluster_architecture](docs/stf_cluster_architecture.png)\n\nWe 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!\n\n## Setup\n\n```sh\ngit clone https://github.com/openstf/setup-examples.git stf-setup-examples\ncd stf-setup-examples\n```\n\n## Create Rethinkdb Cluster\n\nLets create rethinkdb cluster. Go to the `db` folder and run `vagrant up`. Yeah, thats it.\n\n```sh\ncd ./db; vagrant up\n```\n\nAbove command will do following things\n- Download **bento/ubuntu-16.04** image if image is not present (*this may take time depending on internet speed*)\n- Launch Ubuntu VM and set its IP to `198.162.50.11`\n- Install and run rethinkdb server\n\nYou can confirm if rethinkdb is up by visiting rethinkdb [admin console](http://198.162.50.11:8080)\n\nPlease have a look at [Vagrantfile](db/Vagrantfile) to have better understanding about what is happening.\n\n**TODO**: Use 2 instances of VM for rethinkdb if somebody complains that this is not a real cluster.\n\n## Create STF Cluster\n\nPlease check following host specific docs for STF cluster creation and deployment strategy.\n\n- [CoreOS + Fleet](docs/coreos_fleet.md)\n- [Ubuntu](docs/ubuntu.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstf%2Fsetup-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenstf%2Fsetup-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstf%2Fsetup-examples/lists"}