pwa-studio icon indicating copy to clipboard operation
pwa-studio copied to clipboard

run docker/run-docker with docker image

Open ljr95 opened this issue 1 year ago • 2 comments

Hi, I'm discovering Magento PWA and wanted to know if it was possible to run docker/run-docker with a docker image? Below is an example: docker run -v $PWD:/home/node/app -w /home/node/app node:lts docker/run-docker I like to install as few services as possible on the host.

When I run the command above, I encounter this error:

===========================================================================

-e          Creating SSL/TLS certificate

===========================================================================

yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.16s.
/home/node/app
node:internal/child_process:1124
    result.error = new ErrnoException(result.error, 'spawnSync ' + options.file);
                   ^

<ref *1> Error: spawnSync sudo ENOENT
    at Object.spawnSync (node:internal/child_process:1124:20)
    at spawnSync (node:child_process:876:24)
    at Object.execFileSync (node:child_process:919:15)
    at Object.run (/home/node/app/docker/node_modules/devcert/dist/utils.js:22:28)
    at LinuxPlatform.deleteProtectedFiles (/home/node/app/docker/node_modules/devcert/dist/platforms/linux.js:99:17)
    at uninstall (/home/node/app/docker/node_modules/devcert/dist/certificate-authority.js:124:25)
    at Object.<anonymous> (/home/node/app/docker/node_modules/devcert/dist/certificate-authority.js:18:9)
    at Generator.next (<anonymous>)
    at /home/node/app/docker/node_modules/tslib/tslib.js:110:75
    at new Promise (<anonymous>) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawnSync sudo',
  path: 'sudo',
  spawnargs: [ 'rm', '-rf', '/root/.config/devcert/domains' ],
  error: [Circular *1],
  status: null,
  signal: null,
  output: null,
  pid: 0,
  stdout: null,
  stderr: null
}

Node.js v20.12.1

Thank you in advance for your help

ljr95 avatar Apr 08 '24 09:04 ljr95

Hi @ljr95. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

m2-assistant[bot] avatar Apr 08 '24 09:04 m2-assistant[bot]

Hi All, issue is reproducible in local environment. Uploading Screenshot 2024-04-15 at 1.22.09 PM.png…

glo85315 avatar Apr 16 '24 06:04 glo85315

@adobe export issue to JIRA project PWA as Bug

glo82145 avatar Aug 04 '25 11:08 glo82145

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3570 is successfully created for this GitHub issue.

github-jira-sync-bot avatar Aug 04 '25 11:08 github-jira-sync-bot