Skip to content

Commit dbdaa61

Browse files
committed
Merge VFRAME functionality into Alegre #7847
1 parent 956e87e commit dbdaa61

11 files changed

+39
-33
lines changed

.gitmodules

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
path = alegre
2323
url = [email protected]:meedan/alegre.git
2424
branch = develop
25-
[submodule "vframe"]
26-
path = vframe
27-
url = [email protected]:meedan/vframe.git
28-
branch = develop
2925
[submodule "check-bots"]
3026
path = check-bots
3127
url = [email protected]:meedan/check-bots.git

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is a [Docker Compose](https://docs.docker.com/compose/) configuration that
1212
- `git clone --recursive [email protected]:meedan/check.git && cd check`
1313
- Configuration: copy and edit the `*.example` files in the submodules
1414
- Update your [virtual memory settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html), e.g. by setting `vm.max_map_count=262144` in `/etc/sysctl.conf`
15-
- `docker-compose build && docker-compose up`
15+
- `docker-compose build && docker-compose up --abort-on-container-exit`
1616

1717
## Available services and container names
1818

@@ -23,8 +23,7 @@ This is a [Docker Compose](https://docs.docker.com/compose/) configuration that
2323
- Check Slack Bot (container `bot`) at `check-bot/dist`, a ZIP file that should be deployed to AWS Lambda
2424
- Pender service API (container `pender`) at [http://localhost:3200/api](http://localhost:3200/api) - use `dev` as API key
2525
- Alegre service API (container `alegre`) at [http://localhost:3100](http://localhost:3100)
26-
- vFrame service API (container `vframe`) at [http://localhost:5000](http://localhost:5000)
27-
- Montage web client (container `montage`) at [http://localhost:8080](http://localhost:8080)
26+
- MinIO storage service UI (container `minio`) at [http://localhost:9000](http://localhost:9000) - use `AKIAIOSFODNN7EXAMPLE` / `wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY` to login
2827
- Elasticsearch API (container `elasticsearch`) at [http://localhost:9200](http://localhost:9200)
2928
- Kibana Elasticsearch UI (container `kibana`) at [http://localhost:5601](http://localhost:5601)
3029
- PostgreSQL (container `postgres`) at `localhost:5432` (use a standard Pg admin tool to connect)
@@ -64,10 +63,9 @@ This is a [Docker Compose](https://docs.docker.com/compose/) configuration that
6463
- [Check web client](https://github.com/meedan/check-web)
6564
- [Pender service API](https://github.com/meedan/pender)
6665
- [Alegre service API](https://github.com/meedan/alegre)
67-
- [vFrame service API](https://github.com/meedan/vframe)
68-
- [Montage web client](https://github.com/meedan/montage-web)
66+
- [Check Slack bot](https://github.com/meedan/check-slack-bot)
6967

7068
## Troubleshooting and known issues
7169

72-
- Upon initial installation, the submodules may be checked out at a specific commit instead of the `develop` branch. You will need to go into each submodule and issue an explicit `git checkout develop`.
70+
- Upon initial installation, the submodules may be checked out at a specific commit instead of the `develop` branch. You can issue this command to fix `git submodule foreach bash -c 'git checkout develop'`
7371
- Upon initial installation, to make sure the frontend is up to date, issue an explicit `docker-compose exec web npm run build` and `docker-compose exec montage npm run build`.

check-api

Submodule check-api updated 217 files

check-web

Submodule check-web updated 1160 files

docker-compose.yml

+27-12
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ volumes:
66
minio:
77
web-node_modules:
88
bots-node_modules:
9+
networks:
10+
dev:
911
services:
1012
elasticsearch:
1113
build: alegre/elasticsearch
1214
environment:
1315
- "discovery.type=single-node"
1416
- "transport.host=127.0.0.1"
1517
- "xpack.security.enabled=false"
16-
- "ALEGRE_URL=http://alegre:5000"
18+
- "ALEGRE_URL=http://alegre:3100"
1719
- "cluster.name=docker-cluster"
1820
- "bootstrap.memory_lock=true"
1921
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Dlog4j2.disable.jmx=true"
@@ -26,6 +28,8 @@ services:
2628
volumes:
2729
- "./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
2830
- "elasticsearch:/usr/share/elasticsearch/data"
31+
networks:
32+
- dev
2933
postgres:
3034
image: postgres:9.5
3135
command: postgres -c config_file=/etc/postgresql.conf
@@ -36,12 +40,16 @@ services:
3640
- "postgres:/var/lib/postgresql/data"
3741
environment:
3842
POSTGRES_PASSWORD: postgres
43+
networks:
44+
- dev
3945
redis:
4046
image: redis:5
4147
ports:
4248
- "6379:6379"
4349
volumes:
4450
- "redis:/data"
51+
networks:
52+
- dev
4553
minio:
4654
image: minio/minio
4755
command: server /data
@@ -52,6 +60,8 @@ services:
5260
environment:
5361
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE
5462
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
63+
networks:
64+
- dev
5565
api:
5666
build: check-api
5767
ports:
@@ -63,12 +73,13 @@ services:
6373
- redis
6474
- pender
6575
- alegre
66-
- vframe
6776
volumes:
6877
- "./check-api:/app"
6978
environment:
7079
RAILS_ENV: development
7180
SERVER_PORT: 3000
81+
networks:
82+
- dev
7283
api-background:
7384
build: check-api
7485
command: /app/docker-background.sh
@@ -79,6 +90,8 @@ services:
7990
environment:
8091
RAILS_ENV: development
8192
SERVER_PORT: 3000
93+
networks:
94+
- dev
8295
pender:
8396
build: pender
8497
shm_size: 1G
@@ -93,6 +106,8 @@ services:
93106
environment:
94107
RAILS_ENV: development
95108
SERVER_PORT: 3200
109+
networks:
110+
- dev
96111
pender-background:
97112
build: pender
98113
command: /app/docker-background.sh
@@ -104,6 +119,8 @@ services:
104119
environment:
105120
RAILS_ENV: development
106121
SERVER_PORT: 3200
122+
networks:
123+
- dev
107124
web:
108125
build: check-web
109126
ports:
@@ -119,6 +136,8 @@ services:
119136
NODE_ENV: development
120137
SERVER_PORT: 3333
121138
MODE: development
139+
networks:
140+
- dev
122141
kibana:
123142
image: docker.elastic.co/kibana/kibana:6.3.0
124143
ports:
@@ -127,6 +146,8 @@ services:
127146
- elasticsearch
128147
environment:
129148
ELASTICSEARCH_URL: http://elasticsearch:9200
149+
networks:
150+
- dev
130151
alegre:
131152
build: alegre
132153
ports:
@@ -140,16 +161,8 @@ services:
140161
BOILERPLATE_ENV: dev
141162
ALEGRE_PORT: 3100
142163
REDIS_DATABASE: 2
143-
vframe:
144-
build: vframe
145-
volumes:
146-
- "./vframe:/root/vframe"
147-
env_file:
148-
- vframe/.env_file
149-
depends_on:
150-
- postgres
151-
ports:
152-
- "5000:5000"
164+
networks:
165+
- dev
153166
bots:
154167
build: check-bots
155168
volumes:
@@ -162,3 +175,5 @@ services:
162175
environment:
163176
NODE_ENV: development
164177
SERVER_PORT: 8586
178+
networks:
179+
- dev

docker-test.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
version: "2.1"
2+
networks:
3+
default:
4+
name: dev
25
services:
36
chromedriver:
47
build: chromedriver
@@ -39,7 +42,3 @@ services:
3942
BOILERPLATE_ENV: test
4043
ALEGRE_PORT: 3100
4144
REDIS_DATABASE: 3
42-
vframe:
43-
environment:
44-
DB_NAME: vframe_test
45-
FLASK_ENV: test

elasticsearch.yml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ path:
77
logs: /usr/share/elasticsearch/logs
88
data: /usr/share/elasticsearch/data
99
repo: /usr/share/elasticsearch/snapshots
10-
# scripts: /usr/share/elasticsearch/scripts
1110
cluster:
1211
name: ${HOSTNAME}-cluster
1312
node:

vframe

-1
This file was deleted.

0 commit comments

Comments
 (0)