diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44a6950 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.venv* +.~lock* \ No newline at end of file diff --git a/README.md b/README.md index ac5b05b..5d512ee 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,9 @@ ## Лекции +| Дата |Лекция | +|:----------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| 05.09.2024 | [Вводная лекция](lectures/lec_1.odp) | +| 12.09.2024 | [Изолирование окружения. Docker](lectures/lec_2-Docker.pdf) | + ## Лабораторные работы diff --git a/assets/docker_files/Dockerfile b/assets/docker_files/Dockerfile new file mode 100644 index 0000000..e2613b9 --- /dev/null +++ b/assets/docker_files/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.11-slim + + +COPY . /myapp + +WORKDIR /myapp + +RUN pip install python-dotenv + +ENTRYPOINT [ "python", "multiply.py" ] + diff --git a/assets/docker_files/multiply.py b/assets/docker_files/multiply.py new file mode 100644 index 0000000..4a43573 --- /dev/null +++ b/assets/docker_files/multiply.py @@ -0,0 +1,6 @@ +import sys + +def main(a = 3, b = 5): + print(f"multiply {a} by {b} is {a * b}") + +main(int(sys.argv[1]), int(sys.argv[2])) diff --git a/assets/virtual_env/proj1/requirements.txt b/assets/virtual_env/proj1/requirements.txt new file mode 100644 index 0000000..78620c4 --- /dev/null +++ b/assets/virtual_env/proj1/requirements.txt @@ -0,0 +1 @@ +tqdm diff --git a/lectures/lec1.odp b/lectures/lec1.odp new file mode 100644 index 0000000..e8eeee9 Binary files /dev/null and b/lectures/lec1.odp differ diff --git a/lectures/lec2 - Docker.odp b/lectures/lec2 - Docker.odp new file mode 100644 index 0000000..2a9749c Binary files /dev/null and b/lectures/lec2 - Docker.odp differ