StreamDeckEmulator icon indicating copy to clipboard operation
StreamDeckEmulator copied to clipboard

Put the emulator in a container

Open csharpfritz opened this issue 6 years ago • 4 comments

With the emulator in a container, it would be easy to use for integration testing during CI processes

  • @mtheoryx

csharpfritz avatar Jan 28 '19 03:01 csharpfritz

Getting the emulator into a docker container seems to be the easy part. In doing this I see a few potentials with the tight coupling the emulator code has on the manifest.json.

To correct that I see a few options.

  1. Copy manifest into app directory / change config to reference local path to /app/manifest.json

  2. Mount path to manifest on local file system when running container & change config to reference that mount path in container

  3. Abstract emulator code to not be dependent on the manifest and duplicate manifest bits in emulator config.

  4. Some combination of 3 and 2/1.

If I've missed a potential scenario, please chime in.

I'll create the Dockerfile and update the readme with directions for points 1 and 2 above. If we want to take a different direction in the future, it can be decided then.

derekforeman avatar Jan 28 '19 19:01 derekforeman

Oh yea, @mtheoryx (@roberttables on Twitch / Twitter) is actively working on this and I'll let him comment

csharpfritz avatar Jan 28 '19 20:01 csharpfritz

Ok, I've about got it complete. Since I wasn't watching the stream I'm not sure if it meets the requirements, so I'll hold off on a PR. However, @mtheoryx, if this helps go for it, https://github.com/derekforeman/StreamDeckEmulator/tree/docker

derekforeman avatar Jan 28 '19 20:01 derekforeman

I'm gonna cover what I have so far on stream in a few minutes, then circle back here. I appreciate everyone's help!

mtheoryx avatar Jan 29 '19 20:01 mtheoryx