open-horizon / open-horizon/devops

OpenHorizon captures (and send into docker) trailing whitespace in environment variables (AnyLog testing)

Open
#177 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
12
Forks
46
PR merge metrics
No merged PRs in 30d

Description

During deployment test with Anylog (in an Agent/Edge Node) we noticed that OpenHorizon captures (and send into docker) trailing whitespace in environment variables

Stepts to reproduce:
Set env variables for AnyLog (in docker-makefiles/) – for example I’ve set DEFAULT_DBMS in edgelake_operator.env to have an empty space at the end of the value
Deploy node – make publish EDGELAKE_TYPE=operator
Attach to container, you’ll notice a trailing whitespace
root@localhost:~/service-edgelake# docker exec -it 119d9ad92ee6 /bin/sh
/app # echo "|${DEFAULT_DBMS}|"
|edgex |
Expect: No trailing spaces
Actual: trailing space

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in docker-makefiles/ and inspect how edgelake_operator.env is passed by make publish EDGELAKE_TYPE=operator into Docker. Reproduce with DEFAULT_DBMS containing a trailing space, then use docker exec to verify the container receives the value without trailing whitespace.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.