Skip to content

Commit 5e51d0a

Browse files
committed
docker build instructions
1 parent 1706e66 commit 5e51d0a

File tree

5 files changed

+52
-14
lines changed

5 files changed

+52
-14
lines changed

.github/workflows/publish-containers.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: docker/build-push-action@v4
3535
with:
3636
push: true
37-
context: ./bots
37+
context: ./app
3838
tags: |
39-
omdv/ib-bots:latest
40-
ghcr.io/omdv/ib-bots:latest
39+
omdv/ib-trading-app:latest
40+
ghcr.io/omdv/ib-trading-app:latest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vscode
2+
.venv
23
.terraform/
34
.terraform*
45
*.log
@@ -21,3 +22,4 @@ devenv.local.nix
2122

2223
# pre-commit
2324
.pre-commit-config.yaml
25+
.ruff_cache/

Taskfile.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ tasks:
2525
- docker-compose -f docker-compose-p4d.yaml up -d
2626
silent: true
2727

28-
publish-images:
28+
build-app:
2929
cmds:
30-
- docker-compose push
31-
silent: true
30+
- cd app && poetry export -f requirements.txt --without-hashes --only main > requirements.txt
31+
- docker build -t omdv/ib-trading-app:latest ./app
3232

3333
deploy:
3434
cmds:

app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11-slim
1+
FROM python:3.11.9-slim
22

33
LABEL maintainer="Oleg Medvedev <[email protected]>"
44

@@ -7,6 +7,6 @@ WORKDIR /code
77
COPY ./requirements.txt /code/requirements.txt
88
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
99

10-
COPY . /code/apps
10+
COPY . /code/app
1111

1212
CMD ["python", "-u", "/code/app/main.py"]

app/requirements.txt

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
1-
ib-insync>=0.9.56
2-
schedule>=1.1.0
3-
holidays>=0.11.1
4-
pytz>=2022.1
5-
pandas>=1.4.3
6-
pydantic-settings >=2.0.3<=2.1.0
1+
aiohappyeyeballs==2.4.3 ; python_full_version == "3.11.9"
2+
aiohttp-retry==2.9.1 ; python_full_version == "3.11.9"
3+
aiohttp==3.10.10 ; python_full_version == "3.11.9"
4+
aiosignal==1.3.1 ; python_full_version == "3.11.9"
5+
annotated-types==0.7.0 ; python_full_version == "3.11.9"
6+
attrs==24.2.0 ; python_full_version == "3.11.9"
7+
certifi==2024.8.30 ; python_full_version == "3.11.9"
8+
charset-normalizer==3.4.0 ; python_full_version == "3.11.9"
9+
eventkit==1.0.3 ; python_full_version == "3.11.9"
10+
exchange-calendars==4.5.7 ; python_full_version == "3.11.9"
11+
frozenlist==1.5.0 ; python_full_version == "3.11.9"
12+
greenlet==3.1.1 ; python_full_version == "3.11.9" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32")
13+
holidays==0.60 ; python_full_version == "3.11.9"
14+
ib-async==1.0.3 ; python_full_version == "3.11.9"
15+
idna==3.10 ; python_full_version == "3.11.9"
16+
korean-lunar-calendar==0.3.1 ; python_full_version == "3.11.9"
17+
multidict==6.1.0 ; python_full_version == "3.11.9"
18+
nest-asyncio==1.6.0 ; python_full_version == "3.11.9"
19+
numpy==2.1.3 ; python_full_version == "3.11.9"
20+
pandas==2.2.3 ; python_full_version == "3.11.9"
21+
propcache==0.2.0 ; python_full_version == "3.11.9"
22+
pydantic-core==2.23.4 ; python_full_version == "3.11.9"
23+
pydantic-settings==2.6.1 ; python_full_version == "3.11.9"
24+
pydantic==2.9.2 ; python_full_version == "3.11.9"
25+
pyjwt==2.9.0 ; python_full_version == "3.11.9"
26+
pyluach==2.2.0 ; python_full_version == "3.11.9"
27+
python-dateutil==2.9.0.post0 ; python_full_version == "3.11.9"
28+
python-dotenv==1.0.1 ; python_full_version == "3.11.9"
29+
pytz==2024.2 ; python_full_version == "3.11.9"
30+
requests==2.32.3 ; python_full_version == "3.11.9"
31+
ruamel-yaml-clib==0.2.12 ; platform_python_implementation == "CPython" and python_full_version == "3.11.9"
32+
ruamel-yaml==0.18.6 ; python_full_version == "3.11.9"
33+
schedule==1.2.2 ; python_full_version == "3.11.9"
34+
six==1.16.0 ; python_full_version == "3.11.9"
35+
sqlalchemy==2.0.36 ; python_full_version == "3.11.9"
36+
sqlmodel==0.0.21 ; python_full_version == "3.11.9"
37+
toolz==1.0.0 ; python_full_version == "3.11.9"
38+
twilio==9.3.6 ; python_full_version == "3.11.9"
39+
typing-extensions==4.12.2 ; python_full_version == "3.11.9"
40+
tzdata==2024.2 ; python_full_version == "3.11.9"
41+
urllib3==2.2.3 ; python_full_version == "3.11.9"
42+
yarl==1.17.1 ; python_full_version == "3.11.9"

0 commit comments

Comments
 (0)