ollama gpu updates to fedora kinoite
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 38m58s

This commit is contained in:
2024-12-30 17:20:09 -05:00
parent ea710ac6e1
commit d49cab1ab7
6 changed files with 67 additions and 25 deletions

View File

@@ -25,4 +25,12 @@ jobs:
file: ${{ gitea.workspace }}/infrastructure/graduated/fedora/arch.containerfile
push: true
tags: "gitea.reeseapps.com/services/arch-toolbox:latest,gitea.reeseapps.com/services/arch-toolbox:${{gitea.sha}}"
no-cache: true
- name: Build and push AMD GPU Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: ${{ gitea.workspace }}/infrastructure/graduated/fedora
file: ${{ gitea.workspace }}/infrastructure/graduated/fedora/arch-amdgpu.containerfile
push: true
tags: "gitea.reeseapps.com/services/arch-toolbox-amdgpu:latest,gitea.reeseapps.com/services/arch-toolbox-amdgpu:${{gitea.sha}}"
no-cache: true

View File

@@ -0,0 +1,14 @@
FROM gitea.reeseapps.com/services/arch-toolbox:latest
# Install ROCM Drivers
RUN pacman -S --noconfirm rocm-hip-sdk rocm-opencl-sdk
# Install Ollama, an AI language model application.
RUN curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz && \
tar -C /usr -xzf ollama-linux-amd64.tgz && \
rm ollama-linux-amd64.tgz
# Install Ollama AMD drivers
RUN curl -L https://ollama.com/download/ollama-linux-amd64-rocm.tgz -o ollama-linux-amd64-rocm.tgz && \
tar -C /usr -xzf ollama-linux-amd64-rocm.tgz && \
rm ollama-linux-amd64-rocm.tgz

View File

@@ -3,13 +3,14 @@
# Build latest image
podman pull quay.io/toolbx/arch-toolbox:latest
podman build \
-t gitea.reeseapps.com/services/arch-toolbox:debug \
-t gitea.reeseapps.com/services/arch-toolbox:latest \
-f ./infrastructure/graduated/fedora/arch.containerfile
# Stop the current arch toolbox
podman container stop arch-toolbox-latest
podman container stop arch-toolbox-debug
# Remove the old container
podman container rm arch-toolbox-latest
podman container rm arch-toolbox-debug
# Start with the new image
toolbox create -i gitea.reeseapps.com/services/arch-toolbox:debug
podman build \
-t gitea.reeseapps.com/services/arch-toolbox-amdgpu:latest \
-f ./infrastructure/graduated/fedora/arch-amdgpu.containerfile
echo "podman container stop arch-toolbox-latest"
echo "podman container rm arch-toolbox-latest"
echo "toolbox create -i gitea.reeseapps.com/services/arch-toolbox-amdgpu:latest"
echo "toolbox create -i gitea.reeseapps.com/services/arch-toobolx"

View File

@@ -16,7 +16,7 @@ EOF
# Set the architecture for Pacman manually to x86_64 since automatic detection might not work properly.
RUN sed -i 's/^Architecture = auto/Architecture = x86_64/' /etc/pacman.conf
# Sync repository databases and perform an upgrade of all installed packages without asking for confirmation.
# Sync repository databases.
RUN pacman -Sy --noconfirm
# Install a variety of commonly used tools and utilities using Pacman.
@@ -84,7 +84,9 @@ RUN pacman -S --noconfirm \
# Visual Studio Code editor
code \
# Python static type checker and code formatter.
ruff
ruff \
# Generate strong passwords.
pwgen
########################
##### Extra Apps #####
@@ -93,11 +95,6 @@ RUN pacman -S --noconfirm \
# Install UV, a tool for managing Python environments.
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
# Install Ollama, an AI language model application.
RUN curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz && \
tar -C /usr -xzf ollama-linux-amd64.tgz && \
rm ollama-linux-amd64.tgz
# Install AWS CLI version 2.
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip -qq awscliv2.zip && \

View File

@@ -283,6 +283,36 @@ Play games.
flatpak install com.valvesoftware.Steam
```
### MangoHud
<https://github.com/flightlessmango/MangoHud?tab=readme-ov-file#flatpak>
Pretty Numbers for your Games.
```bash
flatpak install org.freedesktop.Platform.VulkanLayer.MangoHud
flatpak override --user --env=MANGOHUD=1 com.valvesoftware.Steam
# Allow flatpak apps to read Mangohud config
flatpak override --user --filesystem=xdg-config/MangoHud:ro
```
Edit `~/.config/MangoHud/MangoHud.conf`
```conf
### pre defined presets
# -1 = default
# 0 = no display
# 1 = fps only
# 2 = horizontal view
# 3 = extended
# 4 = high detailed information
preset=2
### Enable most of the toggleable parameters (currently excludes `histogram`)
# full
```
### Raspberry Pi Imager
Flash your pi.
@@ -410,14 +440,6 @@ Bittorent Client.
flatpak install com.transmissionbt.Transmission
```
### AdwSteamGtk
Make Steam look like a KDE App... you know you want to.
```bash
flatpak install io.github.Foldex.AdwSteamGtk
```
### Frog
Extract text, scan QR codes, from images.

View File

@@ -18,7 +18,7 @@ source /usr/share/doc/pkgfile/command-not-found.zsh
### Custom Commands and Aliases ###
# Local bin PATH
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$HOME/.local/scripts:$PATH"
# Fix for Ansible
export LC_ALL="C.UTF-8"