-
Notifications
You must be signed in to change notification settings - Fork 862
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
FR: add build override options #1264
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,7 243,8 @@ class DockerApi { | |
tarballFilePath: string, | ||
buildLogs: BuildLog, | ||
envVars: IAppEnvVar[], | ||
registryConfig: DockerRegistryConfig | ||
registryConfig: DockerRegistryConfig, | ||
overrideOptions: string[] | undefined | ||
) { | ||
const self = this | ||
|
||
|
@@ -268,6 269,7 @@ class DockerApi { | |
const optionsForBuild: Dockerode.ImageBuildOptions = { | ||
t: imageName, | ||
buildargs: buildargs, | ||
...overrideOptions, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this how it's passed to Dockerode? Isn't it using a key<>value pair structure? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great way to word that question; it isn't! I'll take a look at Dockerode and make sure I'm passing the variable correctly. :) Thank you for taking the time to review this for me! I'll go through the concerns in the review, commit, build and test the functionality of the feature and change this from a draft after I confirm it works! |
||
} | ||
|
||
if (Object.keys(registryConfig).length > 0) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 46,8 @@ const configs = { | |
defaultEmail: '[email protected]', | ||
|
||
captainSubDomain: 'captain', | ||
|
||
overrideOptions: [], | ||
} | ||
|
||
const data = { | ||
|
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.
Must be renamed to
dockerBuildOverrideOptions
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.
Thanks, will do.