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

packer provisioner #5604

Merged
merged 10 commits into from
Mar 2, 2021
Merged

packer provisioner #5604

merged 10 commits into from
Mar 2, 2021

Conversation

coryschwartz
Copy link

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.

# 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
Copy link
Author

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]
Copy link
Author

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.

@coryschwartz coryschwartz marked this pull request as ready for review February 17, 2021 08:55
@coryschwartz coryschwartz changed the title [WIP] mainnet packer provisioner packer provisioner Feb 17, 2021
@coryschwartz
Copy link
Author

coryschwartz commented Feb 17, 2021

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,
ami-099fb68e9374f4d7b (calibrationnet)
ami-0ff23ef71c3dc75ed (mainnet)

@coryschwartz
Copy link
Author

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)
ami-0302a18f83d53706e (mainnet)

@coryschwartz
Copy link
Author

Rebased to current master due to age.

@coryschwartz
Copy link
Author

branches:
ignore:
- /.*/
tags:
Copy link
Author

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.

@magik6k magik6k requested a review from travisperson February 25, 2021 13:32
image = "ubuntu-20-04-x64"
snapshot_name = "lotus-${var.lotus_network}-${local.timestamp}"
ssh_username = "root"
}
Copy link
Contributor

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?

Copy link
Author

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.

@coryschwartz
Copy link
Author

@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.

@magik6k magik6k changed the base branch from master to next March 2, 2021 12:55
@magik6k magik6k merged commit a39f480 into next Mar 2, 2021
@magik6k magik6k deleted the feat/packer-build branch March 2, 2021 12:55
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.

3 participants