Skip to content

Commit

Permalink
feat: pass cli args and config to container
Browse files Browse the repository at this point in the history
  • Loading branch information
oedokumaci committed Jan 5, 2024
1 parent 406876a commit c5082b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config/config.yml
logs/logs.log
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ RUN pip install pdm
# Install dependencies and pre-commit hooks
RUN make setup

# Command to run tests
CMD ["pdm", "run", "test"]
# Set environment variables
ENV number_of_simulations=1

# Run the command to start the app
CMD make run number_of_simulations=$number_of_simulations
7 changes: 5 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ certifi==2022.12.7
cfgv==3.3.1
charset-normalizer==3.1.0
click==8.1.3
colorama==0.4.6; sys_platform == "win32" or platform_system == "Windows"
distlib==0.3.6
exceptiongroup==1.1.1
exceptiongroup==1.1.1; python_version < "3.11"
filelock==3.10.3
findpython==0.2.4
identify==2.5.21
idna==3.4
importlib-metadata==6.6.0; python_version < "3.10"
iniconfig==2.0.0
installer==0.7.0
markdown-it-py==2.2.0
Expand All @@ -38,11 +40,12 @@ resolvelib==1.0.1
rich==13.3.5
setuptools==67.6.0
shellingham==1.5.0.post1
tomli==2.0.1
tomli==2.0.1; python_version < "3.11"
tomlkit==0.11.8
typer==0.9.0
types-PyYAML==6.0.12.10
typing-extensions==4.5.0
unearth==0.9.0
urllib3==1.26.15
virtualenv==20.21.0
zipp==3.15.0; python_version < "3.10"

0 comments on commit c5082b4

Please sign in to comment.