Merge pull request #3148 from fidencio/wip/stable-2.3-fix-cpio-missing-cpio-package

stable-2.3 | osbuilder: fix missing cpio package when building rootfs-initrd image
This commit is contained in:
Fabiano Fidêncio
2021-11-29 20:07:16 +01:00
committed by GitHub
3 changed files with 15 additions and 10 deletions

View File

@@ -4,9 +4,11 @@
# #
# SPDX-License-Identifier: Apache-2.0 # 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} DOCKER_RUNTIME=${DOCKER_RUNTIME:-runc}

View File

@@ -4,9 +4,11 @@
# #
# SPDX-License-Identifier: Apache-2.0 # 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_name="${0##*/}"
script_dir="$(dirname $(readlink -f $0))" script_dir="$(dirname $(readlink -f $0))"

View File

@@ -2,7 +2,7 @@
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
FROM ubuntu FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV INSTALL_IN_GOPATH=false ENV INSTALL_IN_GOPATH=false
@@ -27,7 +27,8 @@ RUN sh -c "echo '${IMG_USER} ALL=NOPASSWD: ALL' >> /etc/sudoers"
#FIXME: gcc is required as agent is build out of a container build. #FIXME: gcc is required as agent is build out of a container build.
RUN apt-get update && \ RUN apt-get update && \
apt install -y \ apt install --no-install-recommends -y \
cpio \
gcc \ gcc \
git \ git \
make \ make \