Download and extract the Xray installer if required.
Run
configureJas.shfrom the extracted Xray installer directory and provide the necessary inputs as directed.RPM - You can find the file in the following location,
jfrog-xray-<version>-rpm/configureJas.sh.Deb - You can find the file in the following location,
jfrog-xray-<version>-deb/configureJas.sh.Linux Archive - You can find the file in the following location,
jfrog-xray-<version>-linux/xray/app/bin/configureJas.shUser Account for Linux Archive Installation
Use the same user account to install Xray when you run
configureJas.sh.Xray user used to run the script must have sudo permission to install Ansible from the official upstream package manager. If the user cannot have sudo permission, install Ansible before running this script.
Docker Compose - You can find the file in the following location,
jfrog-xray-<version>-compose/configureJas.sh
Enter the information required by the script.
When the installation is successful, you can find the
kube_config.yamlfile under/opt/jfrog/xray/var/etcin Deb/RPM installation,<xray installation directory>/var/etcin Linux Archive installation, and/root/.jfrog/xray/var/etcfor Docker Compose installation.The installation also updates the Xray System YAML file with the entries for JAS.
Note
If you install the k3s cluster on the same machine as Xray (for testing and not for production), and use the Docker Compose installation, update the IP in
kube_config.yamlto match the IP of the machine. This ensures that Xray can access the k3s cluster from within the container.Restart the Xray service to enabled JAS.
HA Installation
Copy
kube_config.yamlfrom the first node to the additional nodes under the same path.You can find
kube_config.yamlfile under/opt/jfrog/xray/var/etcin Deb/RPM installation,<xray installation directory>/var/etcin Linux Archive installation, and/root/.jfrog/xray/var/etcfor Docker Compose installation.Run
configureJas.sh.Choose the option to use the existing
kube_config.yamlfile.Restart the Xray service after the installation is complete.