Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dkleinfelder
Copy link

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.

${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

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

Copy link

@hassenius hassenius Feb 22, 2019

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

@dkleinfelder
Copy link
Author

dkleinfelder commented Feb 22, 2019 via email

@jkwong888
Copy link

you can still have both in the bucket but the variable image_location refers to the actual package you're downloading. what it saves the file to on the filesystem isn't really relevant as it just unzips it and docker loads it. i just want to avoid having to update this file every time there's a new ICP release because it doesn't affect functionality, just name of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants