Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STF Deployment Services (with Docker Compose Integration)

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.

Directory Structure

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.

Existing Features

The core functionalities described previously for deploy_stf.ps1 and its helper scripts remain the same.

Using Docker Compose (Recommended)

Prerequisites:

  • Docker installed on your system.

Steps:

  1. Clone the repository and navigate to the deploy_stf directory.
  2. 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.
    • A sample file is included as .env.example. Copy it to .env and edit values like PUBLIC_IP and SECRET before running.
  3. 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.

Using the Main Script (Optional)

The deploy_stf.ps1 script is still available for advanced configurations or customization. Refer to the existing instructions and parameters for detailed usage.

Notes:

  • On Windows the script will prefer docker-compose if available. If you run the script without docker-compose, deploy_stf.ps1 will attempt a docker run flow but some options (host networking, USB mounts) may not work on Docker for Windows.
  • For USB passthrough and host networking prefer a native Linux host or WSL2 with Docker configured appropriately.

About

This repository contains PowerShell scripts to automate the deployment of Smartphone Test Farm (STF) services using Docker on a Windows environment.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages