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

Add environment variable for each flag #6

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

synackd
Copy link
Collaborator

@synackd synackd commented Jan 19, 2024

Summary and Scope

Provide an environment variable for each flag to make configuration using Docker and docker-compose easier. Also, organize the parsing of these variables, as well as the program's flags, into their own separate functions for better readability for organization. Also, for each flag in the usage message, print its corresponding environment variable. For example:

  -insecure
        (BSS_INSECURE) Don't enforce https certificate security

in the above, setting BSS_INSECURE=true would be equivalent to passing the -insecure flag.

Issues and Related PRs

Testing

Tested on:

  • Cable Guys SI Cluster (cg-head and compute nodes)
    • This is a system of x86-64 Gigabyte 272-Z32-00 machines running Rocky Linux 8.8

Copy link
Member

Choose a reason for hiding this comment

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

Adding #8 to leave appropriate breadcrumbs without further delaying the merge of this code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants