Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): fix TRACETEST_DEV in docker compose installer #2394

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

jorgeepc
Copy link
Contributor

This PR applies a fix to the installer to allow us to use the TRACETEST_DEV environment variable in our shell to populate the value inside the Compose file generated by the installer.

Changes

  • CLI installer fix

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@jorgeepc jorgeepc added the CLI label Apr 14, 2023
@jorgeepc jorgeepc self-assigned this Apr 14, 2023
@@ -259,6 +260,8 @@ func fixTracetestContainer(config configuration, project *types.Project, version
tts.Image = "kubeshop/tracetest:" + version
tts.Build = nil
tts.Volumes[0].Source = tracetestConfigFilename
tracetestDevEnv := "${TRACETEST_DEV}"
tts.Environment["TRACETEST_DEV"] = &tracetestDevEnv
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We lose this value the moment we load the yaml config because it gets evaluated as an empty string.

@jorgeepc jorgeepc marked this pull request as ready for review April 14, 2023 16:49
Copy link
Contributor

@schoren schoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jorgeepc jorgeepc merged commit 9c41bdc into main Apr 14, 2023
@jorgeepc jorgeepc deleted the 2348-fix-tracetest_dev-env branch April 14, 2023 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Substitute TRACETEST_DEV env var from the shell in generated docker compose file
3 participants