-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
443bd2b
commit eead448
Showing
29 changed files
with
163 additions
and
5 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
2024m05a | ||
2024m27a |
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,21 @@ | ||
ARG ALMA_CHANNEL=9 | ||
|
||
FROM docker.io/almalinux:${ALMA_CHANNEL} | ||
|
||
# Set working environment up | ||
WORKDIR /root | ||
|
||
# Copy and run | ||
COPY ./shared/etc/ /etc/ | ||
COPY ./shared/sh/ /root/gel/shared/sh | ||
COPY ./etc/ /etc/ | ||
COPY ./sh/ /root/gel/distro/sh | ||
RUN bash /root/gel/distro/sh/init.sh | ||
RUN bash /root/gel/shared/sh/setup.sh | ||
RUN bash /root/gel/distro/sh/setup.sh | ||
RUN bash /root/gel/shared/sh/post.sh | ||
|
||
# Run forever | ||
EXPOSE 1122 | ||
CMD ["/sbin/init"] | ||
#CMD ["sleep", "infinity"] |
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 @@ | ||
../shared/docker-compose.yml |
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,10 @@ | ||
# see `man dnf.conf` for defaults and possible options | ||
|
||
[main] | ||
gpgcheck=True | ||
installonly_limit=3 | ||
clean_requirements_on_remove=True | ||
best=False | ||
skip_if_unavailable=True | ||
tsflags=nodocs | ||
zchunk=False |
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 @@ | ||
Alma |
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 @@ | ||
../../rocky/sh/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 @@ | ||
../../rocky/sh/amd64 |
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 @@ | ||
../../rocky/sh/arm64 |
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,7 @@ | ||
#!/bin/bash | ||
dnf update -y | ||
dnf install -y 'dnf-command(config-manager)' | ||
dnf config-manager --set-enabled crb | ||
dnf install -y epel-release | ||
dnf install -y util-linux-user which zsh | ||
exit |
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,19 @@ | ||
#!/bin/bash | ||
echo "Pre-install..." | ||
rm -f /etc/dnf/protected.d/sudo.conf | ||
dnf remove -y sudo | ||
echo "Installation stage 1..." | ||
dnf install -y ca-certificates | ||
echo "Installation stage 2..." | ||
dnf install -y systemd gpg bash zsh openssh-server shadow-utils \ | ||
unzip zip tar bzip2 lzip brotli zopfli pigz lbzip2 xz \ | ||
net-tools bind-utils iputils traceroute tcptraceroute psmisc iptables-nft procps-ng dnsmasq \ | ||
nano tree netcat socat pv git screen htop sqlite | ||
echo "Installation stage 3..." | ||
dnf install -y libstdc++ | ||
bash raw.sh opendoas-6.8.2.rpm | ||
echo "Removing unnecessary files..." | ||
rm -fv /lib/systemd/system/anaconda.target.wants/* | ||
echo "Post-install..." | ||
mkdir -p /run/sshd | ||
exit |
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 @@ | ||
../../shared/sh/raw.sh |
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,12 @@ | ||
#!/bin/bash | ||
cd ~root/gel/distro/sh | ||
sed -i "s/__FLAVOUR__/AlmaLinux/g" $PREFIX/etc/motd | ||
#bash init.sh | ||
bash install.sh | ||
#dnf clean dbcache | ||
dnf clean all | ||
echo "Applying ZSH key fix..." | ||
echo 'bindkey "^[[H" beginning-of-line | ||
bindkey "^[[F" end-of-line | ||
bindkey "^[[3~" delete-char' >> $PREFIX/etc/skel/.zshrc | ||
exit |
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 @@ | ||
../shared |
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,21 @@ | ||
ARG ALMA_CHANNEL=9 | ||
|
||
FROM docker.io/almalinux:${ALMA_CHANNEL} | ||
|
||
# Set working environment up | ||
WORKDIR /root | ||
|
||
# Copy and run | ||
COPY ./shared/etc/ /etc/ | ||
COPY ./shared/sh/ /root/gel/shared/sh | ||
COPY ./etc/ /etc/ | ||
COPY ./sh/ /root/gel/distro/sh | ||
RUN bash /root/gel/distro/sh/init.sh | ||
RUN bash /root/gel/shared/sh/setup.sh | ||
RUN bash /root/gel/distro/sh/setup.sh | ||
RUN bash /root/gel/shared/sh/post.sh | ||
|
||
# Run forever | ||
EXPOSE 1122 | ||
CMD ["/sbin/init"] | ||
#CMD ["sleep", "infinity"] |
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 @@ | ||
../shared/docker-compose.yml |
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,10 @@ | ||
# see `man dnf.conf` for defaults and possible options | ||
|
||
[main] | ||
gpgcheck=True | ||
installonly_limit=3 | ||
clean_requirements_on_remove=True | ||
best=False | ||
skip_if_unavailable=True | ||
tsflags=nodocs | ||
zchunk=False |
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 @@ | ||
Rocky |
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 @@ | ||
../../slimrock/sh/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 @@ | ||
../../slimrock/sh/amd64 |
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 @@ | ||
../../slimrock/sh/arm64 |
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 @@ | ||
../../shared/sh/cleanup.sh |
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,7 @@ | ||
#!/bin/bash | ||
dnf update -y | ||
dnf install -y 'dnf-command(config-manager)' | ||
dnf config-manager --set-enabled crb | ||
dnf install -y epel-release | ||
dnf install -y util-linux-user which zsh | ||
exit |
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,23 @@ | ||
#!/bin/bash | ||
echo "Pre-install..." | ||
rm -f /etc/dnf/protected.d/sudo.conf | ||
dnf remove -y sudo | ||
echo "Installation stage 1..." | ||
dnf install -y ca-certificates | ||
echo "Installation stage 2..." | ||
dnf install -y systemd bash zsh openssh-server shadow-utils \ | ||
unzip zip tar bzip2 brotli xz \ | ||
net-tools bind-utils iputils psmisc iptables-nft procps-ng dnsmasq \ | ||
nano tree netcat pv sqlite | ||
echo "Installation stage 3..." | ||
dnf install -y libstdc++ | ||
#bash raw.sh bind9-next-license-9.19.11.rpm | ||
#bash raw.sh bind9-next-libs-9.19.11.rpm | ||
#bash raw.sh bind9-next-utils-9.19.11.rpm | ||
#bash raw.sh lziprecover-1.23-3.rpm | ||
bash raw.sh opendoas-6.8.2.rpm | ||
echo "Removing unnecessary files..." | ||
rm -fv /lib/systemd/system/anaconda.target.wants/* | ||
echo "Post-install..." | ||
mkdir -p /run/sshd | ||
exit |
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 @@ | ||
../../shared/sh/raw.sh |
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,13 @@ | ||
#!/bin/bash | ||
cd ~root/gel/distro/sh | ||
sed -i "s/__FLAVOUR__/AlmaLinux Slim/g" $PREFIX/etc/motd | ||
#bash init.sh | ||
bash install.sh | ||
#dnf clean dbcache | ||
dnf clean all | ||
bash cleanup.sh | ||
echo "Applying ZSH key fix..." | ||
echo 'bindkey "^[[H" beginning-of-line | ||
bindkey "^[[F" end-of-line | ||
bindkey "^[[3~" delete-char' >> $PREFIX/etc/skel/.zshrc | ||
exit |
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 @@ | ||
../shared |
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
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