Skip to content
Snippets Groups Projects
Commit 43e3fb28 authored by Diego Alejandro Arias Rodriguez's avatar Diego Alejandro Arias Rodriguez
Browse files

deployment frontend

parent fb7039f6
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
gather_facts: true
roles:
- role: openstack-proxy
- role: openstack-config-docker
- role: openstack-run-script-installcdb
- hosts: COUCHGROUP[0]
......@@ -25,6 +26,11 @@
roles:
- role: openstack-run-script-cluster
- hosts: COUCHGROUP[1]
gather_facts: true
roles:
- role: openstack-frontend
#- hosts: COUCHGROUP
......
#!/usr/bin/env bash
curl -X PUT http://172.26.130.79:5984/live_demo/_design/sports_by_city --data-binary @sports_by_city.json
curl -X PUT http://172.26.130.79:5984/live_demo/_design/retweets_followers --data-binary @retweets_followers.json
curl -X PUT http://172.26.130.79:5984/live_demo/_design/replies --data-binary @retweets_followers.json
\ No newline at end of file
curl -X PUT http://172.26.130.79:5984/live_demo/_design/sports_by_city --data-binary @./sports_by_city.json
curl -X PUT http://172.26.130.79:5984/live_demo/_design/retweets_followers --data-binary @./retweets_followers.json
curl -X PUT http://172.26.130.79:5984/live_demo/_design/replies --data-binary @./retweets_followers.json
\ No newline at end of file
# configure docker proxy
- name: Create a systemd drop-in directory for the docker service
become: yes
command: sudo mkdir -p /etc/systemd/system/docker.service.d
- name: Create a file named http-proxy-conf
become: yes
copy:
dest: /etc/systemd/system/docker.service.d/http-proxy.conf
force: no
content: |
[Service]
Environment="HTTP_PROXY=http://wwwproxy.unimelb.edu.au:8000"
- name: create a https proxy conf file
become: yes
copy:
dest: /etc/systemd/system/docker.service.d/https-proxy.conf
force: no
content: |
[Service]
Environment="HTTPS_PROXY=http://wwwproxy.unimelb.edu.au:8000/"
Environment="http_proxy=http://wwwproxy.unimelb.edu.au:8000/"
Environment="https_proxy=http://wwwproxy.unimelb.edu.au:8000/"
Environment="no_proxy=localhost,127.0.0.1,localaddress,172.16.0.0/12,.melbourne.rc.nectar.org.au,.storage.unimelb.edu.au,.cloud.unimelb.edu.au"
- name: Flush changes
become: yes
command: sudo systemctl daemon-reload
- name: Restart docker
become: yes
command: sudo systemctl restart docker
- name: Pulls docker container with frontend
become: yes
command: sudo docker pull avasthi/twitter-app:v2.0.16
- name: run docker container with frontend
become: yes
command: sudo docker run -d --network=host avasthi/twitter-app:v2.0.16
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment