-
Notifications
You must be signed in to change notification settings - Fork 0
POC - Enable DO Snap for DU Snap integration #1
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,3 +56,7 @@ _deps | |
| *_CPack_Packages/ | ||
| *.deb | ||
| out/ | ||
|
|
||
| # Snapcraft output files | ||
| *.snap | ||
| squashfs-root/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,6 +63,41 @@ parts: | |
| - libssh-4 | ||
| - libwind0-heimdal | ||
|
|
||
| sdk: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't think we should be including deb file within the snap. Since the recommendation is for DU to include the libDO.so in its own snap, let's keep this snapcraft file for the DO agent alone.
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed. This is for testing purposes only. |
||
| plugin: python | ||
| source: . | ||
| override-build: | | ||
| python3 ./build/build.py --project sdk --build-for-snap --package-for deb | ||
| mkdir -p ../install/bin | ||
| cp /tmp/build-deliveryoptimization-sdk/linux-debug/libdeliveryoptimization*.0.0_amd64.deb ../install/bin | ||
|
|
||
| after: | ||
| - installdeps | ||
|
|
||
| build-packages: | ||
| - file | ||
|
|
||
| stage-packages: | ||
| - libasn1-8-heimdal | ||
| - libboost-filesystem1.71.0 | ||
| - libbrotli1 | ||
| - libcurl4 | ||
| - libgssapi3-heimdal | ||
| - libhcrypto4-heimdal | ||
| - libheimbase1-heimdal | ||
| - libheimntlm0-heimdal | ||
| - libhx509-5-heimdal | ||
| - libkrb5-26-heimdal | ||
| - libldap-2.4-2 | ||
| - libnghttp2-14 | ||
| - libproxy1v5 | ||
| - libpsl5 | ||
| - libroken18-heimdal | ||
| - librtmp1 | ||
| - libsasl2-2 | ||
| - libssh-4 | ||
| - libwind0-heimdal | ||
|
|
||
| apps: | ||
| deliveryoptimization-client: | ||
| command: bin/deliveryoptimization-agent | ||
|
|
@@ -80,7 +115,19 @@ slots: | |
| content: port-number | ||
| read: [ $SNAP_DATA/var/run/deliveryoptimization-agent ] | ||
|
|
||
| # Share a folder containing sdk-config.json | ||
| config-file: | ||
| interface: content | ||
| content: config-file | ||
| write: [ $SNAP_DATA/etc/deliveryoptimization-agent/sdk-config.json ] | ||
| write: [ $SNAP_DATA/etc/deliveryoptimization-agent/configs ] | ||
|
|
||
| plugs: | ||
| client-downloads-folder: | ||
| interface: content | ||
| content: client-downloads-folder | ||
| target: $SNAP_DATA/deliveryoptimization-snap-downloads-root | ||
|
|
||
| layout: | ||
| # adu_data_dir | ||
| /var/lib/deliveryoptimization-snap-downloads-root: | ||
| symlink: $SNAP_DATA/deliveryoptimization-snap-downloads-root | ||
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.
I would rather not have different paths like this. Instead, I think it is ok to allow write access to the entire /etc/deliveryoptimization-agent folder.