mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-26 04:18:46 +00:00
Initial commit
This commit is contained in:
25
image/prepare.sh
Executable file
25
image/prepare.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source /build/buildconfig
|
||||
set -x
|
||||
|
||||
## Enable Ubuntu Universe.
|
||||
echo deb http://archive.ubuntu.com/ubuntu precise main universe > /etc/apt/sources.list
|
||||
echo deb http://archive.ubuntu.com/ubuntu precise-updates main universe >> /etc/apt/sources.list
|
||||
apt-get update
|
||||
|
||||
## Install HTTPS support for APT.
|
||||
apt-get install -y apt-transport-https
|
||||
|
||||
## Fix some issues with APT packages.
|
||||
## See https://github.com/dotcloud/docker/issues/1024
|
||||
dpkg-divert --local --rename --add /sbin/initctl
|
||||
ln -s /bin/true /sbin/initctl
|
||||
|
||||
## Upgrade all packages.
|
||||
echo "initscripts hold" | dpkg --set-selections
|
||||
apt-get upgrade -y
|
||||
|
||||
## Fix locale.
|
||||
apt-get install -y language-pack-en
|
||||
locale-gen en_US
|
||||
Reference in New Issue
Block a user