-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
packer provisioner #5604
packer provisioner #5604
Conversation
# install libs. | ||
apt update | ||
apt -y install libhwloc15 ocl-icd-libopencl1 | ||
ln -s /usr/lib/x86_64-linux-gnu/libhwloc.so.15 /usr/lib/x86_64-linux-gnu/libhwloc.so.5 |
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.
This is here because in our CI, where make buildall
is executed, it is linked with the older libhwloc. Ubuntu 20.04, which I'm using for the images, comes with newer glibc and libhwloc. Is this a problem?
@@ -0,0 +1,16 @@ | |||
[Unit] |
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.
These could be the same units in ./scripts, though I rather not run as root.
For review purposes, on my personal amazon account (736980876640) I made public AMIs lotus-mainnet--20210217081543 and lotus-calibrationnet--20210217082736 You can create an AWS instance from those to see how these look. [edit] These AMIs are in the us-west-2 region, |
e5ce83c
to
e5785f6
Compare
Was requested to change my LOTUS.txt to a motd, If you want to try it out, I have new AMIs on my account. These are in us-west-2. ami-0c7eb4a0358cbded4 (calibrationnet) |
701c248
to
9ceda48
Compare
Rebased to current master due to age. |
branches: | ||
ignore: | ||
- /.*/ | ||
tags: |
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.
When I initially wrote this, the filters matched the behavior of the docker image pusher, but the docker publisher was changed since this was written.
image = "ubuntu-20-04-x64" | ||
snapshot_name = "lotus-${var.lotus_network}-${local.timestamp}" | ||
ssh_username = "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.
You are putting the git_tag in the amazon ami, should it also show up in the digital ocean image?
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.
Good point, added the git_tag to the droplet snapshot.
@magik6k @Kubux @whyrusleeping Could someone review this? The intention of this PR is to automatically create an AWS AMI and digitalocean droplet that will make it easy for new users to get up and running quickly. |
This is a basic fullnode AMI and digitalocean droplet to help new users get started quickly.
The image has lotus and the miner installed. Lotus is setup to download the snapshot and start running immediately. The miner is installed, and ready for the user to set it up if they intend to use it.
Links could be added to documentation to point new people to try the images to get up and running fast.
TODO: Calibrationnet, other test networks.