Commit b33db2228e1374d3419cbbee7f9eeb92e19f17b4

Authored by Antonio Terceiro
1 parent 03557511

dev-install.sh: start of a central development environment bring up

Showing 2 changed files with 27 additions and 1 deletions   Show diff stats
.mrconfig
... ... @@ -5,7 +5,7 @@ checkout = utils/downloadsource.sh http://archive.apache.org/dist/lucene/solr/4.
5 5 skip = true
6 6  
7 7 [colab]
8   -checkout = git clone https://github.com/colab-community/colab.git --branch stable_spb
  8 +checkout = git clone https://github.com/colab-community/colab.git --branch softwarepublico
9 9  
10 10 [doc/colabdocumentation]
11 11 checkout = git clone https://gitlab.com/softwarepublico/colabdocumentation.git
... ...
dev-install.sh 0 → 100755
... ... @@ -0,0 +1,26 @@
  1 +#!/bin/sh
  2 +
  3 +set -e
  4 +
  5 +vagrant up
  6 +host=$(vagrant ssh-config | awk '{ if ($1 == "HostName") { print($2) }}')
  7 +port=$(vagrant ssh-config | awk '{ if ($1 == "Port") { print($2) }}')
  8 +key=$(vagrant ssh-config | awk '{ if ($1 == "IdentityFile") { print($2) }}')
  9 +
  10 +cat > colab/environments.yml <<EOF
  11 +dev:
  12 + hosts:
  13 + - $host
  14 + key_filename: $key
  15 + port: $port
  16 + is_vagrant: True
  17 + superuser: 'vagrant'
  18 +EOF
  19 +
  20 +sudo apt-get install -qy python-yaml fabric
  21 +
  22 +(
  23 + cd colab
  24 + fab --disable-known-hosts bootstrap
  25 + fab --disable-known-hosts deploy
  26 +)
... ...