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

Make the base directory for requests configurable #32

Merged
merged 6 commits into from
Sep 20, 2024

Conversation

maxdebayser
Copy link
Contributor

The /requests path was hardcoded in a bunch of places making it difficult to install fmperf in a running container where you don't have root access to mkdir /create.

I've added an environment variable that defaults to "" so that all paths become local. If the path is not empty the code makes sure that there is an "/" at the end to concatenate the paths.

To prevent breaking existing scripts, in the Dockerfile the environment variable is set to /requests

The `/requests` path was hardcoded in a bunch of places making
it difficult to install fmperf in a running container where
you don't have root access to `mkdir /create`.

I've added an environment variable that defaults to ""
so that all paths become local. If the path is not empty
the code makes sure that there is an "/" at the end to
concatenate the paths.

To prevent breaking existing scripts, in the Dockerfile
the environment variable is set to `/requests`

Signed-off-by: Max de Bayser <[email protected]>
@maxdebayser
Copy link
Contributor Author

cc: @tdoublep

fmperf/utils/constants.py Outdated Show resolved Hide resolved
fmperf/loadgen/sweep.py Outdated Show resolved Hide resolved
Signed-off-by: Max de Bayser <[email protected]>
Copy link
Collaborator

@tdoublep tdoublep left a comment

Choose a reason for hiding this comment

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

LGTM

fmperf/utils/constants.py Outdated Show resolved Hide resolved
@tdoublep tdoublep merged commit 097ac80 into fmperf-project:main Sep 20, 2024
3 checks passed
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