mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-27 02:04:28 +01:00
packaging: merge packaging repository
git-subtree-dir: tools/packaging git-subtree-mainline:f818b46a41git-subtree-split:1f22d72d5dSigned-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
19
tools/packaging/tests/Dockerfile/Dockerfile.in
Normal file
19
tools/packaging/tests/Dockerfile/Dockerfile.in
Normal file
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2019 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Usage: FROM [image name]
|
||||
FROM @OS_DISTRIBUTION@
|
||||
|
||||
ARG TEST_REPO="https://github.com/kata-containers/tests"
|
||||
|
||||
RUN @UPDATE@
|
||||
|
||||
RUN @DEPENDENCIES@
|
||||
|
||||
# Install packages
|
||||
RUN cd "/home/" && git clone "${TEST_REPO}"
|
||||
RUN cd "/home/tests" && ./cmd/kata-manager/kata-manager.sh install-packages
|
||||
RUN kata-runtime kata-env
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
28
tools/packaging/tests/Dockerfile/FedoraDockerfile.in
Normal file
28
tools/packaging/tests/Dockerfile/FedoraDockerfile.in
Normal file
@@ -0,0 +1,28 @@
|
||||
# Copyright (c) 2020 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Usage: FROM [image name]
|
||||
FROM @OS_DISTRIBUTION@
|
||||
|
||||
ENV TESTS_REPO="github.com/kata-containers/tests"
|
||||
|
||||
RUN @DEPENDENCIES@
|
||||
|
||||
ENV PATH=$PATH:/usr/local/go/bin
|
||||
ENV GOPATH=/home/go
|
||||
ENV TESTS_REPOSITORY_PATH="${GOPATH}/src/${TESTS_REPO}"
|
||||
ENV AGENT_INIT=yes TEST_INITRD=yes OSBUILDER_DISTRO=alpine
|
||||
|
||||
# Install packages
|
||||
RUN sudo dnf -y install kata-proxy kata-ksm-throttler kata-osbuilder kata-runtime kata-shim
|
||||
RUN sudo mkdir "${GOPATH}"
|
||||
RUN sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
|
||||
RUN sudo dnf makecache
|
||||
RUN sudo dnf -y install docker-ce
|
||||
RUN go get -d "${TESTS_REPO}"
|
||||
RUN cd "${TESTS_REPOSITORY_PATH}" && .ci/install_kata_image.sh
|
||||
RUN cd "${TESTS_REPOSITORY_PATH}" && .ci/install_kata_kernel.sh
|
||||
RUN kata-runtime kata-env
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Reference in New Issue
Block a user