-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐧 Change ubuntu images location (#204)
* 🐧 Move 20 LTS to ubuntu-20-lts repository, ubuntu-rolling to ubuntu See: #150 (comment) * 🐧 Add ubuntu 22 lts Fixes: #150
- Loading branch information
Showing
6 changed files
with
69 additions
and
10 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
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
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,56 @@ | ||
ARG BASE_IMAGE=ubuntu:20.04 | ||
|
||
FROM $BASE_IMAGE | ||
ARG K3S_VERSION | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update | ||
RUN apt install -y software-properties-common | ||
RUN add-apt-repository ppa:oibaf/test | ||
RUN apt update | ||
RUN apt install -y \ | ||
systemd \ | ||
grub-pc-bin \ | ||
grub-efi-amd64-bin \ | ||
grub2 \ | ||
grub2-common \ | ||
nohang \ | ||
sudo \ | ||
iproute2 \ | ||
squashfs-tools \ | ||
parted dracut \ | ||
dracut-network tar \ | ||
e2fsprogs \ | ||
dosfstools \ | ||
coreutils \ | ||
debianutils \ | ||
curl \ | ||
openssh-server \ | ||
nano \ | ||
gawk \ | ||
haveged \ | ||
rsync \ | ||
jq \ | ||
neovim \ | ||
open-vm-tools \ | ||
linux-image-generic-hwe-20.04 && apt-get clean | ||
|
||
RUN ln -s /usr/sbin/grub-install /usr/sbin/grub2-install | ||
RUN ln -s /usr/bin/grub-editenv /usr/bin/grub2-editenv | ||
RUN systemctl enable nohang-desktop.service | ||
RUN systemctl enable systemd-networkd | ||
RUN systemctl enable ssh | ||
RUN echo "auto lo" > /etc/network/interfaces | ||
RUN echo "iface lo inet loopback" >> /etc/network/interfaces | ||
|
||
# Enable tmp | ||
RUN cp -v /usr/share/systemd/tmp.mount /etc/systemd/system/ | ||
RUN systemctl enable tmp.mount | ||
|
||
# Fixup sudo perms | ||
RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo | ||
|
||
|
||
# Clear cache | ||
RUN apt-get clean && rm -rf /var/cache/* && journalctl --vacuum-size=1K && rm /etc/machine-id && rm /var/lib/dbus/machine-id |
2 changes: 1 addition & 1 deletion
2
images/Dockerfile.ubuntu-rolling → images/Dockerfile.ubuntu-22-lts
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,4 +1,4 @@ | ||
ARG BASE_IMAGE=ubuntu:22.10 | ||
ARG BASE_IMAGE=ubuntu:22.04 | ||
|
||
FROM $BASE_IMAGE | ||
ARG K3S_VERSION | ||
|