This article defines the syntax for creating a G-Repository Server.  

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

Syntax: -grsrvc repoName

Example: Example: genrocket -grsrvc

Command Example - Step by Step

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

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 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 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 5 - 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 6 - 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.