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

DX: speed up workflows with Docker images #298

Closed
wants to merge 24 commits into from
Closed

Commits on Mar 27, 2023

  1. FIX: hash only .py files under the src directory

    Prevents untracked files from being part of the cache key
    redeboer committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    53ca048 View commit details
    Browse the repository at this point in the history
  2. FIX: correctly hash .jl files

    There were no matched files for the previous pattern, see
    https://github.com/ComPWA/polarimetry/actions/runs/3962250099/jobs/6788669966
    redeboer committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    8a3bbf1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    918bbcf View commit details
    Browse the repository at this point in the history
  4. DX: run fast doc jobs in Docker containers

    Removes the need to run `apt install`
    
    Dockerfile:
    
    ```Dockerfile
    FROM ubuntu:22.04
    RUN apt-get -y update
    
    \# https://serverfault.com/a/992421
    RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
    RUN apt-get -y install inkscape latexmk make texlive-fonts-extra texlive-xetex xindy
    
    RUN apt-get clean
    RUN rm -rf /var/lib/apt/lists/*
    ```
    
    and uploaded it to Docker Hub:
    
    ```shell
    sudo docker build -t compwa/polarimetry-fast-pdf:v1 .
    sudo docker tag compwa/polarimetry-fast-pdf:v1 compwa/polarimetry-fast-pdf:v1
    sudo docker push compwa/polarimetry-fast-pdf:v1
    ```
    redeboer committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    edff447 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    959133c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    82358ef View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    447613f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    92814b5 View commit details
    Browse the repository at this point in the history
  9. MAINT: add Dockerfiles

    redeboer committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    d613511 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    26faf70 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    701e734 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0403345 View commit details
    Browse the repository at this point in the history
  13. MAINT: push Docker container with SHA

    This allows pinning to a specific Docker container
    redeboer committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    e600ed2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a25a80a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    35a938d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ff58f86 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    fabf38c View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0c02243 View commit details
    Browse the repository at this point in the history
  19. MAINT: update docker SHA

    redeboer committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    dd22a9c View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    7e50624 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    58b7596 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    031bc43 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    71ee68f View commit details
    Browse the repository at this point in the history
  24. MAINT: update Docker SHA

    redeboer committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    d33ace1 View commit details
    Browse the repository at this point in the history