1. 28 Jun, 2021 2 commits
  2. 25 Jun, 2021 2 commits
    • Kevin Morris's avatar
      Docker: add [c]git, nginx, fastapi, php-fpm, ca · 2a3df086
      Kevin Morris authored
      Now, we have a full collection of services used to run
      aurweb over HTTPS using a self-signed CA.
      
      New Docker services:
      
      - `ca` - Certificate authority services
          - When the `ca` service is run, it will (if needed) generate
            a CA certificate and leaf certificate for localhost AUR
            access. This ca is then shared with things like nginx to
            use the leaf certificate. Users can import
            `./cache/ca.root.pem` into their browser or ca-certificates
            as a root CA who issued aurweb's certificate.
      - `git` - Start sshd and set it up for aur git access
      - `cgit` - Serve cgit with uwsgi on port 3000
      - `fastapi` - Serve our FastAPI app with `hypercorn` on port 8000
      - `php-fpm` - Serve our PHP-wise aurweb
      - `nginx` - Serve FastAPI, PHP and CGit with an HTTPS certificate.
          - PHP: https://localhost:8443
          - PHP CGit: https://localhost:8443/cgit
          - FastAPI: https://localhost:8444
          - FastAPI CGit: https://localhost:8444/cgit
      
      Short of it: Run ...
      2a3df086
    • Kevin Morris's avatar
      Improve Docker ecosystem · 5bd46d18
      Kevin Morris authored
      Instead of using Dockerfile for everything, we've introduced
      a docker-compose.yml file and kept the Dockerfile to producing
      a pure base image for the services defined.
      
      docker-compose services:
      
      - `mariadb` - Setup mariadb
      - `sharness` - Run sharness suites
      - `pytest-mysql` - Run pytest suites with MariaDB
      - `pytest-sqlite` - Run pytest suites with SQLite
      - `test` - Run all tests and produce a collective coverage report
          - This target mounts a cache volume and copies any successful
            coverage report back to `./cache/.coverage`. Users can run
            `./util/fix-coverage ./cache/.coverage` to rewrite source
            code paths and move coverage into place to view reports
            on your local system.
      
      == Get Started ==
      
      Build `aurweb:latest`.
      
          $ docker build -t aurweb:latest .
      
      Run all tests via `docker-compose`.
      
          $ docker-compose up test
      
      You can also purely run `pytest` in SQLite or MariaDB modes.
      
          $ docker-compose up pytest-sqlite
          $ docker-compose up pytest-mysql...
      5bd46d18
  3. 06 Jun, 2021 2 commits
  4. 20 Feb, 2021 1 commit
  5. 24 Nov, 2019 1 commit
  6. 17 Oct, 2016 1 commit
  7. 08 Oct, 2016 1 commit
  8. 17 Jun, 2015 1 commit
  9. 04 Feb, 2015 1 commit
  10. 27 Jul, 2014 1 commit
  11. 22 Jun, 2011 1 commit
  12. 10 Apr, 2011 2 commits
  13. 23 Jan, 2009 1 commit
  14. 03 Dec, 2008 1 commit
  15. 20 Jan, 2008 2 commits
  16. 23 Sep, 2007 1 commit
  17. 22 Sep, 2007 1 commit