The eLxr Pro Client (elxr-pro) is the official tool to enable eLxr Pro offerings on your system.
Try it out by running elxr-pro help!
-
Clone the repository and start debian docker environment:
git clone https://gitlab.com/elxrpro/subscription_services/elxr-pro.git export DISTRO=bookworm docker run -ti --privileged -v elxr-pro:/elxr-pro debian:$DISTRO /bin/bash apt update;apt install vim git git-buildpackage -y
-
Get the dependencies and build the deb package locally by manual: Given we have the pipeline build, it's not necessary to build deb package locally.
cd /elxr-pro git config --global --add safe.directory /elxr-pro apt build-dep . dpkg-buildpackage
You can find the deb package has been generated as elxr-pro*.deb at the parent path.
-
As the unit tests have been added in the debian/rule, the unit tests will be executed during the building process of the deb package. If you want to execute the unit tests by manual firstly, you can execute the following command:
cd /elxr-pro pytest
or
cd /elxr-pro
python3 -m pytestYou can get the followingdetailed usage summary for each sub-commands:
sudo elxr-pro -h
Quick start commands:
join attach this machine to an eLxr Pro subscription
Other commands:
config manage eLxr Pro configuration on this machine
leave remove this machine from an eLxr Pro subscription
test validate the connection to the API serverTest sub-command is used to validate if the connection to the API Server is reachable.
sudo elxr-pro test <token>or
sudo elxr-pro testFor join command, you can get a token from the subscription dashboard page. Then execute the join command with the token to activate the pro entitlements.
sudo elxr-pro join <token>Use the --pro-only option to just keep pro resources:
sudo elxr-pro join --pro-only <token>You can return back elxr resource with leave sub command:
sudo elxr-pro leaveThis will restore the elxr apt repository resource.
The config subcommand is to support the apt proxy feature: If there is an apt proxy candidate, it can be enable with the config command:
sudo elxr-pro config show
sudo elxr-pro config set ea_apt_http_proxy=${proxy_url}
sudo elxr-pro config set ea_apt_https_proxy=${proxy_url}or
sudo elxr-pro config set global_apt_http_proxy=${proxy_url}
sudo elxr-pro config set global_apt_https_proxy=${proxy_url}The apt proxy setting can be shown in the file /etc/apt/apt.conf.d/90elxr-advantage-aptproxy
-
install the elxr-pro deb package:
dpkg -i elxr-pro-*.deb which elxr-pro -
Edit and customize the configuration file:
vim /etc/elxr-advantage/eaclient.conf
Set the contract_url and log_level to the appropriate values for the development environment. The contract_url should point to the API Server(https://gitlab.com/elxrpro/subscription_services/api-server) where your implementation is hosted.
-
Verify the connection to API Server:
elxr-pro test <token>
-
Execute the join/leave sub-commands to activate/deactivate elxr-pro mirros:
elxr-pro join <token> elxr-pro leave
-
Download the elxr-pro deb package from Gallery(Please refer to https://confluence.wrs.com/display/OS2/ELxr+Pro+Gallery+Release+Process)
-
Install the deb pacakge in the target system
sudo dpkg -i elxr-pro*.deb
Build the elxr-pro deb pacakge or download it from the elxrpro gitlab artifacts page, then install it with the following command:
sudo dpkg -i elxr-pro*.debThe full python libaries will be imported at /usr/lib/python3/dist-packages/eaclient, you can combine the '--debug' option fur debugging.
Please refer to https://gitlab.com/groups/elxrpro/-/issues and new a page to track the issue.
The license for this project is the Apache 2.0 license. Text of the Apache 2.0 license and other applicable license notices can be found in the LICENSE file in the top level directory. Each source file should include a license notice that designates the licensing terms for the respective file.
All product names, logos, and brands are property of their respective owners. All company, product and service names used in this software are for identification purposes only. Wind River and VxWorks are a registered trademarks of Wind River Systems. Amazon and AWS are registered trademarks of the Amazon Corporation.
Disclaimer of Warranty / No Support: Wind River does not provide support and maintenance services for this software, under Wind River’s standard Software Support and Maintenance Agreement or otherwise. Unless required by applicable law, Wind River provides the software (and each contributor provides its contribution) on an “AS IS” BASIS, WITHOUT WARRANTIES OF ANY KIND, either express or implied, including, without limitation, any warranties of TITLE, NONINFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the software and assume ay risks associated with your exercise of permissions under the license.