mirror of
https://github.com/rancher/os.git
synced 2025-07-07 03:48:38 +00:00
Merge pull request #432 from imikushin/bump-dind
build scripts: update to rancher/dind:v0.5.0
This commit is contained in:
commit
e7ce1d143f
2
build.sh
2
build.sh
@ -5,8 +5,6 @@ cd $(dirname $0)
|
||||
|
||||
export DOCKER_IMAGE=rancher-os-build
|
||||
|
||||
source ./scripts/version
|
||||
|
||||
./scripts/ci
|
||||
|
||||
rm -rf dist
|
||||
|
@ -20,7 +20,7 @@ done
|
||||
|
||||
if [ "$IN_DOCKER" != "true" ]; then
|
||||
cat > .dockerfile << "EOF"
|
||||
FROM rancher/dind:v0.1.0
|
||||
FROM rancher/dind:v0.5.0
|
||||
COPY ./scripts/bootstrap /scripts/bootstrap
|
||||
RUN /scripts/bootstrap
|
||||
WORKDIR /source
|
||||
|
@ -9,6 +9,8 @@ DOCKER_FILE=${CONFIG}/.dockerfile
|
||||
|
||||
write_base()
|
||||
{
|
||||
DOCKER_BASE=${DOCKER_BASE:?"DOCKER_BASE not defined"}
|
||||
|
||||
if [ "${BASE_WRITTEN}" = "true" ]; then
|
||||
return
|
||||
fi
|
||||
@ -16,7 +18,7 @@ write_base()
|
||||
mkdir -p $(dirname ${DOCKER_FILE})
|
||||
|
||||
cat > ${DOCKER_FILE} << EOF
|
||||
FROM ${DOCKER_BASE:=ubuntu:14.04.2}
|
||||
FROM ${DOCKER_BASE}
|
||||
ENV TERM xterm
|
||||
ENV IN_DOCKER true
|
||||
WORKDIR /source
|
||||
|
@ -4,7 +4,7 @@ set -ex
|
||||
cd $(dirname $0)/..
|
||||
|
||||
export DOCKER_IMAGE=${DOCKER_IMAGE:=rancher-os-build}
|
||||
export DOCKER_BASE=rancher/dind:v0.1.0
|
||||
export DOCKER_BASE=rancher/dind:v0.5.0
|
||||
|
||||
source scripts/build-common
|
||||
mkdir -p ${BUILD}
|
||||
|
Loading…
Reference in New Issue
Block a user