Skip to content

Commit

Permalink
Java 21, dcslauncher, easier dev, moved out system-files
Browse files Browse the repository at this point in the history
  • Loading branch information
UWCS committed Sep 26, 2024
1 parent 823152a commit 3aa3f55
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM docker.io/library/archlinux:latest AS arch

COPY system-files /

# Pacman Initialization
# Create build user
RUN sed -i 's/#Color/Color/g' /etc/pacman.conf && \
Expand All @@ -24,8 +22,11 @@ RUN pacman -Syu \
firefox konsole dolphin \
flatpak \
steam lutris \
cargo \
--noconfirm

RUN cargo install dcspkg --root /usr

# Add paru and install AUR packages
USER build
WORKDIR /home/build
Expand All @@ -34,10 +35,16 @@ RUN git clone https://aur.archlinux.org/paru-bin.git --single-branch && \
makepkg -si --noconfirm && \
cd .. && \
rm -drf paru-bin
RUN paru --noconfirm -S prismlauncher-qt5-bin jre17-openjdk
RUN paru --noconfirm -S prismlauncher-qt5-bin jre17-openjdk jre21-openjdk
USER root
WORKDIR /

RUN mkdir -p /home/fng
WORKDIR /home/fng
RUN git clone https://github.com/UWCS/fng-home.git .
RUN git clone https://github.com/UWCS/dcslauncher.git
WORKDIR /

# Cleanup
# We do this last because it'll only apply to updates the user makes going forward. We don't want to optimize for the build host's environment.
RUN sed -i 's/-march=x86-64 -mtune=generic/-march=native -mtune=native/g' /etc/makepkg.conf && \
Expand Down
2 changes: 1 addition & 1 deletion host/.xsession
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ podman rm -f arch

podman pull ghcr.io/uwcs/fng:latest

$distrobox create --nvidia -i ghcr.io/uwcs/fng:latest -n arch -I --no-entry --pre-init-hooks "mkdir -p /usr/local/bin && chown -R $(id -u):$(id -g) /home/fng" -d | sed -e '\#--volume "'$HOME'":#d' -e '\#--home "'$HOME'"#c\--home "/home/fng"' -e '\#--volume /dcs:#d' | tr '\n' ' ' | source /dev/stdin
$distrobox create --nvidia -i uwcs/fng:latest -n arch -I --no-entry --pre-init-hooks "mkdir -p /usr/local/bin && chown -R $(id -u):$(id -g) /home/fng" -d | sed -e '\#--volume "'$HOME'":#d' -e '\#--home "'$HOME'"#c\--home "/home/fng"' -e '\#--volume /dcs:#d' | tr '\n' ' ' | source /dev/stdin

$distrobox enter arch -- echo launched
podman exec --interactive --detach-keys="" --user=$USER --workdir="/home/fng" --env "CONTAINER_ID=arch" --env "DISPLAY=${DISPLAY}" --env "HOME=/home/fng" arch dbus-run-session startplasma-x11
Expand Down
1 change: 0 additions & 1 deletion system-files/home/fng
Submodule fng deleted from f2b974

0 comments on commit 3aa3f55

Please sign in to comment.