[baseimage]: update base image from jessie to stretch
This commit is contained in:
parent
9e2ceb7cba
commit
4d701ad037
@ -29,7 +29,7 @@
|
|||||||
set -x -e
|
set -x -e
|
||||||
|
|
||||||
## docker engine version (with platform)
|
## docker engine version (with platform)
|
||||||
DOCKER_VERSION=1.11.1-0~jessie_amd64
|
DOCKER_VERSION=1.11.1-0~stretch_amd64
|
||||||
|
|
||||||
## Working directory to prepare the file system
|
## Working directory to prepare the file system
|
||||||
FILESYSTEM_ROOT=./fsroot
|
FILESYSTEM_ROOT=./fsroot
|
||||||
@ -64,7 +64,7 @@ touch $FILESYSTEM_ROOT/$PLATFORM_DIR/firsttime
|
|||||||
|
|
||||||
## Build a basic Debian system by debootstrap
|
## Build a basic Debian system by debootstrap
|
||||||
echo '[INFO] Debootstrap...'
|
echo '[INFO] Debootstrap...'
|
||||||
sudo http_proxy=$http_proxy debootstrap --variant=minbase --arch amd64 jessie $FILESYSTEM_ROOT http://debian-archive.trafficmanager.net/debian
|
sudo http_proxy=$http_proxy debootstrap --variant=minbase --arch amd64 stretch $FILESYSTEM_ROOT http://debian-archive.trafficmanager.net/debian
|
||||||
|
|
||||||
## Config hostname and hosts, otherwise 'sudo ...' will complain 'sudo: unable to resolve host ...'
|
## Config hostname and hosts, otherwise 'sudo ...' will complain 'sudo: unable to resolve host ...'
|
||||||
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '$HOSTNAME' > /etc/hostname"
|
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '$HOSTNAME' > /etc/hostname"
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
## Debian mirror on Microsoft Azure
|
## Debian mirror on Microsoft Azure
|
||||||
## Ref: http://debian-archive.trafficmanager.net/
|
## Ref: http://debian-archive.trafficmanager.net/
|
||||||
|
|
||||||
deb http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-free
|
deb http://debian-archive.trafficmanager.net/debian/ stretch main contrib non-free
|
||||||
deb-src http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-free
|
deb-src http://debian-archive.trafficmanager.net/debian/ stretch main contrib non-free
|
||||||
deb http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free
|
deb http://debian-archive.trafficmanager.net/debian-security/ stretch/updates main contrib non-free
|
||||||
deb-src http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free
|
deb-src http://debian-archive.trafficmanager.net/debian-security/ stretch/updates main contrib non-free
|
||||||
deb http://debian-archive.trafficmanager.net/debian/ jessie-backports main contrib non-free
|
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
deb http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-free
|
deb http://debian-archive.trafficmanager.net/debian/ stretch main contrib non-free
|
||||||
deb http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free
|
deb http://debian-archive.trafficmanager.net/debian-security/ stretch/updates main contrib non-free
|
||||||
deb http://debian-archive.trafficmanager.net/debian/ jessie-backports main contrib non-free
|
|
||||||
|
Reference in New Issue
Block a user