Skip to content

Commit 3f5a875

Browse files
committed
Remove prepull. Possibly other issues, can't repro
1 parent 0dd5ba8 commit 3f5a875

File tree

1 file changed

+0
-25
lines changed
  • projects/js-packages/jetpack-cli/bin

1 file changed

+0
-25
lines changed

projects/js-packages/jetpack-cli/bin/jp.js

-25
Original file line numberDiff line numberDiff line change
@@ -172,31 +172,6 @@ const main = async () => {
172172
// Create empty .env file
173173
fs.writeFileSync( resolve( monorepoRoot, 'tools/docker/.env' ), '' );
174174

175-
const images = [
176-
{ name: 'mariadb:lts' },
177-
{ name: 'automattic/jetpack-wordpress-dev:latest' },
178-
{ name: 'phpmyadmin/phpmyadmin:latest', platform: 'linux/amd64' },
179-
{ name: 'maildev/maildev', platform: 'linux/amd64' },
180-
{ name: 'atmoz/sftp', platform: 'linux/amd64' },
181-
];
182-
183-
for ( const image of images ) {
184-
const inspect = spawnSync( 'docker', [ 'image', 'inspect', image.name ], {
185-
stdio: 'ignore',
186-
} );
187-
if ( inspect.status !== 0 ) {
188-
console.log( chalk.blue( `Pulling ${ image.name }...` ) );
189-
const pullArgs = [ 'pull', image.name ];
190-
if ( image.platform ) {
191-
pullArgs.splice( 1, 0, '--platform', image.platform );
192-
}
193-
const pull = spawnSync( 'docker', pullArgs, { stdio: 'inherit' } );
194-
if ( pull.status !== 0 ) {
195-
throw new Error( `Failed to pull ${ image.name }` );
196-
}
197-
}
198-
}
199-
200175
const configResult = spawnSync(
201176
resolve( monorepoRoot, 'tools/docker/bin/monorepo' ),
202177
[ 'pnpm', 'jetpack', 'docker', 'config' ],

0 commit comments

Comments
 (0)