Closed stevegrunwell closed 2 years ago
~I want to ship homestead_mysql
, homestead_mariadb
base boxes.~ I want to ship homestead
, homestead_mariadb
base boxes I'm tired of dealing with MariaDB. I wish the base box building was more stable because at the moment it's very sketchy outside of Virtualbox.
Can I get a 👍 to this comment if you're using MariadDB w/ Homestead?
Matches Settler version v11.5.0
https://app.vagrantup.com/Svpernova09/boxes/nothomestead/versions/11.5.0
Build configuration:
SKIP_PHP=false
SKIP_MYSQL=true
SKIP_MARIADB=false
SKIP_POSTGRESQL=true
Update your Homestead.yaml
adding the following:
box: Svpernova09/nothomestead
Adjusting your services:
services:
- enabled:
- "mariadb"
Note: Keep
mariadb: false
andmysql: true
asfeature:
configuration for this testing session.
Vagrant up gist: https://gist.github.com/svpernova09/89468a18237b6c672bcdc0a9eede4fd0 (in 02:57 including Downloading the base box)
Has anyone had a chance to test the above base box? Would appreciate some feedback.
@svpernova09 After running into issue #1717 due to me also updating Vagrant and Virtualbox at the same time I've installed the above base box successfully.
Two Runs: vagrant up 13.02s user 13.59s system 8% cpu 4:59.53 total (includes downloading the base box) vagrant up 6.45s user 4.04s system 4% cpu 3:47.34 total (importing the base box)
Most of the time spent seems to be installing php7.4 - See vagrant up
gist when importing the base box: https://gist.github.com/thedavidthomas/35f3a0f598b7fcf821588deb75bcb892
Thank you for this under 5 mins is a great result
@svpernova09 My results were even better than what was reported by @thedavidthomas (after pre-downloading the base box):
vagrant up 13.80s user 9.95s system 15% cpu 2:29.44 total
Granted, this was a brand new, clean installation of Homestead without any site-specific configurations, but two and a half minutes! 🎉
Full results and steps: https://gist.github.com/stevegrunwell/30577c4dccd5d6436ea77fcd5c1c99c6
@thedavidthomas @stevegrunwell
Thanks for the feedback! Glad this seems to help.
I'm currently uploading an Apple Silicon base box, after that I've had Taylor create a homestead-mariadb
box as well. I'll get that uploaded next. (My upstream is awful). This base box will be compatible AND match the other settler versions (and such the laravel/homestead base box version) exactly with the swap of MariaDB instead of MySQL.
I've released laravel/homestead-mariadb.
Update your Homestead.yaml
adding the following:
box: laravel/homestead-mariadb
Adjusting your services:
services:
- enabled:
- "mariadb"
Note: Keep
mariadb: false
andmysql: true
asfeature:
configuration.
It seems that version 11.4.0 of Settler has caused build times to increase dramatically when using MariaDB.
Since all of the supported PHP versions (5.6–8.0) now come pre-installed in the base box, Homestead wants to upgrade all of these versions, which means if the Settler box is at-all out of date the VM spends a lot of time updating anything out-of-date.
I've temporarily added a
set +x
to line 19 withinscripts/features/mariadb.sh
to get a better sense of where it all happens, which seems to be right as we're runningapt-get remove -y --purge mysql-server mysql-client mysql-common
(full output of the provisioning is linked below):My first concern was that
apt-get --purge remove <package>
was implicitly runningapt-get upgrade
, but that would likely be big news in the Debian/Ubuntu community. Upon running it with the--no-upgrade
flag onapt-get remove
it still tried to upgrade everything.That list of packages seems to match Settler's provisioning script, so the issue may be in that repository (which doesn't have an open issue tracker) — perhaps apt is holding onto a cache/staged set of upgrades?
Versions
Host operating system
macOS 11.6
Homestead.yaml
Vagrant destroy & up output
https://gist.github.com/stevegrunwell/1e878c5723d1b771f3d86fa322df5090
Expected behavior
I would expect the installation of MariaDB to add a moment or so to the provisioning of the Homestead box.
Actual behavior
Provisioning a Homestead box with MariaDB causes Ubuntu to try to install/upgrade all versions of PHP (5.6+) and their extensions, adding a considerable amount of time and bandwidth to the provisioning process. In all, provisioning Homestead takes nearly 20 minutes.
Steps to reproduce
vagrant up
with the attachedHomestead.yaml
file, optionally prefixed withtime
(e.g.time vagrant up
)References