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

build(snap): source metadata from repo #380

Merged

Conversation

MonicaisHer
Copy link
Contributor

The metadata kept in snapcraft.yaml is obsolete because it is being overridden on the store. This change will allow sourcing the central copy of metadata.

See canonical/edgex-snap-metadata#2

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/app-service-configurable/blob/main/.github/CONTRIBUTING.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

The metadata kept in snapcraft.yaml is obsolete
because it is being overridden on the store. 
This change will allow sourcing the central copy of metadata.

See canonical/edgex-snap-metadata#2

Signed-off-by: Mengyi Wang <mengyi.wang@canonical.com>
Signed-off-by: Mengyi Wang <mengyi.wang@canonical.com>
Signed-off-by: Mengyi Wang <mengyi.wang@canonical.com>
@MonicaisHer MonicaisHer changed the title Snap minimize local metadata build(snap): source metadata from repo Feb 10, 2022
@MonicaisHer
Copy link
Contributor Author

@farshidtz @siggiskulason Could you please review it? Thanks!

Copy link

@siggiskulason siggiskulason left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@farshidtz farshidtz left a comment

Choose a reason for hiding this comment

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

Thanks @MonicaisHer

Testing Instructions

# clean and build:
$ snapcraft clean && snapcraft

# unpack the built snap:
$ unsquashfs name.snap

# verify that icon exists:
$ ls squashfs-root/meta/gui/icon.png 
squashfs-root/meta/gui/icon.png

# verify that version, summary and description are included
$ cat squashfs-root/meta/snap.yaml
...
version: 2.2.0-dev.12
summary: EdgeX App Service Configurable
description: |-
  This service is provided as an easy way to get started with processing data flowing through EdgeX.
  It leverages the App Functions SDK and provides a way for developers to use configuration instead of writing code to utilize the built-in functionalities.

  **Snap usage instructions**

  https://github.com/edgexfoundry/app-service-configurable/blob/main/snap/README.md

  **Source code and more info**

  https://github.com/edgexfoundry/app-service-configurable

  **Service usage examples**

  * v1.3: https://docs.edgexfoundry.org/1.3/microservices/application/AppServiceConfigurable
  * v2.1: https://docs.edgexfoundry.org/2.1/microservices/application/AppServiceConfigurable
  * v2.2: https://docs.edgexfoundry.org/2.2/microservices/application/AppServiceConfigurable

  **EdgeX Documentation**

  https://docs.edgexfoundry.org

  **Reference platform snap**

  https://snapcraft.io/edgexfoundry
...

@siggiskulason siggiskulason merged commit 426cd0b into edgexfoundry:main Feb 11, 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.

3 participants