Skip to content

Commit

Permalink
Use Leap 15.5 for kubeadm dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
juadk committed Jul 1, 2024
1 parent 8c559a7 commit 2dd3e5f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile.kubeadm.os
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN CGO_ENABLED=1 go build \
FROM ${ELEMENTAL_TOOLKIT} as TOOLKIT

# OS base image of our choice
FROM registry.opensuse.org/opensuse/tumbleweed:latest as OS
FROM registry.opensuse.org/opensuse/leap:15.5 as OS

ARG AGENT_CONFIG_FILE=iso/config/example-config.yaml

Expand Down Expand Up @@ -89,9 +89,7 @@ RUN ARCH=$(uname -m); \
shim \
btrfsprogs \
btrfsmaintenance \
snapper \
# glibc-gconv-modules-extra still missing from mtools required
glibc-gconv-modules-extra
snapper

# Install kubeadm stack dependencies
RUN ARCH=$(uname -m); \
Expand Down Expand Up @@ -126,9 +124,6 @@ COPY $AGENT_CONFIG_FILE /oem/elemental/agent/config.yaml
# Enable essential services
RUN systemctl enable NetworkManager.service sshd conntrackd containerd kubelet

# This is for automatic testing purposes, do not do this in production.
RUN echo "PermitRootLogin yes" > /etc/ssh/sshd_config.d/rootlogin.conf

# Make sure trusted certificates are properly generated
RUN /usr/sbin/update-ca-certificates

Expand Down

0 comments on commit 2dd3e5f

Please sign in to comment.