[wp-trac] [WordPress Trac] #47767: Simplify and backport the local environment

WordPress Trac noreply at wordpress.org
Thu Aug 29 23:02:15 UTC 2019


#47767: Simplify and backport the local environment
------------------------------+-----------------------
 Reporter:  pento             |       Owner:  pento
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  5.3
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-testing     |     Focuses:
------------------------------+-----------------------

Comment (by anevins):

 Hey @pento Sorry for the late reply.


 {{{
 $ docker version
 Client:
  Version:           19.03.1
  API version:       1.40
  Go version:        go1.12.7
  Git commit:        74b1e89e8a
  Built:             Wed Jul 31 15:18:18 2019
  OS/Arch:           windows/amd64
  Experimental:      false

 Server: Docker Engine - Community
  Engine:
   Version:          19.03.1
   API version:      1.40 (minimum version 1.12)
   Go version:       go1.12.5
   Git commit:       74b1e89e8a
   Built:            Thu Jul 25 21:27:55 2019
   OS/Arch:          linux/amd64
   Experimental:     false
  containerd:
   Version:          v1.2.6
   GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
  runc:
   Version:          1.0.0-rc8
   GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
  docker-init:
   Version:          0.18.0
   GitCommit:        fec3683
 }}}

 {{{
 $ docker-compose -v
 docker-compose version 1.24.1, build 4667896b
 }}}


 {{{
 $ node -v
 v8.9.1
 }}}


 {{{
 $ npm -v
 5.5.1
 }}}


 I just removed node_modules and added them again via npm install and
 succeeded;

 {{{
 $ npm install
 ...

 added 2357 packages in 832.337s
 }}}

 {{{
 $ npm run env:reset

 > WordPress at 5.3.0 env:reset C:\Users\andre\Documents\git\wordpress-develop
 > node ./tools/local-env/scripts/docker.js down --rmi all -v --remove-
 orphans

 Removing network wordpress-develop_wpdevnet
 WARNING: Network wordpress-develop_wpdevnet not found.
 Removing volume wordpress-develop_mysql
 WARNING: Volume wordpress-develop_mysql not found.
 Removing volume wordpress-develop_phpunit-uploads
 WARNING: Volume wordpress-develop_phpunit-uploads not found.
 Removing image mysql:5.7
 WARNING: Image mysql:5.7 not found.
 Removing image wordpressdevelop/php:latest
 WARNING: Image wordpressdevelop/php:latest not found.
 Removing image nginx:alpine
 WARNING: Image nginx:alpine not found.
 Removing image wordpressdevelop/cli:latest
 WARNING: Image wordpressdevelop/cli:latest not found.
 Removing image wordpressdevelop/phpunit:latest
 WARNING: Image wordpressdevelop/phpunit:latest not found.
 }}}


 {{{
 $ npm run env:start

 > WordPress at 5.3.0 env:start C:\Users\andre\Documents\git\wordpress-develop
 > node ./tools/local-env/scripts/start.js

 Pulling mysql (mysql:5.7)...
 ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup
 registry-1.docker.io on 10.0.2.3:53: read udp
 10.0.2.15:33686->10.0.2.3:53: i/o timeout
 child_process.js:644
     throw err;
     ^

 Error: Command failed: docker-compose up -d wordpress-develop
     at checkExecSyncError (child_process.js:601:13)
     at execSync (child_process.js:641:13)
     at Object.<anonymous> (C:\Users\andre\Documents\git\wordpress-
 develop\tools\local-env\scripts\start.js:7:1)
     at Module._compile (module.js:635:30)
     at Object.Module._extensions..js (module.js:646:10)
     at Module.load (module.js:554:32)
     at tryModuleLoad (module.js:497:12)
     at Function.Module._load (module.js:489:3)
     at Function.Module.runMain (module.js:676:10)
     at startup (bootstrap_node.js:187:16)
 npm ERR! code ELIFECYCLE
 npm ERR! errno 1
 npm ERR! WordPress at 5.3.0 env:start: `node ./tools/local-
 env/scripts/start.js`
 npm ERR! Exit status 1
 npm ERR!
 npm ERR! Failed at the WordPress at 5.3.0 env:start script.
 npm ERR! This is probably not a problem with npm. There is likely
 additional logging output above.

 npm ERR! A complete log of this run can be found in:
 npm ERR!     C:\Users\andre\AppData\Roaming\npm-cache\_logs\2019-08
 -29T22_59_32_009Z-debug.log
 }}}




 {{{
 $ npm run env:install

 > WordPress at 5.3.0 env:install C:\Users\andre\Documents\git\wordpress-
 develop
 > node ./tools/local-env/scripts/install.js

 Pulling cli (wordpressdevelop/cli:latest)...
 ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup
 registry-1.docker.io on 10.0.2.3:53: read udp
 10.0.2.15:58902->10.0.2.3:53: i/o timeout
 child_process.js:644
     throw err;
     ^

 Error: Command failed: docker-compose run --rm cli config create
 --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql
 --path=/var/www/src --force
     at checkExecSyncError (child_process.js:601:13)
     at execSync (child_process.js:641:13)
     at wp_cli (C:\Users\andre\Documents\git\wordpress-develop\tools\local-
 env\scripts\install.js:44:2)
     at Object.<anonymous> (C:\Users\andre\Documents\git\wordpress-
 develop\tools\local-env\scripts\install.js:9:1)
     at Module._compile (module.js:635:30)
     at Object.Module._extensions..js (module.js:646:10)
     at Module.load (module.js:554:32)
     at tryModuleLoad (module.js:497:12)
     at Function.Module._load (module.js:489:3)
     at Function.Module.runMain (module.js:676:10)
 npm ERR! code ELIFECYCLE
 npm ERR! errno 1
 npm ERR! WordPress at 5.3.0 env:install: `node ./tools/local-
 env/scripts/install.js`
 npm ERR! Exit status 1
 npm ERR!
 npm ERR! Failed at the WordPress at 5.3.0 env:install script.
 npm ERR! This is probably not a problem with npm. There is likely
 additional logging output above.

 npm ERR! A complete log of this run can be found in:
 npm ERR!     C:\Users\andre\AppData\Roaming\npm-cache\_logs\2019-08
 -29T23_00_36_602Z-debug.log
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47767#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list