Skip to content

Commit

Permalink
Merge pull request #228 from zebrunner/develop
Browse files Browse the repository at this point in the history
2.7
  • Loading branch information
vdelendik authored May 27, 2024
2 parents d4513eb + 2d64365 commit 75e6253
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .env.original
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TAG_NGINX=1.25.3
# MCloud
TAG_SELENIUM_HUB=2.5
TAG_RETHINKDB=2.4.2
TAG_STF=2.6.5
TAG_STF=2.7

# Authentication
AUTH_SYSTEM=auth-mock
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Feel free to support the development with a [**donation**](https://www.paypal.co

### Software requirements

* Install docker ([Ubuntu 16.04](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04), [Ubuntu 18.04](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04), [Ubuntu 20.04](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04), [Amazon Linux 2](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html), [Redhat/Cent OS](https://www.cyberciti.biz/faq/install-use-setup-docker-on-rhel7-centos7-linux/))

* Install [docker-composer](https://docs.docker.com/compose/install/#install-compose) 1.25.5+
* Installed Docker v19+

* Install git 2.20.0+
* Installed Docker compose plugin v2.20.3+

* Installed git 2.20.0+

## Usage
1. Clone [mcloud](https://github.com/zebrunner/mcloud) and set up:
Expand All @@ -43,7 +43,7 @@ Feel free to support the development with a [**donation**](https://www.paypal.co
6. Paste generated token into the variables.env for `STF_TOKEN` var
7. Restart services using `./zebrunner.sh restart`
8. Set up the servers with Android and iOS devices according to [mcloud-agent](https://github.com/zebrunner/mcloud-agent)
> [mcloud-ios](https://github.com/zebrunner/mcloud-ios) is deprecated. Use the same can be [mcloud-agent](https://github.com/zebrunner/mcloud-agent) to setup on MacOS too!
> [mcloud-ios](https://github.com/zebrunner/mcloud-ios) is deprecated. Use the same [mcloud-agent](https://github.com/zebrunner/mcloud-agent) to setup on MacOS too!
9. Use `http://hostname:80/mcloud/grid/console` to see connected devices and `http://hostname:80/mcloud/wd/hub` as Selenium/Appium hub url for test automation.

> Follow the installation and configuration guide in [Zebrunner CE](https://zebrunner.github.io/community-edition) to reuse MCloud components effectively for Test Automation.
Expand Down
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: '3.7'
networks:
default:
external:
name: infra
name: infra
external: true
services:
stf-proxy:
image: "nginx:${TAG_NGINX}"
Expand Down
8 changes: 4 additions & 4 deletions zebrunner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
fi
fi

docker-compose --env-file .env -f docker-compose.yml down -v
docker compose down -v

rm -f backup/settings.env
rm -f .env
Expand Down Expand Up @@ -133,23 +133,23 @@
exit -1
fi

docker-compose --env-file .env -f docker-compose.yml up -d
docker compose up -d
}

stop() {
if [[ -f .disabled ]]; then
exit 0
fi

docker-compose --env-file .env -f docker-compose.yml stop
docker compose stop
}

down() {
if [[ -f .disabled ]]; then
exit 0
fi

docker-compose --env-file .env -f docker-compose.yml down
docker compose down
}

backup() {
Expand Down

0 comments on commit 75e6253

Please sign in to comment.