1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 06:59:12 +00:00

Merge pull request #1025 from ibuildthecloud/foo2

Build script updates
This commit is contained in:
Darren Shepherd
2016-06-17 08:34:27 -07:00
committed by GitHub
5 changed files with 14 additions and 4 deletions

View File

@@ -209,8 +209,8 @@ RUN source /usr/src/toolchain-env; if [ "${TOOLCHAIN}" != "" ]; then \
make install \
;fi
RUN mkdir -p images/00-rootfs/build && \
curl -pfL ${!OS_BASE_URL} | tar xvJf - -C images/00-rootfs/build
RUN cd ${DOWNLOADS} && \
curl -pfL ${!OS_BASE_URL} | tar xvJf -
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]

9
images/00-rootfs/prebuild.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
TAR=${DOWNLOADS}/rootfs.tar
if [ -e $TAR ]; then
cd $(dirname $0)
mkdir -p build
cp $TAR build
fi

View File

@@ -6,4 +6,4 @@ cd $(dirname $0)
./build
./prepare
INSTALLER=0 COMPRESS="gzip -1" ROOTFS=0 ./package
INSTALLER=0 ROOTFS=0 ./package

View File

@@ -11,7 +11,7 @@ INITRD=${ARTIFACTS}/initrd
mkdir -p ${ARTIFACTS}
if [ "$COMPRESS" == "" ]; then
COMPRESS=lzma
COMPRESS="gzip -1"
fi
cd ${INITRD_DIR}

View File

@@ -3,5 +3,6 @@ set -e
source $(dirname $0)/version
export REPO_VERSION=$VERSION
export COMPRESS=lzma
exec $(dirname $0)/ci