thefrontside / simulacrum

A simulation platform for use during testing, during development and for high-fidelity application previews
88 stars 14 forks source link

Dockerize the auth0-simulator #180

Open dagda1 opened 2 years ago

dagda1 commented 2 years ago

Having to install the auth0-simulator as a dev dependency is something we should try and avoid.

Creating a downloadable docker image that we could run something like this would make things a lot easier.

docker run -i --rm --security-opt seccomp=$HOME/chrome.json \
    -v myvol:/app \
    --name auth0-simulator \
    frontside/auth-simulator:latest

We could try something like this to make ssl configuration easier.

cowboyd commented 2 years ago

What does the user story look like for getting setup with SSL and a complete simulator?

dagda1 commented 2 years ago

@cowboyd I linked to something I would like to spike in the above issue

https://dev.to/istarkov/fast-and-easy-way-to-setup-web-developer-certificates-450e

TLDR;

      let ssl: SSLOptions = {
        key: fs.readFileSync(
          paths.ssl.keyFile
        ),
        cert: fs.readFileSync(paths.ssl.pemFile),
      } as const;

I think we need some way of being able to configure the certs and by either defaulting to mkcert or letsencrypt certs.