rapidfort / community-images

:gem: RapidFort hardened secure images
https://www.rapidfort.com
MIT License
217 stars 39 forks source link

[Bug]: `remsh` erlang shell not working in rapidfort/couchdb-official #610

Open utkarsh-1905 opened 6 months ago

utkarsh-1905 commented 6 months ago

Name and Version

rapidfort/couchdb-official:3.3.3

Which runtime are you using to reproduce this issue?

Is this issue reproducible on the original source image?

Reproducible

Could you please identify the category? Details in TROUBLE_SHOOTING.md

RF Error

What steps will reproduce the bug?

Run the container using docker run -d --name rcdb-3 -p 5984:5984 -p 4368:4369 -e COUCHDB_SECRET=hello -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -e ERL_FLAGS="-setcookie brumbrum" rapidfort/couchdb-official:3.3.3 and then try entering the erlang shell using docker exec -it rcdb-3 /opt/couchdb/bin/remsh

Are you using any custom parameters or values?

No

What is the expected behavior?

Screenshot from 2024-05-20 16-48-56

What do you see instead?

/opt/couchdb/bin/remsh: 131: exec: env: not found

env command is not available in the container

Additional information

The remsh shell is a utility used to connect with other nodes when couchdb is working in a cluster setup

utkarsh-1905 commented 6 months ago

Rapidfort image => rapidfort/couchdb-official:3.3.3 Tested against => couchdb:3.3

Edit: I believe adding the env command with its deps would fix the error and help the script run

utkarsh-1905 commented 6 months ago

There is also a coverage error here (in test script) since its only checking -h flag which is a bash script which runs fine, but the actual command does not run because of the missing env package