-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/add_kat_tests_parallelization
- Loading branch information
Showing
6 changed files
with
33 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
FROM ubuntu:22.04 | ||
ENV DEBIAN_FRONTEND=noninteractiv | ||
ENV SAGE_PKGS=/usr/share/sagemath/installed | ||
FROM ubuntu:24.10 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR "/home/cryptographic_estimators/" | ||
RUN apt update && apt install -y sagemath && pip install toml | ||
# Avoid the download and installation of dependencies on rebuild; | ||
# but without harcoding them | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3-pip \ | ||
python3-venv \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create and activate virtual environment | ||
RUN python3 -m venv ../venv | ||
ENV PATH="../venv/bin:$PATH" | ||
|
||
# # Avoid the download and installation of dependencies on rebuild; | ||
# # but without harcoding them | ||
RUN pip install toml | ||
COPY ./pyproject.toml ./ | ||
COPY ./scripts/generate_requirements.py ./scripts/ | ||
RUN python3 scripts/generate_requirements.py | ||
RUN sage -python3 -m pip install -r requirements.txt && rm -r ./* | ||
RUN pip install -r requirements.txt && rm -r ./* | ||
COPY . . | ||
RUN sage -python3 -m pip install --no-deps . | ||
RUN pip install --no-deps . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters