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

Conversation

redeboer
Copy link
Member

Prevents untracked files from being part of the cache key
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
```
This allows pinning to a specific Docker container
@redeboer redeboer added the 🖱️ DX Improvements to the Developer Experience label Mar 27, 2023
@redeboer redeboer self-assigned this Mar 27, 2023
@redeboer redeboer added this to the 0.0.10 milestone Mar 27, 2023
redeboer added a commit that referenced this pull request Mar 27, 2023
This will be implemented in #298
@redeboer redeboer closed this Jan 23, 2024
@redeboer redeboer deleted the docker-images branch January 23, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖱️ DX Improvements to the Developer Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Speed up workflows with Docker images
1 participant