-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: build pizzas on alpine #3117
Conversation
Removed vultr server and associated DNS entries |
scripts/pullrequest/create.sh
Outdated
# set env for this shell | ||
set -o allexport | ||
source .env.pizza | ||
DOCKER_BUILDKIT=1 | ||
set +o allexport | ||
|
||
# start services | ||
docker compose \ | ||
time docker compose \ |
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.
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.
@jessicamcinchak yes it is isn't it! now that the action is finalised I'm going to run a quick experiment with 5 PRs on each side, and see if this holds across a wider sample.
387c2a7
to
629e44a
Compare
b25f2b4
to
cd8c876
Compare
629e44a
to
77fef3e
Compare
cd8c876
to
30ef4df
Compare
fae86c1
to
6e096aa
Compare
…cript for Alpine OS (instead of Ubuntu)
6e096aa
to
fd9722b
Compare
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
apt-get update -y | ||
apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y | ||
|
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.
satisfying ✂️
This reverts commit ab444b7.
As per title - use Alpine OS instead of Ubuntu 22.04 as the base OS for our Vultr pizzas. This seems to provide some substantial time savings, according to some tests I ran (see below). In particular, the work of updating the server, ensuring docker and aws-cli are installed, and actually doing the
docker compose
command to build the container stack, all of which are encapsulated in theCreate commands
step, is reduced from an average of 10:42 to 8:05, a saving of157s
!I didn't compare the
Update commands
step across the different operating systems, but there may also be gains there (I think unlikely that there would be losses).Note that Vultr now provides an OS for the new Ubuntu LTS release (24.04, Noble Numbat). This is only just released as of this PR. Once it's more mature (e.g. at least 24.04.1 is released), it may in turn provide benefits compared to Alpine (or not). We can test that theory at a later date.
Alpine
Ubuntu 22.04