mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Fix installer build
This commit is contained in:
@@ -2,9 +2,11 @@ FROM debian:jessie
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN apt-get update && apt-get install -y grub2 parted kexec-tools
|
||||
|
||||
COPY conf lay-down-os seed-data set-disk-partitions /scripts/installer/
|
||||
COPY ./build/build.conf /scripts/
|
||||
COPY conf lay-down-os seed-data set-disk-partitions /scripts/
|
||||
COPY ./build/vmlinuz /dist/vmlinuz
|
||||
COPY ./build/initrd /dist/initrd
|
||||
|
||||
ARG VERSION
|
||||
ENV VERSION=${VERSION}
|
||||
|
||||
ENTRYPOINT ["/scripts/lay-down-os"]
|
||||
|
@@ -9,9 +9,11 @@ RUN mkdir -p /usr/local/src && \
|
||||
git clone https://git.linaro.org/people/takahiro.akashi/kexec-tools.git && \
|
||||
cd kexec-tools && git checkout kdump/for-14 && ./bootstrap && ./configure && make && make install
|
||||
|
||||
COPY conf lay-down-os seed-data set-disk-partitions /scripts/installer/
|
||||
COPY ./build/build.conf /scripts/
|
||||
COPY conf lay-down-os seed-data set-disk-partitions /scripts/
|
||||
COPY ./build/vmlinuz /dist/vmlinuz
|
||||
COPY ./build/initrd /dist/initrd
|
||||
|
||||
ARG VERSION
|
||||
ENV VERSION=${VERSION}
|
||||
|
||||
ENTRYPOINT ["/scripts/lay-down-os"]
|
||||
|
@@ -3,7 +3,6 @@ set -e -x
|
||||
|
||||
SCRIPTS_DIR=$(dirname ${0})
|
||||
|
||||
. "${SCRIPTS_DIR}/build.conf"
|
||||
VERSION=${VERSION:?"VERSION not set"}
|
||||
|
||||
while getopts "i:f:c:d:t:r:o:p:ka:" OPTION
|
||||
|
@@ -2,6 +2,8 @@
|
||||
# help: Run Python based integration tests
|
||||
set -e
|
||||
|
||||
source $(dirname $0)/version
|
||||
|
||||
cd $(dirname $0)/../tests/integration
|
||||
|
||||
if [ ! -e ../../dist/artifacts/initrd ]; then
|
||||
|
@@ -14,9 +14,8 @@ fi
|
||||
|
||||
mkdir -p ./scripts/installer/build
|
||||
cp ./dist/artifacts/{initrd,vmlinuz} ./scripts/installer/build
|
||||
echo VERSION=$VERSION > ./scripts/installer/build/build.conf
|
||||
trap "rm -rf ./scripts/installer/build" EXIT
|
||||
|
||||
docker build -t ${OS_REPO}/os:${VERSION}${SUFFIX} -f $DOCKERFILE ./scripts/installer
|
||||
docker build -t ${OS_REPO}/os:${VERSION}${SUFFIX} --build-arg VERSION=${VERSION} -f $DOCKERFILE ./scripts/installer
|
||||
echo ${OS_REPO}/os:${VERSION}${SUFFIX} > dist/images
|
||||
echo Built ${OS_REPO}/os:${VERSION}${SUFFIX}
|
||||
|
Reference in New Issue
Block a user