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

ci: Use Packer to manage CI images #570

Closed
mvines opened this issue Jul 10, 2018 · 7 comments
Closed

ci: Use Packer to manage CI images #570

mvines opened this issue Jul 10, 2018 · 7 comments
Labels
stale [bot only] Added to stale content; results in auto-close after a week.
Milestone

Comments

@mvines
Copy link
Member

mvines commented Jul 10, 2018

Currently we hand build our CI images on GCP (see ci/README.md). Instead let's use Packer to build the images from source and at the same time ideally make them portable between the different cloud providers

@mvines
Copy link
Member Author

mvines commented Jul 15, 2018

Manual steps to move the buildkite-agent home directory that should be done automatically by Packer:

  1. Edit /etc/passwd to adjust the buildkite-agent home to /home/buildkite-agent
  2. sudo mv /var/lib/buildkite-agent /home/
  3. sudo ln -s /home/buildkite-agent /var/lib/buildkite-agent
  4. Edit /etc/buildkite-agent/buildkite-agent.cfg and set build-path="/home/buildkite-agent/builds"

@mvines
Copy link
Member Author

mvines commented Aug 7, 2018

Packer should add these two lines to /lib/systemd/system/buildkite-agent.service in the [Service] section:

LimitNOFILE=65536

@pgarg66
Copy link
Contributor

pgarg66 commented Aug 8, 2018

Added following lines to /etc/sysctl.conf
net.core.rmem_max=1610612736
net.core.rmem_default=1610612736

And, reload sysctl by
sudo sysctl -p

@pgarg66
Copy link
Contributor

pgarg66 commented Aug 8, 2018

Added following lines to /etc/sysctl.conf
net.core.wmem_max=1610612736
net.core.wmem_default=1610612736

And, reload sysctl by
sudo sysctl -p

@pgarg66
Copy link
Contributor

pgarg66 commented Aug 15, 2018

Added 64GB swap space to the machine.
` sudo fallocate -l 64G /swapfile

sudo chmod 600 /swapfile

sudo mkswap /swapfile

sudo swapon /swapfile

sudo swapon --show`

Add following line to /etc/fstab
/swapfile none swap sw 0 0

Change the swappiness to 10

  • sudo sysctl vm.swappiness=10
  • add vm.swappiness=10 to /etc/sysctl.conf

Reference: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04

@stale
Copy link

stale bot commented Sep 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Sep 17, 2020
@stale
Copy link

stale bot commented Sep 24, 2020

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Sep 24, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale [bot only] Added to stale content; results in auto-close after a week.
Projects
None yet
Development

No branches or pull requests

2 participants