mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 11:25:40 +00:00
Merge pull request #2824 from justincormack/aws-fixes
Fix sriov flag on AWS
This commit is contained in:
commit
b5d4940f4e
@ -27,6 +27,9 @@ $ linuxkit build -format aws examples/aws.yml
|
|||||||
|
|
||||||
## Push image
|
## Push image
|
||||||
|
|
||||||
|
Before you do this you need to create a `vmimport` service role as explained in
|
||||||
|
[the VM import documentation](http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html).
|
||||||
|
|
||||||
Do `linuxkit push aws -bucket bucketname aws.raw` to upload it to the
|
Do `linuxkit push aws -bucket bucketname aws.raw` to upload it to the
|
||||||
specified bucket, and create a bootable image from the stored image.
|
specified bucket, and create a bootable image from the stored image.
|
||||||
|
|
||||||
|
@ -48,6 +48,9 @@ func pushAWS(args []string) {
|
|||||||
timeout := getIntValue(timeoutVar, *timeoutFlag, 600)
|
timeout := getIntValue(timeoutVar, *timeoutFlag, 600)
|
||||||
bucket := getStringValue(bucketVar, *bucketFlag, "")
|
bucket := getStringValue(bucketVar, *bucketFlag, "")
|
||||||
name := getStringValue(nameVar, *nameFlag, "")
|
name := getStringValue(nameVar, *nameFlag, "")
|
||||||
|
if *sriovNetFlag == "" {
|
||||||
|
sriovNetFlag = nil
|
||||||
|
}
|
||||||
|
|
||||||
sess := session.Must(session.NewSession())
|
sess := session.Must(session.NewSession())
|
||||||
storage := s3.New(sess)
|
storage := s3.New(sess)
|
||||||
|
Loading…
Reference in New Issue
Block a user