-
Notifications
You must be signed in to change notification settings - Fork 243
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
Refactored Gaia parameters #198
Refactored Gaia parameters #198
Conversation
docker/Dockerfile
Outdated
@@ -307,7 +306,7 @@ RUN chmod +x ./gaia-linux-amd64 \ | |||
&& chmod 600 /root/.ssh | |||
|
|||
# Set homepath as volume | |||
VOLUME [ "${GAIA_HOMEPATH}" ] | |||
VOLUME [ "${GAIA_HOME-PATH}" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
in environment properties is not a good thing as they usually can't be parsed nicely or cause problems on the command line in ZSH they even have to be explicitly escaped sometimes like [
or {
. I would just leave this out. It's fine like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need some way to separate longer property options. My first idea was to use _
but if you pass parameters to the binary it also looks odd: -home_path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh hang on that stuff is auto-read. ARGH. Okay, never mind then.
Also, yeah it should be --home-path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found out that flag
supports that out of the box by replacing -
with _
for environment variables. Perfect 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh very awesome! :D :D Perfect. :)
Codecov Report
@@ Coverage Diff @@
## master #198 +/- ##
=========================================
- Coverage 62.22% 62.2% -0.03%
=========================================
Files 48 48
Lines 3934 3934
=========================================
- Hits 2448 2447 -1
- Misses 1081 1082 +1
Partials 405 405
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. I love consistency. Approved with a comment to leave the environment property as is, I think. :)
This PR refactors Gaia's configuration parameters which had an inconsistent naming scheme and missed some important documentation.