-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get http input file docker image from config
- Loading branch information
NishiPhalke
committed
May 27, 2021
1 parent
db0932e
commit 8fc80a9
Showing
3 changed files
with
3 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package krews.file | ||
|
||
data class HttpInputFile(val url: String, override val path: String) : InputFile() { | ||
override fun downloadFileImage() = "alpine:3.9" | ||
data class HttpInputFile(val url: String, override val path: String, val dockerimage: String? = "alpine:3.9") : InputFile() { | ||
override fun downloadFileImage() = "$dockerimage" | ||
override fun downloadFileCommand(containerBaseDir: String) = "wget $url -O $containerBaseDir/$path" | ||
} |