<reponame>ChangjunZhao/basebuilder<gh_stars>0
# Copyright 2015 basebuilder authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# this file describes how to build tsuru python3 image
# to run it:
# 1 - tsuru-admin platform-add python3 -d https://raw.github.com/tsuru/basebuilder/master/python3/Dockerfile

from	ubuntu:14.04
run     locale-gen en_US.UTF-8
env     LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
run	apt-get update
run	apt-get install software-properties-common curl wget -y
run	wget http://github.com/tsuru/basebuilder/tarball/master -O basebuilder.tar.gz --no-check-certificate
run	mkdir /var/lib/tsuru
run	tar -xvf basebuilder.tar.gz -C /var/lib/tsuru --strip 1
run	rm basebuilder.tar.gz
run	cp /var/lib/tsuru/python3/deploy /var/lib/tsuru
run	cp /var/lib/tsuru/base/start /var/lib/tsuru
run	/var/lib/tsuru/base/install
run	add-apt-repository ppa:fkrull/deadsnakes -y
run	apt-get update
run	apt-get install python3.4 python3.4-dev -y --force-yes
run	rm -f /usr/bin/python3
run	ln -s /usr/bin/python3.4 /usr/bin/python3
run	curl -sL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python3
