mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00

- Remove hardcoded "bash" command and use "$@" which will allow the caller to execute custom commands. If nothing is passed, then docker will fallback to bash anyway. - Forward the `OPENAI_API_BASE` env var.
20 lines
590 B
Bash
Executable file
20 lines
590 B
Bash
Executable file
#!/bin/bash
|
|
|
|
docker run \
|
|
-it --rm \
|
|
--memory=12g \
|
|
--memory-swap=12g \
|
|
--add-host=host.docker.internal:host-gateway \
|
|
-v `pwd`:/aider \
|
|
-v `pwd`/tmp.benchmarks/.:/benchmarks \
|
|
-e OPENAI_API_KEY=$OPENAI_API_KEY \
|
|
-e OPENAI_API_BASE=$OPENAI_API_BASE \
|
|
-e HISTFILE=/aider/.bash_history \
|
|
-e PROMPT_COMMAND='history -a' \
|
|
-e HISTCONTROL=ignoredups \
|
|
-e HISTSIZE=10000 \
|
|
-e HISTFILESIZE=20000 \
|
|
-e AIDER_DOCKER=1 \
|
|
-e AIDER_BENCHMARK_DIR=/benchmarks \
|
|
aider-benchmark \
|
|
"$@"
|