Skip to content

Commit

Permalink
[HMA] Docker compose demo set-up (#1579)
Browse files Browse the repository at this point in the history
* Docker compose demo set-up

* fix pytest

* fix error pyproject
  • Loading branch information
juanmrad authored Apr 18, 2024
1 parent c3677d7 commit fcf47ea
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 245 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hma-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ jobs:
run: |
docker run --network="host" local sh -c "python -m pip install --upgrade pip ;
pip install -e '.[test]' ;
py.test"
pytest"
8 changes: 1 addition & 7 deletions hasher-matcher-actioner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@ COPY ./src /build
# You will probably use your own rather than copying one of the examples
# Be careful using the development config with gunicorn due to strange
# interactions with apscheduler and forking.
COPY reference_omm_configs/development_omm_config.py ./omm_config.py

EXPOSE 8080
# Here, we use gunicorn as the "production" deployment.
# Since we are using the development config, by default above, we restrict to one
# worker. If you are using proper worker roles, you'll use more.
CMD ["gunicorn", "-w1", "--bind", "0.0.0.0:8080", "OpenMediaMatch.app:create_app()"]
COPY reference_omm_configs/ ./reference_omm_configs
Loading

0 comments on commit fcf47ea

Please sign in to comment.