OPEN-STF installation article (Linux)

Source: Internet
Author: User
Tags git clone docker ps docker run


The first way of pre-dependency is as follows: The underlying command depends on the following (Debian-like Linux commands)
sudo apt-get update 
sudo apt-get install -y git
sudo apt-get install -y curl
sudo apt-get install -y android-tools-adb 
sudo apt-get install -y python 
sudo apt-get install -y autoconf 
sudo apt-get install -y automake 
sudo apt-get install -y libtool 
sudo apt-get install -y build-essential 
sudo apt-get install -y ninja-build 
sudo apt-get install -y libzmq3-dev 
sudo apt-get install -y libprotobuf-dev 
sudo apt-get install -y graphicsmagick 
sudo apt-get install -y yasm 
sudo apt-get install -y stow


The above commands are recommended to be executed one by one from top to bottom for easy viewing of installation tips


1. JDK (ignored installed)
    • Configuration variables
2. Installing RETHINKDB


Refer to the official link for details


3. Installing NODEJS/NPM


Refer to the official link for details


    • The Debian command is as follows:

      sudo apt install -y nodejs
      sudo apt install -y npm
      sudo apt install -y npm
    • Update node NPM to the latest stable version

      npm install -g nn stable
4. Installing Bower


Client-side Technology Package Manager for searching, installing, and uninstalling network resources such as JavaScript, HTML, CSS, etc.
Refer to the official link for details


5. Installing ZEROMQ


Refer to the official link for details


cd ~/Downloads 
wget http://download.zeromq.org/zeromq-4.2.3.tar.gz 
tar -zxvf zeromq-4.2.3.tar.gz
cd zeromq-4.2.3
sudo ./configure --without-libsodium --prefix=/usr/local/stow/zeromq-4.2.3
sudo make
sudo make install
cd /usr/local/stow
sudo stow -vv zeromq-4.2.3
6. Install Google Protobuf
sudo apt-get install build-essential
sudo apt-get install dh-autoreconf

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


NPM Install-g STF



Domestic you can also use CNPM, reference


SOURCE Installation Instructions


If you fail to install using NPM or CNPM, you can try to install it in source code mode


1. Download the STF source code


Source Address


git clone [email protected]:openstf/stf.git
2. Enter the source directory installation, the command is as follows
npm install 或者 cnpm install
3. Post-Installation link global mode
npm link 或者 cnpm link
Verify that the installation is successful
sft doctor
Run the command as follows
1. rethinkdb & adb start-server
2. stf local --public-ip <ip address>
Access mode
http://<your_ip_address>:7100
The second type of Docker installation 1. Installing Docker


See official documentation


2. Pull to mirror
Sudo docker pull openstf/stf:latest # STF mirror
Sudo docker pull sorccu/adb:latest # android adb mirror
Sudo docker pull rethinkdb:latest # rethinkdb mirror
Sudo docker pull openstf/ambassador:latest
Sudo docker pull nginx:latest # nginx proxy image
3. Check the image
sudo docker images
4. Boot image
- docker run -d --name rethinkdb -v /srv/rethinkdb:/data --net host rethinkdb rethinkdb --bind all --cache-size 8192 --http-port 8090
- docker run -d --name adbd --privileged -v /dev/bus/usb:/dev/bus/usb --net host sorccu/adb:latest
- docker run -d --name stf --net host openstf/stf stf local --public-ip <your-ip>
- sudo docker ps -a


The online documentation is as follows:
https://my.oschina.net/u/2474096/blog/1359161



OPEN-STF installation article (Linux)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.