coria / deploy-coria (public) (License: Unspecified) (since 2017-03-17) (hash sha1)
Deploy CORIA backend, frontend and related services in Docker containers.
List of commits:
Subject Hash Author Date (UTC)
Init CORIA Docker deployment 10b837fadc5ca0cd66a278093068e1c57519f770 Vasilis Ververis 2017-03-17 11:20:45
Commit 10b837fadc5ca0cd66a278093068e1c57519f770 - Init CORIA Docker deployment
Author: Vasilis Ververis
Author date (UTC): 2017-03-17 11:20
Committer name: Vasilis Ververis
Committer date (UTC): 2017-03-17 11:20
Parent(s):
Signing key:
Tree: 2bc6f6df08c6930533fe1e38ab01af01a249007a
File Lines added Lines deleted
README.md 31 0
backend/Dockerfile 15 0
docker-compose.yml 17 0
frontend/Dockerfile 9 0
File README.md added (mode: 100644) (index 0000000..17a461f)
1 # CORIA deployment
2
3 This repository is used to deploy the Connectivity Risk Analysis (CORIA)
4 backend, frontend and their required services in Docker containers.
5
6 ## Requirements
7
8 ### Install Docker
9
10 Instructions on how to install the Docker engine in your platform can be found
11 [here](https://docs.docker.com/engine/installation/)
12
13 ### Install Docker Compose
14
15 Instructions on how to install the Docker Compose in your platform can be found
16 [here](https://docs.docker.com/compose/install/)
17
18 ## Deploy CORIA
19
20 ```
21 git clone https://rocketgit.com/user/coria/deploy-coria
22 cd deploy-coria
23 docker-compose up -d
24 ```
25
26 You should be able to access CORIA frontend under
27 [https://hostname](https://hostname).
28
29 **Note**: The CORIA frontend ([https://hostname](https://hostname)) will not
30 have any results populated until the complete CORIA's backend computations are
31 completed.
File backend/Dockerfile added (mode: 100644) (index 0000000..41622f7)
1 FROM ubuntu:wily
2 RUN apt-get update && apt-get -qq install gnupg2
3 RUN apt-key adv --keyserver pgp.skewed.de --recv-key 612DEFB798507F25
4 RUN echo "deb http://downloads.skewed.de/apt/wily wily universe"\
5 >> /etc/apt/sources.list
6 RUN echo "deb-src http://downloads.skewed.de/apt/wily wily universe"\
7 >> /etc/apt/sources.list
8 RUN apt-get update && apt-get install -qq python-graph-tool git python-pip && \
9 rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
10 apt-get autoremove -y && \
11 apt-get clean
12 RUN pip install redis networkx
13 RUN git clone https://rocketgit.com/user/coria/coria-backend /coria-backend
14 WORKDIR /coria-backend
15 CMD ["python", "start.py", "data/Dataset_2012.txt"]
File docker-compose.yml added (mode: 100644) (index 0000000..7b865af)
1 coria-backend:
2 build: ./backend
3 restart: on-failure
4 links:
5 - redis
6
7 coria-frontend:
8 build: ./frontend
9 restart: always
10 ports:
11 - "4567:4567"
12 links:
13 - redis
14
15 redis:
16 image: redis
17 restart: always
File frontend/Dockerfile added (mode: 100644) (index 0000000..69b3b7c)
1 FROM ruby:2.1
2 RUN apt-get update && apt-get install -qq git && \
3 rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
4 apt-get autoremove -y && \
5 apt-get clean
6 RUN git clone https://rocketgit.com/user/coria/coria-frontend /coria-frontend
7 WORKDIR /coria-frontend
8 RUN bundle install
9 CMD ["ruby", "run.rb"]
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/coria/deploy-coria

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/coria/deploy-coria

Clone this repository using git:
git clone git://git.rocketgit.com/user/coria/deploy-coria

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main