Sign inSign up

performancetesting/lrc_git_agent

By performancetesting

Updated about 1 month ago

Git agent for LoadRunner Cloud

Image
0

3.6K

performancetesting/lrc_git_agent repository overview

The image includes Git agent for LoadRunner Cloud. It's based on Ubuntu 22.04.

How to use this image

To create the container in background/detached mode:

docker run -d \
   -e "STORM_TENANT=<tenant id>" \
   -e "STORM_USERNAME=<username>" \
   -e "STORM_PASSWORD=<password>" \
   -e "STORM_PROJECT_ID=<project id>" \
   -e "STORM_AGENT_NAME=<agent name>" \
   -e "STORM_AGENT_CROSS_PROJECTS=<the flag to share agent across projects>" \
   -e "STORM_GIT_REPO_URL=<git repository URL>" \
   -e "STORM_GIT_REPO_BRANCH=<git repository branch>" \
   --net=host performancetesting/lrc_git_agent

If you need to configure multiple branches or repositories, use the following command to provide details via a mounted volume:

docker run -d \
   -e "STORM_TENANT=<tenant id>" \
   -e "STORM_USERNAME=<username>" \
   -e "STORM_PASSWORD=<password>" \
   -e "STORM_PROJECT_ID=<project id>" \
   -e "STORM_AGENT_NAME=<agent name>" \
   -e "STORM_AGENT_CROSS_PROJECTS=<the flag to share agent across projects>" \
   -v "<git agent workspace path>:/opt/gitworkspace" \
   --net=host performancetesting/lrc_git_agent

Note:

  • In the <git agent workspace path> folder, add a configuration file named as config.json (see the example below).
  • If other Git-related files such as .gitconfig or .ssh are required, add them to this folder.
  • Read, write, and execute permissions are required on the folder.
  • The target path /opt/gitworkspace is fixed. Using another path is not supported.
  • Sample "config.json”.
[
	{
		"url": "[email protected]:user/scripts.git",
		"branches": [
			"branch1",
			"branch2"
		]
	},
	{
		"url": "https://user:[email protected]/user/scripts.git",
		"branches": [
			"main"
		]
	}
]

Environment variables

You can also pass environment variables using the --env-file command line parameter.

  • STORM_TENANT: Your Tenant ID [required]
  • STORM_USERNAME: Your LoadRunner Cloud username [required]
  • STORM_PASSWORD: Your LoadRunner Cloud password [required]
  • STORM_PROJECT_ID: Project ID (default value 1) [optional]
  • STORM_AGENT_NAME: Agent name [required]
  • STORM_AGENT_KEY: Agent key [optional]
  • STORM_AGENT_DESCRIPTION: Agent description [optional]
  • STORM_AGENT_CROSS_PROJECTS: The flag to share agent across projects [yes|no; default: no] [optional]
  • STORM_GIT_REPO_URL: Git repository URL [optional]
  • STORM_GIT_REPO_BRANCH: Git repository branch [optional]

If the agent needs to use a proxy, pass it using the https_proxy or http_proxy environment variable.

Tag summary

Content type

Image

Digest

sha256:f97e56309

Size

133.9 MB

Last updated

about 1 month ago

docker pull performancetesting/lrc_git_agent