https://github.com/reinskywalker/stf-deployment-services
This repository contains PowerShell scripts to automate the deployment of Smartphone Test Farm (STF) services using Docker on a Windows environment.
https://github.com/reinskywalker/stf-deployment-services
devicefarm docker powershell-script stf
Last synced: 2 months ago
JSON representation
This repository contains PowerShell scripts to automate the deployment of Smartphone Test Farm (STF) services using Docker on a Windows environment.
- Host: GitHub
- URL: https://github.com/reinskywalker/stf-deployment-services
- Owner: reinskywalker
- Created: 2024-09-17T06:46:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-18T03:38:32.000Z (over 1 year ago)
- Last Synced: 2024-09-26T14:24:10.297Z (about 1 year ago)
- Topics: devicefarm, docker, powershell-script, stf
- Language: PowerShell
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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.
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.