You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@wordpress/env start is occasionally failing, and generating very large Docker images in the process.
I've attached the output of running npx @wordpress/env@latest start, which shows the process failing due to errors while building the images (see screenshots section below).
As far as I can tell these ballooning image sizes are due to this line in gutenberg/packages/env/lib/init-config.js.
Refer to these two issues from StackOverflow, where running useradd without the -l or --no-log-init flags inside of a Dockerfile caused ballooning image sizes.
As a follow-up (and because v8.0.0 was released while I was opening this issue), I have run through the same process again using @wordpress/env@8.0.0 and the results are the same (see screenshot below).
Description
@wordpress/env start
is occasionally failing, and generating very large Docker images in the process.I've attached the output of running
npx @wordpress/env@latest start
, which shows the process failing due to errors while building the images (see screenshots section below).As far as I can tell these ballooning image sizes are due to this line in
gutenberg/packages/env/lib/init-config.js
.Refer to these two issues from StackOverflow, where running
useradd
without the-l
or--no-log-init
flags inside of a Dockerfile caused ballooning image sizes.Step-by-step reproduction instructions
npm run env start -- --debug
docker images "$(basename $(npm run env install-path 2>&1 | sed -n '5,5p'))*-wordpress"
or by inspecting them in the Docker Dashboard under the Images section.
Screenshots, screen recording, code snippet
Results from running
npx @wordpress/env@latest start
inside a freshly created block.Image Sizes via Docker CLI
Image Sizes via Docker Dashboard
Environment info
OS / Tooling
macOS: Ventura 13.3.1 (a)
node: v16.19.0
npm: 8.19.3
docker: version 23.0.5, build bc4487a
docker-compose: version v2.17.3
WordPress NPM Packages
@wordpress/create-block 3.6.0
@wordpress/env: 7.0.0
@wordpress/scripts: 26.4.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: