Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable deployment #677

Merged
merged 37 commits into from
Apr 9, 2022
Merged

Enable deployment #677

merged 37 commits into from
Apr 9, 2022

Commits on Apr 7, 2022

  1. Rename nginx configuration file

    Also align with SCIO and do not use variables got gunicorn server
    
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    f5a1f0a View commit details
    Browse the repository at this point in the history
  2. Add docker-compose to dev requirements

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    0257c02 View commit details
    Browse the repository at this point in the history
  3. Bump version

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    f6927b0 View commit details
    Browse the repository at this point in the history
  4. Align configuration with SCIO

    Also bump version. Use Djnago settings by default.
    
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    496f7f3 View commit details
    Browse the repository at this point in the history
  5. Bump virtualenv and add missing ABOUT files

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    79d2ca8 View commit details
    Browse the repository at this point in the history
  6. Use streamlined command entry point

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    670ada9 View commit details
    Browse the repository at this point in the history
  7. Do not use setuptools scm

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    7ed3e9b View commit details
    Browse the repository at this point in the history
  8. Do not restart: on-failure

    This can cause endless, infinite loop of failure/restart
    
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    9af3a7e View commit details
    Browse the repository at this point in the history
  9. Remove empty line

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    72f2dbd View commit details
    Browse the repository at this point in the history
  10. Aligne Makefile with SCIO

    Ensure that we always install "dot" locally
    Streamline other target
    Remove unused targets
    
    
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    405af02 View commit details
    Browse the repository at this point in the history
  11. Bump to use Python 3.9 in Docker image

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    9778f12 View commit details
    Browse the repository at this point in the history
  12. Use vulnerablecode not scancode for images

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    56f030b View commit details
    Browse the repository at this point in the history
  13. Use vulnerablecode as a container name, not web

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    781c51e View commit details
    Browse the repository at this point in the history
  14. Improve documentation

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    451544c View commit details
    Browse the repository at this point in the history
  15. Use proper name

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    c81f8e5 View commit details
    Browse the repository at this point in the history
  16. Imrpoev env var. handling in settings.py

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    332b977 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2022

  1. Update changelog

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    31aaa9d View commit details
    Browse the repository at this point in the history
  2. Use minimal version for settings

    Also bump django-environ that was super old otherwise
    
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    882a6dd View commit details
    Browse the repository at this point in the history
  3. Improve envt. handling

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    d2dfbd0 View commit details
    Browse the repository at this point in the history
  4. Improve code format, duplication and documentation

    * Format long lines in doctests.
    * Remove dead imports.
    * Convert comments to docstring
    
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    8a1d24c View commit details
    Browse the repository at this point in the history
  5. Remove empty line

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    b5a5079 View commit details
    Browse the repository at this point in the history
  6. Migrate pytest settings to pyproject.toml

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    9cf65f0 View commit details
    Browse the repository at this point in the history
  7. Format code

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    66df267 View commit details
    Browse the repository at this point in the history
  8. Re-organize Python and docker setup

    * Use setup.cfg rather than setup.py
    * Use new [dev] extra for development utilities
    * Use requirements.txt as constraints for pinning deps. Drop using
      requirements-dev.txt
    * Update pyproject.toml for tools including pytest, black and isort
    * Update Makefile and Dockerfile accordingly
    * Bump version to signal this is a beta
    * Update dockerignore and other confif files
    * Bump dependencies
    
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    0fe12c6 View commit details
    Browse the repository at this point in the history
  9. Use non-deprecated logger call

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    b2666c9 View commit details
    Browse the repository at this point in the history
  10. Correct settinsg for auth

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    c897f86 View commit details
    Browse the repository at this point in the history
  11. Enable SessionAuthentication

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    ba8ce32 View commit details
    Browse the repository at this point in the history
  12. Make Retes API look better

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    49f0830 View commit details
    Browse the repository at this point in the history
  13. Remove ability to edit/create/delete from the UI

    This is too complex and requires more design to enable.
    
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    112d99f View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2022

  1. Configuration menu
    Copy the full SHA
    cea9854 View commit details
    Browse the repository at this point in the history
  2. Remove trailing spaces

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 9, 2022
    Configuration menu
    Copy the full SHA
    86da080 View commit details
    Browse the repository at this point in the history
  3. Fix typo

    Reported-by: Hritik Vijay <[email protected]>
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 9, 2022
    Configuration menu
    Copy the full SHA
    4feb550 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    471e39b View commit details
    Browse the repository at this point in the history
  5. Disable codestyle checks until we have cleaned up the code

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 9, 2022
    Configuration menu
    Copy the full SHA
    d7f9d16 View commit details
    Browse the repository at this point in the history
  6. Format code

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 9, 2022
    Configuration menu
    Copy the full SHA
    df3ebaa View commit details
    Browse the repository at this point in the history
  7. Improve the CHANGELOG

    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 9, 2022
    Configuration menu
    Copy the full SHA
    cdcc5e1 View commit details
    Browse the repository at this point in the history
  8. Document how we load environment variables from .env

    There is a precedence of /etc/vulnerablecode/.env over the local .env
    file in all cases
    
    Reported-by: Hritik Vijay <[email protected]>
    Signed-off-by: Philippe Ombredanne <[email protected]>
    pombredanne committed Apr 9, 2022
    Configuration menu
    Copy the full SHA
    bf4864b View commit details
    Browse the repository at this point in the history