-
Notifications
You must be signed in to change notification settings - Fork 30
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
Icp312 #15
base: master
Are you sure you want to change the base?
Icp312 #15
Conversation
${awscli} s3 cp ${image_location} ${IMAGE_DIR}/ibm-cloud-private-x86_64-3.1.0.tar.gz | ||
tar zxf ${IMAGE_DIR}/ibm-cloud-private-x86_64-3.1.0.tar.gz -O | docker load | ||
${awscli} s3 cp ${image_location} ${IMAGE_DIR}/ibm-cloud-private-x86_64-3.1.2.tar.gz | ||
tar zxf ${IMAGE_DIR}/ibm-cloud-private-x86_64-3.1.2.tar.gz -O | docker load |
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.
this was meant as a temporary filename and it didn't really matter what the version on this was as it would just extract whatever was in S3 and load it.
if you want, you can change this to ${IMAGE_DIR}/
basename ${image_location}` so it just uses the filename of what was out there on s3. so we don't have to change the filenames every time there's a new release
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.
+1 to having those two lines say
${awscli} s3 cp ${image_location} ${IMAGE_DIR}/$(basename ${image_location})
tar zxf ${IMAGE_DIR}/$(basename ${image_location}) -O | docker load
Will both be more future proof and avoid confusion
Well,
we had both in the bucket and it pulled 3.1.0 then.
Detlef Kleinfelder
Consulting IT Specialist, Hybrid Cloud Lab Services
API Management & Cloud Service Management and Operations
IBM Deutschland GmbH
Phone: 49-171-7663336
E-mail: [email protected]
Vorsitzender des Aufsichtsrats: Martin JetterGeschäftsführung: Matthias Hartmann (Vorsitzender), Norbert Janzen, Stefan Lutz, Nicole Reimer, Dr. Klaus Seifert, Wolfgang WendtSitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / WEEE-Reg.-Nr. DE 99369940
----- Original message -----From: Jeffrey Kwong <[email protected]>To: ibm-cloud-architecture/terraform-icp-aws <[email protected]>Cc: dkleinfelder <[email protected]>, Author <[email protected]>Subject: Re: [ibm-cloud-architecture/terraform-icp-aws] Icp312 (#15)Date: Fri, Feb 22, 2019 3:17 PM
@jkwong888 commented on this pull request.
In scripts/bootstrap.sh:
@@ -157,8 +157,8 @@ image_load() { #TODO Is this install directory parameterized? IMAGE_DIR=/opt/ibm/cluster/images mkdir -p ${IMAGE_DIR}- ${awscli} s3 cp ${image_location} ${IMAGE_DIR}/ibm-cloud-private-x86_64-3.1.0.tar.gz- tar zxf ${IMAGE_DIR}/ibm-cloud-private-x86_64-3.1.0.tar.gz -O | docker load+ ${awscli} s3 cp ${image_location} ${IMAGE_DIR}/ibm-cloud-private-x86_64-3.1.2.tar.gz+ tar zxf ${IMAGE_DIR}/ibm-cloud-private-x86_64-3.1.2.tar.gz -O | docker load
this was meant as a temporary filename and it didn't really matter what the version on this was as it would just extract whatever was in S3 and load it.
if you want, you can change this to ${IMAGE_DIR}/basename ${image_location}` so it just uses the filename of what was out there on s3. so we don't have to change the filenames every time there's a new release
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
you can still have both in the bucket but the variable |
The version number of the images should probably be better in a variable using tfvars ...
instead of hard-coding the version in the bootstrap.sh script.