OSDN Git Service
(root)
/
osdn-codes
/
image-creator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e04757
)
Use environment variable for json output.
author
Tatsuki Sugiura
<sugi@nemui.org>
Mon, 7 Oct 2019 05:06:43 +0000
(14:06 +0900)
committer
Tatsuki Sugiura
<sugi@nemui.org>
Mon, 7 Oct 2019 05:07:40 +0000
(14:07 +0900)
create-image
patch
|
blob
|
history
diff --git
a/create-image
b/create-image
index
0f815e0
..
7c9eeff
100755
(executable)
--- a/
create-image
+++ b/
create-image
@@
-170,8
+170,8
@@
class ImageCreator
"Description" => dir.path == '/' ? 'root' : dir.path[1..-1].tr('/', '-'),
"Format" => "raw",
"UserBucket" => {
- "S3Bucket" =>
"Change-to-your-buket-name"
,
- "S3Key" => "
/src-disks/
#{img_path_base}_#{idx}.img"
+ "S3Bucket" =>
ENV.fetch("S3_BUCKET", "osdn-base-images")
,
+ "S3Key" => "
#{ENV.fetch("S3_KEY_PREFIX", "src-disks/")}
#{img_path_base}_#{idx}.img"
}
})
end