-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added docker build and pull request template
- Loading branch information
1 parent
765d72f
commit 9335ca2
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:latest | ||
|
||
ARG TL_VERSION=2023 | ||
ARG TL_MIRROR=https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | ||
|
||
# Install basic packages | ||
RUN apt-get update -q | ||
RUN apt-get install -qy build-essential wget sudo | ||
|
||
# Clean up to reduce image size | ||
RUN apt-get clean autoclean && apt-get autoremove -y | ||
RUN rm -rf /var/lib/{apt,dpkg,cache,log}/ /tmp/* /usr/local/texlive/${TL_VERSION}/*.log | ||
|
||
# Install basic texlive distribution | ||
RUN cd /tmp && \ | ||
wget --directory-prefix /tmp ${TL_MIRROR} && \ | ||
zcat < install-tl-unx.tar.gz | tar xf - && \ | ||
cd install-tl-* && \ | ||
perl ./install-tl --scheme=small --no-interaction | ||
ENV PATH="${PATH}:/usr/local/texlive/${TL_VERSION}/bin/x86_64-linux" | ||
|
||
# Update packages and tlmgr | ||
RUN tlmgr init-usertree | ||
RUN tlmgr update --self --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"image": "ghcr.io/oliverkillane/imperial-computing-notes-dev:latest", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [] | ||
} | ||
}, | ||
"mounts": [ | ||
{ | ||
"source": "${localEnv:HOME}/.ssh", | ||
"target": "/root/.ssh", | ||
"type": "bind" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Goals | ||
- [ ] Increase the flubbo of the foobar | ||
- [x] Re-jingle the plorb (without wazzo deractance) | ||
- Only semi-jingled, decided against replacement due to additional build complexity | ||
|
||
> :eyes: **Please see zarg formatting** (decreased cadence) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build and Publish Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- enh/development-docker | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.IMPERIAL_NOTES_GHCR_TOKEN }} | ||
- name: Build and Push Image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: .devcontainer | ||
push: true | ||
platforms: linux/amd64 | ||
tags: ghcr.io/oliverkillane/imperial-computing-notes-dev:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |