-
Notifications
You must be signed in to change notification settings - Fork 51
[Tink] add device-discovery rpm #118
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
Merged
anujm1
merged 10 commits into
open-edge-platform:3.0-dev
from
andy-vm:device-discovery-ITEP-23734
May 30, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
85e4c95
[Tink] add device-discovery rpm
92d869e
[Tink] update device-discovery rpm
9f89ef5
Merge branch '3.0-dev' into device-discovery-ITEP-23734
andy-vm 8f8502e
[Tink] update device-discovery service
f702c96
Merge branch '3.0-dev' into device-discovery-ITEP-23734
andy-vm dd408cc
Merge branch '3.0-dev' into device-discovery-ITEP-23734
andy-vm a427912
[Tink] update device-discovery spec
c263685
[Tink] update device-discovery spec
249821c
[Tink] update device-discovery spec
25490ee
Merge branch '3.0-dev' into device-discovery-ITEP-23734
andy-vm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| [Unit] | ||
| Description=Device Discovery Agent | ||
| Documentation=https://github.com/open-edge-platform/infra-onboarding | ||
| After=network.target | ||
|
|
||
| [Service] | ||
| Type=oneshot | ||
| ExecStart=/usr/bin/device-discovery/device-discovery | ||
| StandardOutput=journal | ||
| StandardError=journal | ||
| TimeoutSec=0 | ||
| RemainAfterExit=yes | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "Signatures": { | ||
| "device-discovery-1.17.2.tar.gz": "32b5439533c61ee4d53f5caa58698fee08e1fd520adb2f3790fd9416f96598d4", | ||
| "device-discovery-1.17.2-vendor.tar.gz": "997e40026d04be283d65dbe202a5ffe23b49cb42311a769b2910d4a2a7919a09", | ||
| "device-discovery.service": "ddf6a09482470231124d5dfd1375ab7b7a57c83e3e7a98a11fd6957ff2e5df96" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| %global infraonboarding_gitpath github.com/open-edge-platform/infra-onboarding | ||
|
|
||
| Summary: Device Discovery Agent for Edge Node | ||
| Name: device-discovery | ||
| Version: 1.17.2 | ||
| Release: 1%{?dist} | ||
| Distribution: Edge Microvisor Toolkit | ||
| Vendor: Intel Corporation | ||
| License: Apache-2.0 | ||
| URL: https://github.com/open-edge-platform/infra-onboarding/tree/main/hook-os/device_discovery | ||
| Source0: https://%{infraonboarding_gitpath}/archive/refs/tags/tinker-actions/%{version}.tar.gz#/%{name}-%{version}.tar.gz | ||
| Source1: device-discovery.service | ||
| Source2: device-discovery-1.17.2-vendor.tar.gz | ||
|
|
||
| %{?systemd_requires} | ||
|
|
||
| BuildRequires: golang >= 1.23 | ||
| BuildRequires: systemd-rpm-macros | ||
| Requires: curl | ||
|
|
||
|
|
||
| %description | ||
| The Device Discovery Agent for Edge Node in order to retrieve the specific configuration to start for the current/correct machine. | ||
|
|
||
|
|
||
| %prep | ||
| %setup -q -n infra-onboarding-emt-uos | ||
| cd hook-os/device_discovery | ||
| tar -xzf %{SOURCE2} -C . | ||
|
|
||
| %build | ||
| cd hook-os/device_discovery | ||
| CGO_ENABLED=0 go build -buildmode=pie -mod=vendor -trimpath -ldflags '-extldflags "-static"' -gcflags=all="-l -B" -o device-discovery | ||
|
|
||
| %install | ||
| install -d -m 0755 %{buildroot}%{_bindir}/device-discovery | ||
| install -m 0755 ./hook-os/device_discovery/device-discovery %{buildroot}%{_bindir}/device-discovery/device-discovery | ||
| install -m 0755 ./hook-os/device_discovery/client-auth.sh %{buildroot}%{_bindir}/device-discovery/client-auth.sh | ||
|
|
||
| # systemd units | ||
| install -Dp -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/device-discovery.service | ||
|
|
||
| %post | ||
| %systemd_post device-discovery.service | ||
|
|
||
| %files | ||
| %{_bindir}/device-discovery/* | ||
| %{_unitdir}/device-discovery.service | ||
|
|
||
| %changelog | ||
| * Tue May 20 2025 Andy <andy.peng@intel.com> - 1.17.2-1 | ||
| - Original version for Edge Microvisor Toolkit. License verified. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,18 @@ | ||
| { | ||
| "packages": [ | ||
| "rpc", | ||
| "dracut-tmpfsroot", | ||
| "tar", | ||
| "fluent-bit", | ||
| "caddy", | ||
| "rng-tools", | ||
| "containerd", | ||
| "gawk", | ||
| "cryptsetup", | ||
| "device-discovery", | ||
| "dracut-tmpfsroot", | ||
| "efibootmgr", | ||
| "fluent-bit", | ||
| "gawk", | ||
| "lvm2", | ||
| "parted", | ||
| "net-tools", | ||
| "cryptsetup" | ||
| "parted", | ||
| "rng-tools", | ||
| "rpc", | ||
| "tar" | ||
| ] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.