<commit_before>GENERAL

  [ ] split admin and web django applications into dedicated repositories


CORE

  [ ] create core containers with "--restart=always" so they are auto started on restart (https://docs.docker.com/reference/run/#restart-policies-restart)
  [ ] define the Open vSwitch bridge as a regular interface (rather than through ovs-vsctl tool)
  [ ] create Dockerfiles for the core containers and push them to the registry
  [ ] use a process supervisor like monit/supervisord to ensure the coco_hostapi process is always running
  [ ] (optional) put the coco_hostapi behind a proxy (gevent, ...). flask debug server should not be used
  [ ] (optional) run django application in app container as non-root user
  [ ] (optional) enable container resource limits so a container cannot eat all i.e. memory (https://docs.docker.com/reference/run/#runtime-constraints-on-resources)


IMPROVEMENTS / TODOS

  [ ] define and implement an error handling concept. at least log all errors
  [ ] find another way to identify users/check permissions in the nginx reverse proxy (to minimize load on the django app)
  [ ] django app model validation via the in 1.8 newly introduced mechanisms (https://docs.djangoproject.com/en/1.8/ref/models/instances/#validating-objects)
<commit_msg>two more useful NOTES<commit_after>GENERAL

  [ ] split admin and web django applications into dedicated repositories


CORE

  [ ] create core containers with "--restart=always" so they are auto started on restart (https://docs.docker.com/reference/run/#restart-policies-restart)
  [ ] define the Open vSwitch bridge as a regular interface (rather than through ovs-vsctl tool)
  [ ] create Dockerfiles for the core containers and push them to the registry
  [ ] use a process supervisor like monit/supervisord to ensure the coco_hostapi process is always running
  [ ] (optional) put the coco_hostapi behind a proxy (gevent, ...). flask debug server should not be used
  [ ] (optional) run django application in app container as non-root user
  [ ] (optional) enable container resource limits so a container cannot eat all i.e. memory (https://docs.docker.com/reference/run/#runtime-constraints-on-resources)
  [ ] outsource ServerSelectionAlgorithm to contract package
  [ ] make the directory<->"mount point" mapper ContainerBackend aware (the backend should say how this mapping should be done)


IMPROVEMENTS / TODOS

  [ ] define and implement an error handling concept. at least log all errors
  [ ] find another way to identify users/check permissions in the nginx reverse proxy (to minimize load on the django app)
  [ ] django app model validation via the in 1.8 newly introduced mechanisms (https://docs.djangoproject.com/en/1.8/ref/models/instances/#validating-objects)
  [ ] define VLANs per user so his containers can communicate (but not others)

{'fraction_non_alphanumeric': 0.07484188334504568, 'fraction_numerical': 0.0028109627547434997, 'mean_word_length': 4.223853211009175, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2380608', 'n_tokens_mistral': 769, 'n_tokens_neox': 735, 'n_words': 335}