Examples for running the Broker Client without the code snippets display
Running the Broker Client for an integrated GitHub Server
The following command was entered to run the Broker Client for an integrated GitHub Server:
docker run --restart=always \
-p 8000:8000 \
-e BROKER_TOKEN=b1dcxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-e GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxx \
-e BROKER_CLIENT_URL=http://localhost:8000 \
-e PORT=8000 \
-e GIT_CLIENT_URL=http://code-agent:3000 \
--network mySnykBrokerNetwork \
snyk/broker:github-comwhere:
-p 8000:8000is port number8000on the host machine, mapped to port number8000on the Broker Client container. This is used for the communication between the Broker Client container and the Broker Server and Code Agent.-e BROKER_TOKENis the Broker token that is associated with the specific Organization and GitHub.-e GITHUB_TOKENis the GitHub token for accessing the GitHub repositories.-e BROKER_CLIENT_URLis the URL to the host machine of the Broker Client,http://localhost:8000.-e PORTis the local port, where the Broker Client container accepts connections, is8000.-e GIT_CLIENT_URL=http://code-agent:3000is the URL to the port of the running Code Agent container. The URL includes the name of the Code Agent container –code-agent- with its port no. -3000.--networkis the name of the Docker bridge network, used for the communication with the Client Broker,mySnykBrokerNetwork.snyk/broker:github-comis the Docker image of the Broker Client for GitHub.
Running the Broker Client for an integrated Azure Repos Server
The following command was entered to run the Broker Client for an integrated Azure Repos Server:
docker run --restart=always \
-p 8000:8001 \
-e BROKER_TOKEN=fe5bxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-e AZURE_REPOS_TOKEN=brmyxxxxxxxxxxxxxxxx \
-e AZURE_REPOS_ORG=snyktest \
-e AZURE_REPOS_HOST=dev.azure.com \
-e BROKER_CLIENT_URL=http://localhost:8000 \
-e PORT=8001 \
-e GIT_CLIENT_URL=http://code-agent:3000 \
--network mySnykBrokerNetwork \
snyk/broker:azure-reposwhere:
-p 8000:8001is the port number8000on the host machine, mapped to port number8001on the Broker Client container. This is used for the communication between the Broker Client container and the Broker Server and Code Agent.-e BROKER_TOKENis the Broker token that is associated with the specific Organization and Azure Repos.-e AZURE_REPOS_TOKENis the Azure Repo token for accessing the Azure Repos repositories.-e AZURE_REPOS_ORG-is the name of the Azure Repos organization,snyktest.-e AZURE_REPOS_HOSTis the domain name of the Azure Repos Server,dev.azure.com.-e BROKER_CLIENT_URLis the URL to the host machine of the Broker Client,http://localhost:8000.-e PORT- the local port, where the Broker Client container accepts connections,8001.-e GIT_CLIENT_URL=http://code-agent:3000is the URL to the port of the running Code Agent container. The URL includes the name of the Code Agent container –code-agent- with its port no. -3000.--networkis the name of the Docker bridge network, used for the communication with the Client Broker, ismySnykBrokerNetwork.snyk/broker:azure-reposis the Docker image of the Broker Client for Azure Repos.
Last updated
Was this helpful?

