Managing your service
With the files copied and the Docker image installed, you can begin to run the service. One of the items installed is the icrforjava
command script. This command is used to stop/start the service, update critical parameters used by the service and to uninstall the software if you need to do that. The usage model for the command is as follows:
icrforjava [-a] [-d] [-l] [-p] [-v] [-h] <arg> ? [-c <cmd>]
The options can be combined in a single command. However, the -c <cmd>
should always go last since it is used to invoke server operations. We’ll be looking at each option in detail.
icrforjava -a <IP Address>
The -a
option is used to provide iCR for Java with an IP address for the server. The default IP address for the server is determined using localhost
. However, if you are using a cloud-based repository, such as GitHub, there needs to be a way for GitHub to reach the server from the cloud. In that case, you would need to provide a public IP address to allow GitHub to reach the iCR for Java server. You must configure iCR for Java with the public IP address using this command.
As an example: icrforjava -a 192.1.2.123
icrforjava -d <directory-path>
The -d
option is used to anchor iCR for Java with the point in your host file system where you plan to store projects for local access. While you may access GitHub, GitLab or Bitbucket to process repositories managed by those systems, you may also want to analyze and review projects resident in your local file system. You can also include directories that may be attached via a network attached storage and mounted into your file system. The default anchor point is the /home
directory under which user directories are normally located within Linux.
As an example: icrforjava -d /home/projects
icrforjava -l <license-key>
The -l
option is used when there is a need to update or replace your activation license. The license is activated when you first run iCR for Java (not when it was installed) and connect to the Navigator for the first time. Should your license become damaged or unusable, this is a way for us to provide you with a new license.
As an example: icrforjava -l GHTG-WK9M-9HSK-J9OR
icrforjava -p <default-passphrase>
The default passphrase for iCR for Java is set to: icrforjava
. When you first login to the service, you use the default passphrase to gain access to the Navigator. If the passphrase is set to the default, you will be prompted each time you connect to the Navigator to change it from the default to some other practical passphrase.
Using the -p
option allows you to reset the passphrase back to the original default or a new default phrase as specified by the string <default-passphrase>
that you provide. Just remember that, if you change the default, the Navigator will check to see if the default passphrase is in force and will continue to prompt you to change it.
As an example: icrforjava -p New\_Pa\$$word
icrforjava -v
It is sometimes important to know what version of iCR for Java software is being run. This command displays the current version of the software.
icrforjava -h / icrforjava ?
Displays the extended usage form for the icrforjava command:
icrforjava -c <cmd>
The previous options were used to update or change some configuration values. To actually operate iCR for Java you use the -c <cmd>
option. There are three specific values that can be used to control your server’s operation:
icrforjava -c start
This is the command that is used to start the iCR for Java server. It assumes that you have successfully installed the service on your host machine using
install-icr
. It starts the Docker image from scratch. The default passphrase will be used to access the Navigator for the first time. The default string is:icrforjava
. You will be prompted to change it once you access the Navigator.icrforjava -c stop
The
stop
command is used to stop the running instance of iCR for Java. The Docker container is stopped and any activity in progress is interrupted. For example, if the service is stopped during an analysis, that analysis will be abandoned. All results from previous analyses, however, are still available and can be viewed again once the service is restarted using thestart
command.icrforjava -c uninstall
There may be cases where you wish to remove iCR for Java entirely from your host system. If so, run the
uninstall
command. This will remove all of the Docker information as well as the directories that were created as part of theinstall-icr
process. All results from analyses will be removed. Please be certain that you want to remove everything if you decide to run this command. If you need to restore iCR for Java, and you have kept your original package, you can re-install the service using theinstall-icr
command again.
Last updated