Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions LICENSES-AND-NOTICES/SPECS/data/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,6 +2254,7 @@
"license": "[MIT License](/LICENSES-AND-NOTICES/LICENSE.md)",
"specs": [
"cluster-agent",
"device-discovery",
"edge-release",
"edge-repos",
"edge-rpm-macros",
Expand Down
15 changes: 15 additions & 0 deletions SPECS/device-discovery/device-discovery.service
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
7 changes: 7 additions & 0 deletions SPECS/device-discovery/device-discovery.signatures.json
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"
}
}
52 changes: 52 additions & 0 deletions SPECS/device-discovery/device-discovery.spec
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.
10 changes: 10 additions & 0 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2603,6 +2603,16 @@
}
}
},
{
"component": {
"type": "other",
"other": {
"name": "device-discovery",
"version": "1.17.2",
"downloadUrl": "https://github.com/open-edge-platform/infra-onboarding/archive/refs/tags/tinker-actions/1.17.2.tar.gz"
}
}
},
{
"component": {
"type": "other",
Expand Down
17 changes: 9 additions & 8 deletions toolkit/imageconfigs/packagelists/tink-packages.json
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"
]
}
Loading