fork download
  1. """
  2. I tried to create a Pull Request, but the Github web GUI seems to be unstable.
  3.  
  4. My fork is in https://g...content-available-to-author-only...b.com/tripleee/SpamSoup/tree/dockerfile
  5.  
  6. ------
  7.  
  8. This is a simple proof of concept which builds a container for the service.
  9.  
  10. It is currently incomplete, because it doesn't have a configuration file.
  11.  
  12. The container is built on Alpine with Python3. I had to guess which Python dependencies to install (currently I have `requests` and `websocket-client`; perhaps those should be documented?)
  13.  
  14. The design to copy perfectly good Python scripts from `src` to `bin` is slightly weird, but I didn't try to change that at this point.
  15.  
  16. Quick and dirty intro to Docker:
  17.  
  18. * Build with `docker build -t spamsoup:latest .`
  19. * Run with `docker run --rm -it spamsoup:latest` or for interactive troubleshooting `docker run --rm -it spamsoup:latest /bin/sh`. Once you are happy with the result, you can drop the `-it` options and just `docker run --rm -d spamsoup:latest` to start an image in the background.
  20. * Check what containers you have with `docker ps -a`; maybe `docker rm` containers you no longer need, and `docker rmi` the corresponding images.
  21. """
Success #stdin #stdout 0.02s 9292KB
stdin
Standard input is empty
stdout
Standard output is empty