Public Repository

Last pushed: 7 months ago
Short Description
HPE Mobile Center
Full Description

HPE Mobile Server Dockerfile

This repository contains the Dockerfile of the Mobile Center server which connects to a remote postgres database (not included in the package).
Mobile Center server on Docker should be used together with HPMC Windows/Linux Connector.

Volumes: “/opt/hpmc/”

Exposed Ports: 8080(http),5432(Postgres) and optional port 8443(https)

Base Docker Image

  • centos

Image size

  • 872MB

Installation

  • Install Docker

  • Download the Mobile Center image from the public Docker Hub Registry: docker pull hpsoftware/hpemc

Usage

Make sure that you have Postgres database up and running on a machine that can be accessed by the server. If you do not have it, you can obtain it from the Docker hub.
Version 9.3 of the Postgres database is recommended. To obtain this, type docker pull postgres:9.3.
Run the Postgres container in the background:

docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=[postgres_password] -d postgres:9.3

Start a container and launch the MC server

After you have Postgres database up and running, you can start the MC Server container.

  1. Check that the following ports are available and not being used by another process:
    • 8080
    • 8443 (optional, only required if connecting with SSL)
  2. Run the following command to run the MC Server in the background in detached mode:

    docker run -d --name hpmc -p 8080:8080 -e POSTGRES_HOST=[postgres_ip] -e POSTGRES_PORT=5432 -e POSTGRES_USER=[postgres_user] -e POSTGRES_PASSWORD=[postgres_password] -e FQDN=[host_ip] hpsoftware/hpemc
    

    When working with SSL, specify SSL port:

    docker run -d --name hpmc -p 8443:8443 -e POSTGRES_HOST=[postgres_ip] -e POSTGRES_PORT=5432 -e POSTGRES_USER=[postgres_user] -e POSTGRES_PASSWORD=[postgres_password] -e FQDN=[host_ip] hpsoftware/hpemc
    
  3. If you need to use different ports, specify them in the command string:

    docker run --name postgres -p [custom_port]:5432 -e POSTGRES_PASSWORD=[postgres_password] -d postgres:9.3
    
    docker run -d --name hpmc -p [custom_port]:8080 -e POSTGRES_HOST=[postgres_ip] -e POSTGRES_PORT=[custom_port] -e POSTGRES_USER=[postgres_user] -e POSTGRES_PASSWORD=[postgres_password] -e FQDN=[host_ip] hpsoftware/hpemc
    

    Note: If you specify a non-default ports, you also need to modify the ports on the connector and tools.

Begin your Mobile Center test

Open the Mobile Center home page http://<host>:<port> and log in.

Install the appropriate Mobile Center connector on the testing machine. For details, see Install the Mobile Center connector on a testing PC.

Prepare your Mobile Center test with the relevant tool, such as UFT, Sprinter, or TruClient.

Logs

To check the logs of your Mobile Center server running in the Docker container, run the following command:

  • docker inspect hpmc|grep '"Source": "/var/lib/docker/volumes'
  • Go to the server/log folder on the server machine and view the log.

See also

Install Mobile Center with Docker

Docker Pull Command
Owner
hpsoftware

Comments (0)