Skip to content

Commit

Permalink
feat: add code, typst, gh
Browse files Browse the repository at this point in the history
  • Loading branch information
trevnels committed Jan 17, 2024
1 parent 5791e79 commit 48ebac7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ LABEL com.github.containers.toolbox="true" \
usage="This image is meant to be used with the toolbox or distrobox command" \
summary="My personal distrobox development environment"

RUN dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
RUN dnf -y install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc
RUN sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

COPY extra-packages /
RUN dnf -y update --skip-broken && \
grep -v '^#' /extra-packages | xargs dnf -y install
RUN rm /extra-packages

# keep npm up to date
RUN npm install -g npm

# install Bun (npm should be present as part of extra-packages above)
RUN npm install -g bun

# install VSCode

# install Typst
RUN wget -qO- https://github.com/typst/typst/releases/download/latest/typst-x86_64-unknown-linux-musl.tar.xz | tar -xJ -C /tmp/ && \
/tmp/typst-x86_64-unknown-linux-musl/typst /usr/local/bin/ && \
rm -rf /tmp/typst-x86_64-unknown-linux-musl


RUN ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \
Expand Down
2 changes: 2 additions & 0 deletions extra-packages
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
code
dbus-x11
eza
ffmpeg
fzf
gh
helix
just
make
Expand Down

0 comments on commit 48ebac7

Please sign in to comment.