Skip to content

Commit

Permalink
compile dataset script: explicitly call it
Browse files Browse the repository at this point in the history
I don't have the will to debug this:

```
$ podman run quay.io/log-detective/website:latest compile_extraction_dataset.py
/bin/env: 'python': No such file or directory

$ podman run quay.io/log-detective/website:latest python3 compile_extraction_dataset.py
python3: can't open file '/src/backend/compile_extraction_dataset.py':
[Errno 2] No such file or directory
```

hence calling the script explicitly, like in stone age

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
  • Loading branch information
TomasTomecek authored and jpodivin committed Feb 8, 2024
1 parent 1abf0a8 commit 73a4a56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion files/compile_extraction_dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/env python
#!/bin/env python3
# just 'python' doesn't work in container environment -_^
# You need to have access to the HF dataset repo
# Set it in the HF_TOKEN env var

Expand Down
3 changes: 2 additions & 1 deletion openshift/dataset-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ spec:
containers:
- name: upload-dataset
image: quay.io/log-detective/website:latest
command: ["/compile_extraction_dataset.py"]
# for some reason we need to explicitly call the command like this -_-
command: ["python3", "/usr/bin/compile_extraction_dataset.py"]
env:
- name: HF_TOKEN
valueFrom:
Expand Down

0 comments on commit 73a4a56

Please sign in to comment.