### Install Dependencies and Run Swagger Server Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/components/extended/mission/README.md Instructions to install required Python packages and start the Flask server generated by Swagger Codegen. ```Python pip3 install -r requirements.txt python3 -m swagger_server ``` -------------------------------- ### Start FreeTAKServer on Windows Command Line Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/README.md This command initiates the FreeTAKServer application from the command line on a Windows system. Users must replace `[YourIP]` with the actual IP address for data package communication. It requires Python 3 to be installed and accessible in the system's PATH. ```Python python3 -m FreeTAKServer.controllers.services.FTS -DataPackageIP [YourIP] ``` -------------------------------- ### Run FreeTAKServer Docker Container Interactively Source: https://github.com/freetakteam/freetakserver/blob/master/README_DOCKER.md This command runs the FreeTAKServer Docker container in interactive mode, keeping the shell open for control. It dynamically retrieves the public IP for data package addressing, mounts the `ftsdata` volume for persistence, and exposes necessary ports (8080, 8087, 8443, 9000, 19023) for FTS services. This setup is ideal for initial testing and verification. ```shell docker run -it \ -e FTS_DP_ADDRESS="$(curl ifconfig.me)" \ --mount src=ftsdata,target=/opt/fts \ -p 8080:8080 -p 8087:8087 -p 8443:8443 \ -p 9000:9000 -p 19023:19023 \ fts:local ``` -------------------------------- ### Build FreeTAKServer Docker Image from Local Repository Source: https://github.com/freetakteam/freetakserver/blob/master/README_DOCKER.md This command builds a Docker image for FreeTAKServer directly from the current repository. The `-t fts:local` flag tags the image as `fts` with the version `local`, making it easy to reference when running containers. This process uses the development code present in the cloned repository. ```shell docker build . -t fts:local ``` -------------------------------- ### Run Integration Tests with Tox Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/components/extended/mission/README.md Commands to install Tox and execute the integration tests for the Swagger server. ```Bash sudo pip install tox tox ``` -------------------------------- ### Upgrade FreeTAKServer with Pip Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/README.md This command updates an existing FreeTAKServer installation to its latest available version using Pip, Python's package installer. It ensures the server benefits from the newest features and bug fixes. ```Shell pip install FreeTAKServer --upgrade ``` -------------------------------- ### Run Swagger Server in Docker Container Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/components/extended/mission/README.md Command to start a Docker container for the Swagger server, mapping port 8080. ```Bash docker run -p 8080:8080 swagger_server ``` -------------------------------- ### Run FreeTAKServer Docker Container in Background with Restart Policy Source: https://github.com/freetakteam/freetakserver/blob/master/README_DOCKER.md After confirming the FreeTAKServer container works, this command runs it in detached mode with a `--restart unless-stopped` policy. This ensures the container automatically restarts if it stops or the Docker daemon restarts, providing continuous operation. Similar to the interactive run, it configures dynamic IP, volume mounting, and port exposures for production-like deployment. ```shell docker run --restart unless-stopped \ -e FTS_DP_ADDRESS="$(curl ifconfig.me)" \ --mount src=ftsdata,target=/opt/fts \ -p 8080:8080 -p 8087:8087 -p 8443:8443 \ -p 9000:9000 -p 19023:19023 \ fts:local ``` -------------------------------- ### Create Docker Volume for FreeTAKServer Data Persistence Source: https://github.com/freetakteam/freetakserver/blob/master/README_DOCKER.md Before running the FreeTAKServer Docker container, it's crucial to set up a persistent storage location for its data. This command creates a Docker volume named `ftsdata` which will store the database, data packages, ExCheck lists, and critical certificates, ensuring data is preserved between container runs. ```shell docker volume create ftsdata ``` -------------------------------- ### FreeTAKServer 'package not found' Error Message Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/README.md This snippet displays a common error message encountered when FreeTAKServer cannot locate its required packages. This typically indicates an issue with the installation path or missing Python libraries, suggesting the user should navigate to the installation directory or check for missing dependencies. ```Console Output 'package not found' ``` -------------------------------- ### FreeTAKServer Python Development Dependencies Source: https://github.com/freetakteam/freetakserver/blob/master/requirements.txt This `requirements.txt` file specifies the Python packages required for developing and testing the FreeTAKServer project. It includes an editable mode installation for the project itself, along with testing frameworks like pytest and code coverage tools. ```Python -e . pytest>=7.0.0 pytest-pep8>=1.0.0 pytest-cov>=4.0.0 pytak ``` -------------------------------- ### Python Project Dependencies List Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/components/extended/mission/requirements.txt Specifies the required Python packages and their minimum or exact versions for the project. These dependencies are typically installed using pip from a requirements file. ```Python connexion >= 2.6.0 connexion[swagger-ui] >= 2.6.0 python_dateutil == 2.6.0 setuptools >= 21.0.0 swagger-ui-bundle >= 0.0.2 ``` -------------------------------- ### Build Docker Image for Swagger Server Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/components/extended/mission/README.md Command to build the Docker image for the Swagger-generated Flask server. ```Bash docker build -t swagger_server . ``` -------------------------------- ### Python Project Dependency List Source: https://github.com/freetakteam/freetakserver/blob/master/FreeTAKServer/components/extended/mission/test-requirements.txt This snippet details the Python packages and their exact or minimum version requirements for the FreeTAKServer project. These dependencies are crucial for setting up the development and production environments correctly, ensuring all necessary libraries are available and compatible. ```Python flask_testing==0.8.0 coverage>=4.0.3 nose>=1.3.7 pluggy>=0.3.1 py>=1.4.31 randomize>=0.13 tox==3.20.1 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.