mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
This commit adds the necessary spec files and scripts in order to be able to create packages in OBS (Open Build System) and locally. Fixes #15 Signed-off-by: Erick Cardona <erick.cardona.ruiz@intel.com> Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
25 lines
851 B
Docker
25 lines
851 B
Docker
FROM opensuse:leap
|
|
|
|
ARG GO_VERSION=${GO_VERSION:-1.10.2}
|
|
ARG SUSE_VERSION=${SUSE_VERSION:-42.3}
|
|
ARG GO_ARCH=${GO_ARCH:-amd64}
|
|
|
|
# Get OBS client, plugins and dependencies
|
|
RUN zypper -n install osc-plugin-install vim curl bsdtar git sudo pcre-tools
|
|
RUN curl -OkL https://download.opensuse.org/repositories/openSUSE:Tools/openSUSE_${SUSE_VERSION}/openSUSE:Tools.repo
|
|
RUN zypper -n addrepo openSUSE:Tools.repo
|
|
RUN zypper --gpg-auto-import-keys refresh
|
|
RUN zypper -n install build \
|
|
obs-service-tar_scm \
|
|
obs-service-verify_file \
|
|
obs-service-obs_scm \
|
|
obs-service-recompress \
|
|
obs-service-download_url
|
|
|
|
# Set Go environment
|
|
RUN curl -OL https://dl.google.com/go/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
|
|
RUN tar -C /usr/local -xzf go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
|
|
|
|
# Local build dependencies
|
|
RUN zypper -n install make gcc yum xz
|