mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-06 16:04:26 +01:00
Simplify the yaml and combine the prior scripts. The resulting script, kata-deploy.sh, is used for install and configuration and removal for CRI-O and containerd. While this could be used standalone outside of daemonsets, today it will sleep infinity after processing the request, since it is assumed to be called by a daemon. By checking the CRI runtime within the script itself, we no longer need to support many daemonsets for deploy - just a single. Still requires a seperate cleanup daemonset (for restarting the CRI runtime), and an RBAC. Verified with CRI-O -- containerd testing WIP Throwing this up now for feedback since I do not bash good. Signed-off-by: Eric Ernst <eric.ernst@intel.com> Signed-off-by: Saikrishna Edupuganti <saikrishna.edupuganti@intel.com>
19 lines
623 B
Docker
19 lines
623 B
Docker
FROM centos/systemd
|
|
ARG KATA_VER
|
|
ARG ARCH=x86_64
|
|
ARG KUBE_ARCH=amd64
|
|
ARG KATA_URL=https://github.com/kata-containers/runtime/releases/download/${KATA_VER}
|
|
ARG KATA_FILE=kata-static-${KATA_VER}-${ARCH}.tar.xz
|
|
|
|
RUN \
|
|
curl -sOL ${KATA_URL}/${KATA_FILE} && \
|
|
mkdir -p /opt/kata-artifacts && \
|
|
tar xvf ${KATA_FILE} -C /opt/kata-artifacts/ && \
|
|
rm ${KATA_FILE}
|
|
|
|
RUN \
|
|
curl -Lso /bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/${KUBE_ARCH}/kubectl && \
|
|
chmod +x /bin/kubectl
|
|
|
|
COPY scripts /opt/kata-artifacts/scripts
|