no vi editor in html5gw container
Symptom
There is no vi editor available to make changes configuration file in docker/podman container of html5gw.
Environment
13.0;13.2;14.0 Privileged Access Manager (PAM, self-hosted) PSM
HTML5 Gateway
Cause
we use a minimal UINX version as a base image for the container, vi, vim, nano, etc aren't installed by default and this is the intended behaviour.
Resolution
+ To apply changes, you would normally add the variable to the contain run command. If there is no valid option for the change they would like to make, please have an enhancement request raised.
--
Launch the HTML5 Gateway container
https://docs.cyberark.com/pam-self-hosted/Latest/en/Content/PAS%20INST/Install_PSM_HTML5_Docker.htm#LaunchtheHTML5Gatewaycontainer
--
+ As a alternative way for customer, the customer can use “sed” as an editor. But, it is not recommended manually editing the files inside the container and these are not permanent changes. - Especially in Podman, as a container restart actually re-creates the container during the restarting.
for example,
1. first, make a copy and run to confirm the changes. below will show the result on console only and not update file.
sed '/TargetCommunicationType/s/TLS/RDP/g' /etc/opt/CARKpamgw/webapp/psmgw.conf
2. Once confirmed, run with -i option to make changes to file.
sed -i '/TargetCommunicationType/s/TLS/RDP/g' /etc/opt/CARKpamgw/webapp/psmgw.conf