Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nxd-bom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
nxd-bom
Commits
fc3e704b
Commit
fc3e704b
authored
Sep 14, 2022
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
. (prepare to publish first draft)
parent
73de1995
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
408 additions
and
1 deletion
+408
-1
example/ors-bom.txt
example/ors-bom.txt
+383
-0
nxd-bom
nxd-bom
+25
-1
No files found.
example/ors-bom.txt
0 → 100644
View file @
fc3e704b
This diff is collapsed.
Click to expand it.
nxd-bom
View file @
fc3e704b
...
...
@@ -18,10 +18,12 @@
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
"""Program nxd-bom generates bill of material for a software-release or slapos node
"""Program nxd-bom generates bill of material for a software-release or slapos node
.
Usage: nxd-bom software <path-to-installed-software>
nxd-bom node <slapos deploy-script>
An example of generated bill of material is provided in example/ors-bom.txt .
"""
from
__future__
import
print_function
...
...
@@ -148,6 +150,28 @@ def bom_software(installed_software_path): # -> {} name -> PkgInfo
def
bom_node
(
XXX
):
1
/
0
# TODO bom_node should:
#
# 1. retrieve list of software that slapos-node brings with itself
# since slapos-node is built via buildout this could be extracted via
# node_software from /opt/slapos/.installed.cfg once we fix slapos-node
# package to preserve that .installed.cfg in the package itself.
#
# 2. retrieve list of base-OS packages that are installed by https://deploy.rapid.space/slapos
# This can be computed as the difference in between two sets of base-OS packages:
# b) set of base-OS packages after deploy.rapid.space/slapos was run, and
# a) set of base-OS packages after minimal base-OS was installed.
#
# this computation could be automated via
# - preparing e.g. Debian 11 minimal chroot via debootstrap,
# - taking snapshot for list of installed packages via `dpkg -l`,
# - then deploying slapos-node in the chroot,
# - taking snapshot for the list of installed package again,
# - and finally computing the difference.
#
# Please see example/ors-bom.txt for "BOM(slapos-node)", "List of software
# that slapos-node brings with itself" and "List of base-OS packages
# installed by https://deploy.rapid.space/slapos" sections for what end result could look like.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment