Skip to content

Commit af12e4c

Browse files
authored
Merge pull request #1 from devforth/next
MongoDB support. Use S3 Glacier Storage Class instread of Glacier
2 parents 4c43dc6 + ac6f3b7 commit af12e4c

14 files changed

Lines changed: 449 additions & 67 deletions
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
FROM python:3.9.0
1+
FROM python:3.10
22

3+
ENV PYTHONUNBUFFERED=TRUE
4+
WORKDIR /scheduler/
5+
6+
RUN pip install pipenv
37
RUN apt update && apt install gnupg wget lsb-release gcc build-essential -y
48
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
59
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
610

711
RUN apt update
812
RUN apt install postgresql-client mariadb-client -y
9-
RUN python -m pip install apscheduler boto3 slack_sdk clickhouse_driver
1013

11-
ENV PYTHONUNBUFFERED=TRUE
14+
RUN wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian10-x86_64-100.7.0.deb && \
15+
apt install ./mongodb-database-tools-*.deb && \
16+
rm -f mongodb-database-tools-*.deb
1217

13-
ENV PYTHONPATH=/scheduler/
14-
WORKDIR /scheduler/
18+
COPY Pipfile Pipfile.lock ./
19+
RUN pipenv sync
1520

16-
COPY . .
21+
COPY src .
1722

18-
ENTRYPOINT [ "python", "scheduler.py" ]
23+
CMD [ "pipenv", "run", "python", "scheduler.py" ]

Pipfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
apscheduler = "*"
8+
boto3 = "*"
9+
slack-sdk = "*"
10+
clickhouse-driver = "*"
11+
botocore = "*"
12+
13+
[dev-packages]
14+
15+
[requires]
16+
python_version = "3.10"

Pipfile.lock

Lines changed: 232 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)