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

Produce DEB files for amd64 for openCL and cuda #11885

Merged
merged 17 commits into from May 13, 2024
Merged

Conversation

snadrus
Copy link
Contributor

@snadrus snadrus commented Apr 17, 2024

Related Issues

DEB files for Curio should include a way to run via a service while setting all the necessary params.
Params are set by updating /etc/curio.env with values for the database and layers.

The script to build debs requires

  • to be running in an amd64 environment in the lotus repo's root folder with build tools added.
  • Installation of additional DEBs:
    sudo apt-get install dpkg-dev
  • the APT repo's private keyfile.

Running the script looks like this:

~/GitHub/lotus$ go run scripts/curio-apt/make_debs.go 0.9.7 ~/my_private_key.asc
 
gpg: key B751F6AC4FA6D98F: "Curio Storage, Inc. (Debian APT Repo Siging Key) <support@curiostorage.org>" not changed
gpg: key B751F6AC4FA6D98F: secret key imported
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg:       secret keys read: 1
gpg:  secret keys unchanged: 1
making
copying
dpkg-deb: building package 'curio-cuda' in 'curio-cuda-0.9.7_amd64.deb'.
Processing curio-cuda-0.9.7_amd64.deb...
gpg: using "B751F6AC4FA6D98F" as default secret key for signing
Signed deb curio-cuda.deb
making
copying
dpkg-deb: building package 'curio-opencl' in 'curio-opencl-0.9.7_amd64.deb'.
Processing curio-opencl-0.9.7_amd64.deb...
gpg: using "B751F6AC4FA6D98F" as default secret key for signing
Signed deb curio-opencl.deb
Done. DEB files are in /tmp/curio-apt2577543726

You'll find in the folder:
curio-cuda-0.9.7_amd64.deb
curio-opencl-0.9.7_amd64.deb

At this point, the DEB files need to go to the correct places in the APT repo and the repo needs an update that also must be signed.

Proposed Changes

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • If the PR affects users (e.g., new feature, bug fix, system requirements change), update the CHANGELOG.md and add details to the UNRELEASED section.
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

@snadrus snadrus changed the title feat/restartable Produce DEB files for amd64 for openCL and cuda May 8, 2024
@snadrus snadrus requested a review from LexLuthr May 8, 2024 03:09
@snadrus snadrus marked this pull request as ready for review May 8, 2024 03:10
Copy link
Contributor

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

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

Looks good with some minor suggestions.

scripts/curio-apt/DEBIAN/control Show resolved Hide resolved
scripts/curio-apt/DEBIAN/postinst Outdated Show resolved Hide resolved
scripts/curio.service Outdated Show resolved Hide resolved
scripts/curio.service Outdated Show resolved Hide resolved
@snadrus snadrus merged commit f5dd766 into master May 13, 2024
184 of 186 checks passed
@snadrus snadrus deleted the feat/restartable branch May 13, 2024 19:18
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.

None yet

3 participants