Skip to content

Extension fails to install in root only environment (docker container) without sudo installed #59

Open
@JackWilb

Description

@JackWilb

The installation script seems to expect sudo to be installed, which it might not be in a minimal container with only a root user.

root@121f9f88f689:/app# id
uid=0(root) gid=0(root) groups=0(root)

root@121f9f88f689:/app# /root/.mysqlsh-gui/plugin_data/gui_plugin/web_certs/install.sh
The MySQL Shell Web Root Certificate required by the MySQL for VS Code extension will now be installed on your system.


The following script will be executed. Some operations will require the sudo password , please review at your own discretion:


    /root/.mysqlsh-gui/plugin_data/gui_plugin/web_certs/install.sh


The script will perform the following operations:


- Install the following requirements:
  - certutil
  - NSS User Database
- Install the MySQL Shell GUI certificate at the following locations:
* - NSS User Database


Do you want to continue [Y/n] ? 
Installing the certificate management utility: libnss3-tools
/root/.mysqlsh-gui/plugin_data/gui_plugin/web_certs/install.sh: line 26: sudo: command not found
Failed installing libnss3-tools
Press any key to continue...

Since I already have root permission, the install script shouldn't fail.

As a temporary work around, I installed sudo and finished the install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions