Skip to content

Commit

Permalink
Run docker directly (not via script) to see what's going on
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah Bast committed Aug 27, 2023
1 parent 419cc31 commit 048b80a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/end-to-end-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ jobs:
working-directory: ${{github.workspace}}/olympics
run: |
../qlever.py get-data
../qlever.py docker.USE_DOCKER=true index
ls -lh
docker run -it -v $(pwd):/index -w /index --entrypoint bash adfreiburg/qlever -c 'cat olympics.nt | IndexBuilderMain -F ttl -f - -i olympics'
ls -lh
# ../qlever.py docker.USE_DOCKER=true index
../qlever.py status
# ../qlever.py get-data docker.USE_DOCKER=true index start status stop status
3 changes: 1 addition & 2 deletions qlever.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def __init__(self):
"with_text_index": "no",
"only_pso_and_pos_permutations": "no",
"no_patterns": "no",
"stxxl_memory_gb": "10",
},
"docker": {
"image": f"qlever/qlever:{self.name}",
Expand Down Expand Up @@ -138,7 +137,7 @@ def action_index(self, only_show=False):
if index_config['with_text_index'] in \
["from_literals", "from_text_records_and_literals"]:
cmdline += " --text-words-from-literals"
if index_config['stxxl_memory_gb']:
if 'stxxl_memory_gb' in index_config:
cmdline += f" --stxxl-memory-gb {index_config['stxxl_memory_gb']}"
cmdline += f" | tee {self.name}.index-log.txt"

Expand Down

0 comments on commit 048b80a

Please sign in to comment.