This topic explains how to install a remote The Data Repository Server uses MongoDB.
In this section:
You can run MongoDB in Docker or install and configure a local version.
| Table of Contents | ||
|---|---|---|
|
| Note |
|---|
| The information on this page concerns installing Parasoft Data Repository Server 3.6. For version 3.0, go here. |
Prerequisites
The Data Repository Server runs on the following operating systems:
- Windows 64-bit distributions for 2008 R2 and higher
- The following Linux 64-bit distributions:
- Amazon
- Debian 7
- RHEL 5, 6, 7
- SUSE 11
- Ubuntu 12.04, 14.04, 14.10
- Mac OS X
- You can download the Data Repository server from the Parasoft customer portal
Running in Docker
If you use Docker, you can run MongoDB with Docker ComposeThe Data Repository Server can be deployed on Docker using an image provided on Docker Hub. See Deploying in Docker and Kubernetes1 for more information and , including a link to the image.
...
sample yaml to get you started. When running MongoDB in Docker, you do not need to do any of the other installation or configuration steps detailed below.
Running Locally
You can run MongoDB locally. The Data Repository Server can use MongoDB Server version 4.2 or later, though it is recommended that you use the newest version you can.
- Download: https://www.mongodb.com/try/download/community
- Documentation: https://www.mongodb.com/docs/
...
The following distributions are available for download from the Parasoft customer portal. They contain a copy of MongoDB as well as several scripts you will need to use it with Parasoft products. Download the correct distribution for your operating system.
- parasoft_data_repository_server_3.6_linux_x86_64.zip
- parasoft_data_repository_server_3.6_osx_x86_64.zip
- parasoft_data_repository_server_3.6_win_x86_64.zip
If you have already installed a version of MongoDB that you wish to use, see Using Your Own MongoDB Installation.
The repository server can be installed on a machine of your choice and does NOT need to be on the same machine where you are running a Parasoft product. To set up the repository server, do the following:
Extract the data repository server .zip file you downloaded to a location of your choice and open the 'scripts' folder contained within it.
- Start the server by running server.bat (Windows) or server.sh (MacOS and Linux).
- Create a new user using the user.bat (Windows) or user.sh (MacOS and Linux). See Additional Information.
- (Optional) Register the server to CTP using the register.bat (Windows) or register.sh (MacOS and Linux).
- Verify that the server is running by opening <host>:<port> in a browser window, for example,
localhost:2424. You should see the following message:
You can stop the repository server in Windows by pressing CTRL+C in the console or by running ./server.sh stop on MacOS/Linux.
...
If you already have MongoDB installed and want to use it with Parasoft products, you will need to download the following assets from the Parasoft Marketplace:
You will also need
Parasoft_SOAVirt_Data_Repository_Scripts_Pack.zip
...
Please note that this applies to MongoDB versions 3.6 and later; these assets should not be used with older versions. If you have an older version installed, upgrade to a newer version or download the distribution zip file provided by Parasoft by following the directions above which can be downloaded from the Parasoft Marketplace.
| Excerpt | |||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MongoDB does NOT need to be on the same machine where you are running a Parasoft product. Configuring MongoDB with Data Repository ScriptsTo set up your MongoDB installation for use with Parasoft products using the scripts included with the Data Repository Pack, do the following:follow the procedure below. MongoDB Server version 4.2 or is required.
You can stop the repository server in Windows by pressing CTRL+C in the console or by running ./ Configuring MongoDB Installations Done by a Package ManagerTo set up a MongoDB installation done by a package manager for use with Parasoft products, you need to update the mongod.conf file (MacOS/Linux) or mongod.cfg file (Windows) in the MongoDB installation. Configure the
You also need to set up the required authentication. See https://www.mongodb.com/docs/manual/tutorial/configure-scram-client-authentication/ for more information about authentication in MongoDB. An example user is shown below. Note that the specific roles are required.
ConfiguringRemote Data RepositoryMongoDB Server to Use SSLYou can configure your remote data repository server to use SSL. It is not enabled by default, so you will need to follow the steps outlined below. Note that this procedure only applies to Windows and Mac installations; Linux users will need to install a distribution-specific version of MongoDB and follow the configuration directions from MongoDB.
Additional Information
Advanced Configuration via the server.conf FileThe server.conf file determines settings, such as the data repository server port (default is Automating Deployment with the Init ScriptOne script that is included in your Marketplace download is init.bat (Windows) or init.sh (MacOS or Linux). This initialization script exposes command-line arguments in which you can pass various inputs that would otherwise require an interactive input, simplifying an automated deployment of the data repository server. The examples below show the arguments that are passed to initialize user credentials as well as the optional arguments for registering CTP. Note that the init.bat/sh script uses settings from the default server.conf file, in particular defaulting to port 2424 and non-SSL. If you have edited the server.conf file, you will need to deploy the data repository server manually by running the server.bat/sh, user.bat/sh and (optionally) register.bat/sh scripts yourself.
|
...
