~ricardokirkner/locolander/fix-scan-project

« back to all changes in this revision

Viewing changes to docker/Dockerfile

  • Committer: Loco Lander
  • Date: 2013-06-22 01:52:19 UTC
  • mfrom: (1.1.15 build-image)
  • Revision ID: loco_lander-20130622015219-tey3qi91rt37hl6h
[r=nataliabidart] initial set of scripts to run tests and merge branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from ubuntu:precise
 
2
env http_proxy http://172.16.42.1:3128
 
3
 
 
4
# enable universe repo
 
5
run apt-get -y update
 
6
run apt-get -y install python-software-properties
 
7
run add-apt-repository "deb http://archive.ubuntu.com/ubuntu precise main universe"
 
8
run apt-get -y update
 
9
 
 
10
# install base tools
 
11
run apt-get -y install python-pip
 
12
run apt-get -y install bzr
 
13
 
 
14
# upgrade system
 
15
run apt-get -y upgrade
 
16
 
 
17
# add pip cache
 
18
run mkdir -p /var/cache/locolander/pip
 
19
 
 
20
# configure proxy
 
21
add ./files/environment /etc/environment
 
22
add ./files/95proxies /etc/apt/apt.conf.d/95proxies
 
23
 
 
24
# add locolander user
 
25
run adduser locolander
 
26
 
 
27
# install main locolander script
 
28
add ./scripts/run_tests.sh /usr/local/bin/run_tests.sh
 
29
run chown locolander.locolander /usr/local/bin/run_tests.sh
 
30
 
 
31
# configure ssh
 
32
run mkdir /home/locolander/.ssh
 
33
add ./files/ssh/id_rsa /home/locolander/.ssh/id_rsa
 
34
add ./files/ssh/id_rsa.pub /home/locolander/.ssh/id_rsa.pub
 
35
 
 
36
# configure bazaar
 
37
run mkdir /home/locolander/.bazaar
 
38
add ./files/bazaar/bazaar.conf /home/locolander/.bazaar/bazaar.conf
 
39
add ./files/bazaar/authentication.conf /home/locolander/.bazaar/authentication.conf
 
40
 
 
41
# ensure proper ownership
 
42
run chown -R locolander.locolander /home/locolander/