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

feat: build pizzas on alpine #3117

Merged
merged 1 commit into from
May 9, 2024
Merged

Conversation

freemvmt
Copy link
Contributor

@freemvmt freemvmt commented May 7, 2024

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 the Create commands step, is reduced from an average of 10:42 to 8:05, a saving of 157s!

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

image

Ubuntu 22.04

image

Copy link

github-actions bot commented May 7, 2024

Removed vultr server and associated DNS entries

# set env for this shell
set -o allexport
source .env.pizza
DOCKER_BUILDKIT=1
set +o allexport

# start services
docker compose \
time docker compose \
Copy link
Member

Choose a reason for hiding this comment

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

👀 👀 ~3 minutes faster ?! looking promising 🤞 🏁

Screenshot from 2024-05-08 10-18-20

Copy link
Contributor Author

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.

@freemvmt freemvmt force-pushed the test-vultr-action-v2 branch from 387c2a7 to 629e44a Compare May 8, 2024 13:08
@freemvmt freemvmt force-pushed the build-pizzas-on-alpine branch from b25f2b4 to cd8c876 Compare May 8, 2024 13:12
@freemvmt freemvmt force-pushed the test-vultr-action-v2 branch from 629e44a to 77fef3e Compare May 8, 2024 14:34
@freemvmt freemvmt force-pushed the build-pizzas-on-alpine branch from cd8c876 to 30ef4df Compare May 8, 2024 14:35
Base automatically changed from test-vultr-action-v2 to main May 8, 2024 14:49
@freemvmt freemvmt force-pushed the build-pizzas-on-alpine branch 2 times, most recently from fae86c1 to 6e096aa Compare May 8, 2024 15:40
@freemvmt freemvmt requested a review from jessicamcinchak May 9, 2024 12:30
@freemvmt freemvmt force-pushed the build-pizzas-on-alpine branch from 6e096aa to fd9722b Compare May 9, 2024 12:31
$(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

Copy link
Member

Choose a reason for hiding this comment

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

satisfying ✂️

@jessicamcinchak jessicamcinchak merged commit ab444b7 into main May 9, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the build-pizzas-on-alpine branch May 9, 2024 15:02
jessicamcinchak added a commit that referenced this pull request May 24, 2024
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.

2 participants