Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize Fastpath #935

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions fastpath/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.9-slim

WORKDIR /app

COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

COPY debian/etc/ooni/fastpath.conf /etc/ooni/fastpath.conf

EXPOSE 5000

CMD ["python", "./run_fastpath"]
3 changes: 3 additions & 0 deletions fastpath/debian/etc/ooni/fastpath.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ db_uri = postgresql://readonly@localhost/metadb
# S3 access credentials
s3_access_key =
s3_secret_key =


clickhouse_url = clickhouse://default:default@clickhouse-server:9000
35 changes: 35 additions & 0 deletions fastpath/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
services:
fastpath:
build: .
container_name: fastpath-ooni
ports:
- "5000:5000"
environment:
- CLICKHOUSE_HOST=clickhouse-server
- CLICKHOUSE_PORT=8123
networks:
- fastpath-network
depends_on:
- clickhouse-server

clickhouse-server:
image: yandex/clickhouse-server:latest
container_name: clickhouse-server
environment:
- CLICKHOUSE_DB=default
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=default
ports:
- "8123:8123"
- "9000:9000"
volumes:
- clickhouse-data:/var/lib/clickhouse
networks:
- fastpath-network

networks:
fastpath-network:
driver: bridge

volumes:
clickhouse-data:
Loading