Skip to content

Commit ca90c8c

Browse files
Merge pull request #57 from moevm/main_docker_image
Big rework
2 parents bc21c46 + 3e49816 commit ca90c8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2438
-1099
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,8 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Build stepik_export image
12+
- name: Build common_grade_export image
1313
if: ${{ !cancelled() }}
1414
run: |
15-
./build.sh stepik_export
16-
- name: Build moodle_export image
17-
if: ${{ !cancelled() }}
18-
run: |
19-
./build.sh moodle_export
20-
- name: Build checker_export image
21-
if: ${{ !cancelled() }}
22-
run: |
23-
./build.sh checker_export
15+
cd common_grade_export
16+
docker build -t 'grade_exporter:latest' .

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
#Builds image
4+
# Doesn't work for common_grade_export
45

56
dir=${1}
67
docker build -t ${dir}_parser ${dir}/.

checker_export/Dockerfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

checker_export/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

checker_export/exporter.py

Lines changed: 0 additions & 76 deletions
This file was deleted.

checker_export/requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

checker_export/utils.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

checker_export/yadisk_manager.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

common_grade_export/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.13-slim
2+
3+
WORKDIR /app
4+
ENV PYTHONPATH="/app"
5+
6+
COPY requirements.txt .
7+
RUN pip install --no-cache-dir -r requirements.txt
8+
9+
COPY src/ .
10+
11+
ENTRYPOINT [ "python3" ]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
requests==2.32.5
2+
#requests-oauthlib==1.3.1
3+
pygsheets==2.0.6 # TODO: change on gspread
4+
pandas==2.3.0
5+
yadisk==3.4.0
6+
openpyxl==3.1.5
7+
gspread==6.2.1

0 commit comments

Comments
 (0)