How to Create a G-Repository Server

This lesson goes over the steps that must be completed to create a G-Repository Server. Please make certain the prerequisite steps in Lesson 3 have been completed before continuing with this lesson.

Run Command to Create a G-Repository Server (GRS)

Syntax: -grsrvc repoName

Example: genrocket -grsrvc

Step-by-Step Instructions

Step 1 – Create a G-Repository Server Base Subdirectory

On the computer where you want to create a new G-Repository Server, bring up a command-line terminal. From the home directory, make a base subdirectory for the G-Repository sever.

mkdir GRepositoryServer

Change to the subdirectory you just created.

cd GRepositoryServer

Step 2 – Run the GenRocket Command to Create a G-Repository Server

Enter the GenRocket command to create your G-Repository.

genrocket -grsrvc repoName

Step 3 – Verify You’re in the Correct Subdirectory 

If you have changed to the G-Repository Server directory you created, then answer y to move to the next question; otherwise, answer n to start over.

Are you sure you want to create your G-Repository in /Users/repoServer/GRepositoryServer? (y/n): y

Step 4 – Verify the Organization 

This option will only present if more than one option to choose from multiple organization was presented.

Are you sure you want to create a g-repository-server for organization GenRocket (y/n): y

Step 5 – Verify All Prerequisites Have Been Met

Upon entering y to the previous question, the following prerequisite information will be displayed.
Please read the prerequisite information and make sure that all have been met.  If all prerequisites
have been met, then answer y to the question below; otherwise, answer n, to leave the setup,
take the necessary steps to meet the prerequisites, and start over.  

***** Welcome to G-Repository Server *****

In this section, you’ll need to specify database connection parameters.
But, before doing so, make sure you have met the following prerequisites
  * You have downloaded and installed Java version 1.8 or higher
  * You have downloaded and installed the latest GenRocket runtime
  * You have downloaded and moved your GenRocket profile into the .genrocket subdirectory
  * You have downloaded and installed MySQL version 5.7 or higher
  * You have executed, within MySQL, the following commands:
    > GRANT ALL ON *.* to user_name@localhost IDENTIFIED BY ‘password’;
    > Example: GRANT ALL ON *.* to root@localhost IDENTIFIED BY ‘admin’;
    > create database g_repository_server;
  * You have placed the appropriate MySQL Driver Jar into the genrocket/lib subdirectory

Have you met these prerequisites and are ready to proceed (y/n): y

Step 6 – Enter the JDBC Connection Information

You will be asked to specify the following information:
  * URL
  * port
  * username
  * password
  * driver

After this information has been entered, an attempt to connect to the database will be made. If the attempt to connect fails, you must start over again.

Are you ready to proceed (y/n): y

Please enter URL (e.g. localhost): localhost
Please enter port (e.g. 3306): 3306
Please enter username: root
Please enter password: OpenSaysMe
Please enter driver (e.g. com.mysql.jdbc.Driver): com.mysql.jdbc.Driver

Attempting to connect to jdbc:mysql://localhost:3306/g_repository_server…
Connection successful!


Step 7 – To Encrypt or Not to Encrypt?  That is the Question?

After the JDBC connection information has been entered, GenRocket will create a file to store the connection information.  You have the choice of encrypting the file if you want to keep the username and password hidden from others. 

Would you like the file to be encrypted (y/n): y

Once you answer y or n to the encryption question, you have completed the setup steps and GenRocket should begin to download your projects.


Related Assets

GenRocket - Test Data Management

Download Literature

View Literature
GenRocket - Test Data Management

How to set up a G-Repository Server (GRS)

G-Repository Server Database Requirements

Read More
GenRocket - Test Data Management

How can we help
you today?