How to run Chromeless on CircleCI

TL;DR
We want to run our Chromeless tests on Circle CI using Chromeless Proxy service however, we need to know a public URL of the server running on our build. Is it possible to get such public URL?

Details
Here’s the way I expect the complete solution to work

  • CircleCI build starts an app server locally (on the build container)
  • CircleCI build runs a test suite
  • Each test scenario is run on the AWS Lambda and connects to the app server running on the build container:
const screenshot = await chromeless
    .goto('https://circleci.com/gh/<my-build-container>:3000') // <----- what address put here?
    .type('search phrase', 'input[name="q"]')
    .press(13)
    .wait('#resultStats')
    .screenshot()

  console.log(screenshot)
  await chromeless.end()
  • After end of all scenarios, CircleCI build stops the local server