FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
RepoExec/execution-code-eval/Dockerfile at master · FSoft-AI4Code/RepoExec · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
FSoft-AI4Code
/
RepoExec
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
47
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
RepoExec
/
execution-code-eval
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
83 lines (68 loc) · 3.08 KB
Breadcrumbs
RepoExec
/
execution-code-eval
/
Dockerfile
Copy path
File metadata and controls
executable file
·
83 lines (68 loc) · 3.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
SPDX-FileCopyrightText: 2019–2022 Pynguin Contributors
#
#
SPDX-License-Identifier: LGPL-3.0-or-later
#
##############################################################################
#
Dockerfile to build a Docker container image for Pynguin. #
#
This is a multi-stage image, i.e., it first builds the Pynguin tar-ball #
#
from the sources and installs it in a later stage for execution. #
#
The image is built in a way that it accepts all command-line parameters for #
#
Pynguin as parameters to Docker's `run` command. #
#
##############################################################################
#
Build stage for Pynguin
FROM
python:3.10.2-slim-bullseye AS build
MAINTAINER
Stephan Lukasczyk <stephan@lukasczyk.me>
ENV
POETRY_VERSION
"1.1.13"
WORKDIR
/pynguin-build
#
Python shall not write the byte code to *.pyc files; they cannot be cached between
#
runs of the container anyway, hence we save the required time and resources for that
ENV
PYTHONDONTWRITEBYTECODE 1
#
Prevent Python from buffering output that is written to STDOUT/STDERR; this allows to
#
monitor the output in real time
ENV
PYTHONUNBUFFERED 1
COPY
. .
RUN
pip install --upgrade pip
#
RUN pip install poetry==$POETRY_VERSION \
#
&& poetry config virtualenvs.create false \
#
&& poetry build
#
Execution stage for Pynguin
FROM
python:3.10.2-slim-bullseye AS execute
#
Set environment variables
#
Set the Pynguin version
#
ENV PYNGUIN_VERSION "0.19.0"
#
Pynguin requires to set the variable to show it that the user is aware that running
#
Pynguin executes third-party code, which could cause arbitrary harm to the system.
#
By setting the variable, the user acknowledges that they are aware of this. In the
#
container this is not too much of an issue (if we forget about breaking out of the
#
container and similar things, of course).
#
ENV PYNGUIN_DANGER_AWARE ""
#
Python shall not write the byte code to *.pyc files; they cannot be cached between
#
runs of the container anyway, hence we save the required time and resources for that
ENV
PYTHONDONTWRITEBYTECODE 1
#
Prevent Python from buffering output that is written to STDOUT/STDERR; this allows to
#
monitor the output in real time
ENV
PYTHONUNBUFFERED 1
#
Disable random hash seeding for reproducible runs
ENV
PYTHONHASHSEED 0
WORKDIR
/codegendata
RUN
apt-get update \
&& apt-get install -y --no-install-recommends \
gcc \
libkrb5-dev \
build-essential \
python3-dev \
python3-tk \
pkg-config \
libcairo2-dev \
libgirepository1.0-dev \
libcurl4-openssl-dev \
libssl-dev \
tk \
python3-tk
RUN
pip install --upgrade pip
RUN
pip install pandas tree-sitter pytest pytest-cov pytest-csv pytest-json coverage datasets timeout_decorator autoimport codetext jsonlines beautifulsoup4
#
ADD ./test-apps /pynguin/test-apps
ADD
human-eval /codegendata/human-eval
ADD
evaluate_functional_correctness.sh /codegendata/
RUN
pip install -e /codegendata/human-eval
ENTRYPOINT
[
"/codegendata/evaluate_functional_correctness.sh"
]
CMD
[]
Back
|
FazBrowse Home
|
New Git URL