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

packer/build_images.sh: get version and release values from pipline #558

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

@yaronkaikov yaronkaikov marked this pull request as ready for review December 2, 2024 06:41
lsfreitas
lsfreitas previously approved these changes Dec 3, 2024
packer/build_image.sh Outdated Show resolved Hide resolved
if [ -z "$TARGET" ]; then
echo "Missing --target parameter. Please specify target cloud (aws/gce/azure)"
exit 1
fi

SSH_USERNAME=ubuntu

SCYLLA_FULL_VERSION="$VERSION-$SCYLLA_RELEASE"
SCYLLA_MACHINE_IMAGE_VERSION="$VERSION-$SCYLLA_MACHINE_IMAGE_RELEASE"

if [ $LOCALDEB -eq 1 ]; then
INSTALL_ARGS="$INSTALL_ARGS --localdeb"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, what about the option of --localdeb I'm not sure it will work now. Actually I'm not sure we are using it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not using it for sure. it's for someone who builds locally and then needs an AMI
We can obliterate it as we have today BYO can do that instead, WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think BYO it is a good alternative.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add another commit to remove it

related to changes in scylladb/scylla-pkg#4635,
modifying the script to get `version` and `release` values from the
pipeline to remove the constrain between dpackager OS and image OS

Should be merged together with scylladb/scylla-pkg#4635
@yaronkaikov yaronkaikov force-pushed the getscyllaversionandrelease branch from b59fce3 to ee479de Compare December 3, 2024 11:24
@yaronkaikov
Copy link
Collaborator Author

@Annamikhlin Added another commit with the cleanup

@yaronkaikov
Copy link
Collaborator Author

@Annamikhlin Added another commit with the cleanup

@Annamikhlin let me know if you have any more comments

@@ -36,19 +34,13 @@ print_usage() {
echo " --ec2-instance-type Set EC2 instance type to use while building the AMI. If empty will use defaults per architecture"
exit 1
}
LOCALDEB=0
DOWNLOAD_ONLY=0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOWNLOAD_ONLY - can be removed as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Annamikhlin
Annamikhlin previously approved these changes Dec 3, 2024
Copy link
Collaborator

@Annamikhlin Annamikhlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small comment, other than LGTM

Since both option are not really in use anymore, and in case we need to
build a custom image we can do it using BYO
@yaronkaikov yaronkaikov force-pushed the getscyllaversionandrelease branch from 7d6d53a to 264dd07 Compare December 3, 2024 14:02
@yaronkaikov yaronkaikov merged commit 7492921 into scylladb:next Dec 3, 2024
1 check passed
@yaronkaikov yaronkaikov deleted the getscyllaversionandrelease branch December 3, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants