🧪 test: level 2

This commit is contained in:
Florian Hönicke
2023-05-01 11:53:47 +02:00
parent d52e7489c5
commit 080468cbc2
2 changed files with 11 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ metas:
def parse_result_fn_dockerfile(self, content_raw: str):
json_string = self.extract_content_from_result(content_raw, 'apt-get-packages.json', match_single_block=True)
packages = json.loads(json_string)['packages']
packages = ' '.join(json.loads(json_string)['packages'])
docker_file_template = self.read_docker_template()
return {DOCKER_FILE_NAME: docker_file_template.replace('{{apt_get_packages}}', '{apt_get_packages}').format(apt_get_packages=packages)}

View File

@@ -181,16 +181,23 @@ Name all packages which need to be installed via `apt-get install` in above Dock
Note that you must not list apt-get packages that are already installed in the Dockerfile.
Note that openai does not require any apt-get packages.
Note that you only list packages where you are highly confident that they are really needed.
Note that you are only allowed to list packages where you are highly confident that they are really needed.
Note that you can assume that the standard python packages are already installed.
Output the packages that need to me placed at {{apt_get_packages}} as json in the following format:
**apt-get-packages.json**
```json
{{"packages": ["<package1>", "<package2>"]}}
```
Have in mind that the packages list can be empty like this:
Example for the following requirements.txt file:
**requirements.txt**
```
numpy==1.19.5
fitz
```
The output would be:
**apt-get-packages.json**
```json
{{"packages": []}}
{"packages": []}
```
'''
)