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

Add a script to create the Quickstart package #612

Conversation

mohamedasaker-arm
Copy link
Contributor

Fixes: #534

Signed-off-by: Mohamed Omar Asaker mohamed.omarasaker@arm.com

packaging_assets/package.sh Outdated Show resolved Hide resolved

[core_settings]
log_level = "info"
allow_root = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need this be included? I don't think we should expect that root account would be used by default

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure why it's used here in the first place, I've copied the config file in the recent quickstart package.
one reason I can think of is that the quickstart package would be the first thing a user may use.
so we don't want to make any assumptions unless documented.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think it makes much of a difference. Perhaps some people will want to run it with a root account, don't know how likely that is. We can either keep or remove this - the quickstart bundle isn't meant to be a secure deployment anyway.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm more worried that this quickstart config might be used as an example.
I'm OK with leaving it although I would prefer to remove it.

packaging_assets/package.sh Outdated Show resolved Hide resolved
packaging_assets/package.sh Outdated Show resolved Hide resolved
packaging_assets/package.sh Outdated Show resolved Hide resolved
packaging_assets/package.sh Outdated Show resolved Hide resolved
packaging_assets/package.sh Outdated Show resolved Hide resolved
packaging_assets/package.sh Show resolved Hide resolved
Fixes: parallaxsecond#534

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
@mohamedasaker-arm mohamedasaker-arm force-pushed the enhancement/534-Create-script-for-Quickstart-package branch from fc2177e to 8a10006 Compare June 8, 2022 20:47
 - Simplification, Use jq tool to extract the version instead of python
 - Fix commands used in the latest tag check
 - Remove redundant rm and mkdir commands
 - Correct the warning message
 - Build parsec-tool latest taged version

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
@mohamedasaker-arm mohamedasaker-arm force-pushed the enhancement/534-Create-script-for-Quickstart-package branch from 8a10006 to 2b314d9 Compare June 14, 2022 17:17
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Thanks for the change! Got a few comments, but perhaps some of them are just me misunderstanding stuff

packaging_assets/package.sh Show resolved Hide resolved
@@ -0,0 +1,128 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

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

I'd recommend setting some flags for the script to make sure nothing fails silently:

set -euf -o pipefail

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Thanks! 👍🏻

@ionut-arm ionut-arm merged commit 3ce2712 into parallaxsecond:main Jun 20, 2022
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.

Create script for Quickstart package
3 participants