This repository contains a set of modular PowerShell scripts designed to automate the deployment of Smartphone Test Farm (STF) services using Docker on a Windows environment. Each script serves a specific purpose, making it easy to maintain, update, and reuse.
Additionally, this project now supports deployment using Docker Compose, offering a simpler workflow.
deploy_stf/
├── config/
│ └── nginx.conf.template
├── modules/
│ ├── Install-Chocolatey.ps1
│ ├── Install-Tool.ps1
│ ├── Prepare-Environment.ps1
│ └── Run-Docker-Container.ps1
├── nginx/
│ ├── Dockerfile
│ ├── entrypoint.sh
│ ├── nginx.conf
├── storage-temp/
│ ├── Dockerfile
├── deploy_stf.ps1
└── docker-compose.yml
Changes:
docker-compose.yml
(New): This file defines the Docker services and configurations for your STF deployment.
The core functionalities described previously for deploy_stf.ps1
and its helper scripts remain the same.
Prerequisites:
- Docker installed on your system.
Steps:
- Clone the repository and navigate to the
deploy_stf
directory. - Set up the environment variables required by your STF services (refer to the
docker-compose.yml
file for details). You can do this by creating a.env
file in the project root directory and defining variables there. - Run the following command to start the STF deployment using Docker Compose:
docker-compose up -d
This command will build and start the Docker containers defined in docker-compose.yml
, automating the deployment process.
Benefits:
- Simplified workflow with a single command for deployment.
- Manages dependencies and configurations through
docker-compose.yml
. - Portable deployment across environments with Docker.
The deploy_stf.ps1
script is still available for advanced configurations or customization. Refer to the existing instructions and parameters for detailed usage.