Skip to content
Snippets Groups Projects
Commit 341b1f2d authored by justinz's avatar justinz
Browse files

Move files out of Containerfile and into files sub-directory. Clean up comments and general tidying

parent 3f576f74
Branches main
No related tags found
No related merge requests found
# Get Fedora Base Image
# Use Fedora Base Image
FROM registry.fedoraproject.org/fedora:latest
# Get DNF5 as it's faster
# Instal DNF5 as it is much more performant
RUN dnf install -y dnf5 dnf5-plugins
RUN dnf5 install -y dnf5 dnf5-plugins
# Need a few bits from Copr
# Enable justinz/op6 Copr
RUN dnf install -y 'dnf-command(copr)'
RUN dnf copr enable -y justinz/op6
# Install Plasma Mobile
# Install Plasma Mobile Packages
RUN dnf5 install -y kscreen \
maliit-keyboard \
plasma-mobile \
sddm
# Install Apps
# Install Plasma Mobile Apps Packages
RUN dnf5 install -y \
angelfish \
bluedevil \
......@@ -33,19 +33,19 @@ RUN dnf5 install -y \
qmlkonsole \
spacebar
# Install Tools
# Install Tool Packages
RUN dnf5 install -y nano \
openssh-server \
util-linux \
util-linux-user
# Install SDM845 packages
# Install SDM845 Packages
RUN dnf5 instal -y pd-mapper \
qbootctl \
rmtfs \
tqftpserv
# Install Network
# Install Network Packages
RUN dnf5 install -y iproute \
iputils \
NetworkManager-bluetooth \
......@@ -60,39 +60,27 @@ RUN groupadd -g 1000 user && \
useradd -g 1000 -G wheel -m -u 1000 user && \
echo 'user:147147' | chpasswd
# Set boot device
# Set Boot Device
RUN echo '/dev/mapper/sda17p2 / ext4 rw,relatime 0 0' > /etc/fstab
# Enable Systemd Service
RUN systemctl enable sshd
RUN systemctl enable pd-mapper
RUN systemctl enable tqftpserv
RUN systemctl enable rmtfs
RUN systemctl enable qbootctl-mark-boot-successful
RUN systemctl enable sddm
# Enable Systemd Services
RUN systemctl enable pd-mapper \
qbootctl-mark-boot-successful \
rmtfs \
sddm \
sshd \
tqftpserv
# Setup Autologin in SDDM
RUN echo '[Autologin]' > /etc/sddm.conf.d/autologin.conf
RUN echo 'User=user' >> /etc/sddm.conf.d/autologin.conf
RUN echo 'Session=plasma-mobile' >> /etc/sddm.conf.d/autologin.conf
RUN cp files/autologin.conf /etc/sddm.conf.d/autologin.conf
# Setup Default Browser and Look and Feel
RUN echo '# SPDX-FileCopyrightText: None' > /etc/xdg/kdeglobals
RUN echo '# SPDX-License-Identifier: CC0-1.0' >> /etc/xdg/kdeglobals
RUN echo '[General]' >> /etc/xdg/kdeglobals
RUN echo 'BrowserApplication[$e]=!angelfish' >> /etc/xdg/kdeglobals
RUN echo '[KDE]' >> /etc/xdg/kdeglobals
RUN echo 'LookAndFeelPackage=org.kde.plasma.phone' >> /etc/xdg/kdeglobals
RUN cp files/kdeglobals /etc/xdg/kdeglobals
# Setup Auto Screen Lock on Login
RUN echo '# SPDX-FileCopyrightText: None' > /etc/xdg/kscreenlockerrc
RUN echo '# SPDX-License-Identifier: CC0-1.0' >> /etc/xdg/kscreenlockerrc
RUN echo '[Daemon]' >> /etc/xdg/kscreenlockerrc
RUN echo 'LockOnStart=true' >> /etc/xdg/kscreenlockerrc
RUN cp files/kscreenlockerrc /etc/xdg/kscreenlockerrc
# Set Virtual Keyboard to Maliit
RUN echo '[Wayland]' > /etc/xdg/kwinrc
RUN echo 'InputMethod[$e]=/usr/share/applications/com.github.maliit.keyboard.desktop' >> /etc/xdg/kwinrc
RUN echo 'VirtualKeyboardEnabled=true' >> /etc/xdg/kwinrc
RUN cp files/kwinrc /etc/xdg/kwinrc
ENTRYPOINT ["/bin/bash", "-l", "-i"]
[Autologin]
User=user
Session=plasma-mobile
\ No newline at end of file
# SPDX-FileCopyrightText: None
# SPDX-License-Identifier: CC0-1.0
[General]
BrowserApplication[$e]=!angelfish
[KDE]
LookAndFeelPackage=org.kde.plasma.phone
\ No newline at end of file
# SPDX-FileCopyrightText: None
# SPDX-License-Identifier: CC0-1.0
[Daemon]
LockOnStart=true
\ No newline at end of file
[Wayland]
InputMethod[$e]=/usr/share/applications/com.github.maliit.keyboard.desktop
VirtualKeyboardEnabled=true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment