diff --git a/playwright/Dockerfile b/playwright/Dockerfile deleted file mode 100644 index 8dcd659e..00000000 --- a/playwright/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM mcr.microsoft.com/playwright:v1.20.0-focal - -WORKDIR /server -RUN npm install playwright -COPY server.js . - -ENV PLAYWRIGHT_PORT=4444 -ENV PLAYWRIGHT_BROWSER_TYPE=chromium -ENV PLAYWRIGHT_HEADLESS=true - -EXPOSE ${PLAYWRIGHT_PORT} - -CMD [ "node", "server.js" ] diff --git a/playwright/seccomp_profile.json b/playwright/seccomp_profile.json deleted file mode 100644 index bfeea36c..00000000 --- a/playwright/seccomp_profile.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "comment": "Allow create user namespaces", - "names": [ - "clone", - "setns", - "unshare" - ], - "action": "SCMP_ACT_ALLOW", - "args": [], - "includes": {}, - "excludes": {} -} diff --git a/playwright/server.js b/playwright/server.js deleted file mode 100644 index 9a730305..00000000 --- a/playwright/server.js +++ /dev/null @@ -1,10 +0,0 @@ -const playwright = require('playwright'); - -const port = parseInt(process.env.PLAYWRIGHT_PORT) || 4444; -const browserType = process.env.PLAYWRIGHT_BROWSER_TYPE?.toLowerCase() || 'chromium'; -const headless = process.env.PLAYWRIGHT_HEADLESS?.toLowerCase() === 'true' || true; -const wsPath = 'playwright'; -console.log('using port:', port, 'browser:', browserType, 'headless:', headless, 'wspath:', wsPath); - -const serverPromise = playwright[browserType].launchServer({ headless: headless, port: port, wsPath: wsPath }); -serverPromise.then(bs => console.log(bs.wsEndpoint()));