This repository has been archived by the owner on Feb 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker.yml
74 lines (69 loc) · 2.97 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This file is part of agora-board.
# Copyright (C) 2016 Agora Voting SL <[email protected]>
# agora-board is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License.
# agora-board is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License
# along with agora-board. If not, see <http://www.gnu.org/licenses/>.
---
- name: Update cache, install apt-transport-https ca-certificates
sudo: true
apt: state=present update_cache=yes
with_items:
- apt-transport-https
- ca-certificates
- name: Add GPG key
sudo: true
shell: apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
- name: Add docker repository
sudo: true
shell: echo 'deb https://apt.dockerproject.org/repo ubuntu-trusty main' > /etc/apt/sources.list.d/docker.list
- name: Update cache, purge old repo lxc-docker
sudo: true
apt: state=absent name=lxc-docker update_cache=yes
- name: Install linux image extras
sudo: true
apt: state=present name=linux-image-extra-virtual
- name: Install Docker
sudo: true
apt: state=present name=docker-engine
- name: Download docker-compose
sudo: true
get_url: url=https://github.com/docker/compose/releases/download/1.6.2/docker-compose-Linux-x86_64 dest=/usr/local/bin/docker-compose mode=0777
- name: Git agora-board clone
sudo: true
git: repo=https://github.com/agoravoting/agora-board.git dest=/home/ubuntu/agora-board clone=yes update=yes
- name: Java
sudo: true
shell: echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
- name: Java PPA
sudo: true
shell: add-apt-repository -y ppa:webupd8team/java
- name: apt-get update
sudo: true
shell: apt-get update
- name: Java install
sudo: true
shell: apt-get install -y oracle-java8-installer
- name: Java install (2)
sudo: true
shell: apt-get install -y oracle-java8-set-default
- name: Download docker-compose
sudo: true
get_url: https://downloads.typesafe.com/typesafe-activator/1.3.7/typesafe-activator-1.3.7.zip dest=/home/ubuntu/typesafe-activator-1.3.7.zip
- name: Unzip activator
sudo: true
shell: cd /home/ubuntu/ && unzip typesafe-activator-1.3.7.zip
- name: Remove activator bat
sudo: true
shell: rm /home/ubuntu/typesafe-activator-1.3.7/activator.bat
- name: Set activator path on bashrc
sudo: true
shell: echo 'export PATH=/home/ubuntu/activator-1.3.7:$PATH' >> /home/ubuntu/.bashrc && echo 'export PATH=/home/ubuntu/activator-1.3.7:$PATH' >> /home/vagrant/.bashrc
- name: Start Docker for FIWARE Orion/Mongodb
sudo: true
git: cd /home/ubuntu/agora-board/conf && docker-compose up &