Skip to content

Conversation

@jirkace
Copy link
Contributor

@jirkace jirkace commented Mar 10, 2025

… EVN

Types of changes

Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Purpose of changes

#242

  • allows you to add your emulator config to override some properties
  • you can define path to override file by ENV variable EMULATOR_OVERRIDE_CONFIG_PATH (eg. -e EMULATOR_OVERRIDE_CONFIG_PATH="/tmp/config.ini") and mount the file as volume (eg -v /your/path/to/config/config.ini:/tmp/config.ini) during docker run command

@jirkace jirkace force-pushed the emulator_override_config_242 branch from 701dbff to 64ceec2 Compare March 10, 2025 22:58
Copy link
Owner

@budtmo budtmo left a comment

Choose a reason for hiding this comment

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

could we add unit test (you can add in test_emulator file)? and could we add it in readme (about how to use it)?

EMULATOR_NAME = "EMULATOR_NAME"
EMULATOR_NO_SKIN = "EMULATOR_NO_SKIN"
EMULATOR_SYS_IMG = "EMULATOR_SYS_IMG"
EMULATOR_OVERRIDE_CONFIG_PATH = "EMULATOR_OVERRIDE_CONFIG_PATH"
Copy link
Owner

Choose a reason for hiding this comment

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

EMULATOR_CONFIG_PATH is a better name I think. what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, no problem, renamed. :-)

@budtmo
Copy link
Owner

budtmo commented Mar 11, 2025

Thank you so much @jirkace for the PR. I just leaved some comments on this PR.

@jirkace jirkace force-pushed the emulator_override_config_242 branch from 64ceec2 to e77d4ae Compare March 11, 2025 10:47
@jirkace
Copy link
Contributor Author

jirkace commented Mar 11, 2025

could we add unit test (you can add in test_emulator file)? and could we add it in readme (about how to use it)?

OK, I'll try to do it today.

@jirkace jirkace force-pushed the emulator_override_config_242 branch from e77d4ae to ab95b72 Compare March 11, 2025 16:36
@jirkace jirkace force-pushed the emulator_override_config_242 branch from ab95b72 to c8a8f0c Compare March 11, 2025 18:08
@jirkace
Copy link
Contributor Author

jirkace commented Mar 11, 2025

@budtmo Please, check it.

@jirkace jirkace requested a review from budtmo March 19, 2025 11:00
@budtmo budtmo merged commit eb91462 into budtmo:master Apr 28, 2025
1 check 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