Skip to content

Commit

Permalink
Merge pull request #3148 from fidencio/wip/stable-2.3-fix-cpio-missin…
Browse files Browse the repository at this point in the history
…g-cpio-package

stable-2.3 | osbuilder: fix missing cpio package when building rootfs-initrd image
  • Loading branch information
fidencio authored Nov 29, 2021
2 parents 5995efc + df34e91 commit bf183c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
6 changes: 4 additions & 2 deletions tools/osbuilder/image-builder/image_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
#
# SPDX-License-Identifier: Apache-2.0

set -e
[ -z "${DEBUG}" ] || set -x

[ -n "${DEBUG}" ] && set -x
set -o errexit
# set -o nounset
set -o pipefail

DOCKER_RUNTIME=${DOCKER_RUNTIME:-runc}

Expand Down
6 changes: 4 additions & 2 deletions tools/osbuilder/initrd-builder/initrd_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
#
# SPDX-License-Identifier: Apache-2.0

set -e
[ -z "${DEBUG}" ] || set -x

[ -n "$DEBUG" ] && set -x
set -o errexit
# set -o nounset
set -o pipefail

script_name="${0##*/}"
script_dir="$(dirname $(readlink -f $0))"
Expand Down
13 changes: 7 additions & 6 deletions tools/packaging/kata-deploy/local-build/dockerbuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM ubuntu
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV INSTALL_IN_GOPATH=false

Expand All @@ -27,11 +27,12 @@ RUN sh -c "echo '${IMG_USER} ALL=NOPASSWD: ALL' >> /etc/sudoers"

#FIXME: gcc is required as agent is build out of a container build.
RUN apt-get update && \
apt install -y \
gcc \
git \
make \
xz-utils
apt install --no-install-recommends -y \
cpio \
gcc \
git \
make \
xz-utils

ENV USER ${IMG_USER}
USER ${UID}:${GID}

0 comments on commit bf183c5

Please sign in to comment.